kml

Getting undefined reference error but nm shows symbol present

会有一股神秘感。 提交于 2019-12-11 01:50:06
问题 I am building a large application using libkml. I am using the cmake port of libkml from here: https://github.com/rashadkm/libkml I am getting a stranged undefined reference to symbol error even thought the symbol appears to be referenced and defined. This is the make command: /usr/bin/c++ -fPIC -Werror=return-type -Werror=return-type -Wall -Werror=parentheses -Werror=uninitialized -Werror=missing-braces -fPIC -O0 -Wall -fPIC -fvisibility=hidden -fno-strict-aliasing -Wno-long-long -m64 -g -D

How to update kml file/layer dynamically?

三世轮回 提交于 2019-12-11 01:39:23
问题 I am using a kml file for displaying map with custom boundary lines. That kml file is downloaded from some website. In that file, inside the placemark tag there is no point tag for display icons. Eg: <Placemark> <name>Spot 2</name> <description>.....</description> <styleUrl>....</styleUrl> <MultiGeometry><Polygon><outerBoundaryIs><LinearRing><coordinates> ......... </coordinates></LinearRing></outerBoundaryIs></Polygon></MultiGeometry> </Placemark> That is what placemark tag contains in my

Android: can not get KML file to parse and then draw route on Map

早过忘川 提交于 2019-12-11 00:25:44
问题 I write an application that help people find appropriate places and show the direction to the target. Before, this functionality work well but now the draw route function does not work. The exception I got is that application can not download and then parse the kml corresponding to the route ( the code: xmlreader.parse(is); ), although the URL generated to get KML is correct (I test it in Browser) - for example: https://maps.google.com/maps?f=d&hl=en&saddr=21.04664,105.852203&daddr=21.040527

How to change the layering of KML and Tile Overlays in Google Maps?

梦想的初衷 提交于 2019-12-10 23:53:34
问题 I'm working on a project where I am utilizing tile overlays (visual) to display a rendering of the space, building names, accessibility, and parking spaces as well as KML polygons (functionality) to allow the user to click on various buildings or points of interest to bring up further information. My current issue lies in the organization of these various elements. At the moment, the KML polygons are appearing above all the tile overlays, including building names and parking which I would

Can I manipulate a KML using Google Maps API v3?

落花浮王杯 提交于 2019-12-10 23:17:17
问题 I'm loading a KML using KMLLayer in Google Maps API v3. Is it possible to reference the polygons on the map and do things like change color or transparency? 回答1: No you can't do it like that since there are no polygons like objects in a kmllayer. From the google docs: The Maps API converts the provided geographic XML data into a KML representation which is displayed on the map using a V3 tile overlay. This KML looks (and somewhat behaves) like familiar V3 overlay elements. KML and GeoRSS

displaying route path names

丶灬走出姿态 提交于 2019-12-10 22:26:07
问题 //main activity in this class two errors shown below within the comments import android.graphics.Color; import android.os.Bundle; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class NewroutepathActivity extends MapActivity { /** Called when the activity is first created. */ MapView mapView; private String US_API; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Java Instant.parse on Date java 8

久未见 提交于 2019-12-10 21:53:04
问题 I have some legacy KML documents which includes a time stamp entry. Why is the below date not valid when using Instant to parse? Both methods are suppose to parse ISO 8601 formatted dates. String dateString = "2017-12-04T08:06:60Z" Using java.time.Instant.parse(dateString) throws an error "DateTimeParseException Text 2017-12-04T08:06:60Z could not be parsed at index 0." However, when using Date myDate = javax.xml.bind.DatatypeConverter.parseDateTime( dateString ) myDate is parsed correctly...

Coordinates from a KML file not displayed properly in Google Maps

社会主义新天地 提交于 2019-12-10 21:39:27
问题 I have a KML file and I extract the last coordinates and try to set them as a center of a Google Map but the marker is in a completely different place . Do I have to "convert" KML coordinates into google maps coordinates ? Thanks a lot 回答1: KML coordinates are x,y (longitude, latitude), whereas Maps uses LatLng (or y,x / latitude, longitude). Just switch the x and y order and you should be all set. 来源: https://stackoverflow.com/questions/9866925/coordinates-from-a-kml-file-not-displayed

Google Earth will not open links in KML that have spaces

天涯浪子 提交于 2019-12-10 19:43:57
问题 I am creating KML files from an ArcMap layer that uses XSLT to generate an HTML popup with custom links to file folders. Some of these links have embedded spaces. When I try to open these links in Google Earth, it does nothing. I have tried encoding spaces as %20 and still GE will not open them. It opens links without spaces just fine. Here is a link from my KML that works fine: <a target="_blank" href="file:///C:/Land/ce">Central Wildlife District</a> Here are a couple that don't: <a target=

Creating KML with Linq to XML

天大地大妈咪最大 提交于 2019-12-10 18:47:42
问题 About 9 months ago, I created a set of classes in C# that correspond to KML 2.2 elements. So you can do things like myPlacemark = new Placemark("name"); Internally, it uses XmlDocument, XmlElement, etc. to create the various nodes and tags. It's a memory pig and it could probably be faster. No, I didn't generate the classes using XSD. I see there are posts on reading and parsing KML using Linq. However, has anyone used Linq to XML to create KML? If not, what do you think is the best approach