kml

How do I generate a KML file in ASP.NET?

妖精的绣舞 提交于 2019-12-03 23:24:43
How do I generate and return a KML document directly to the browser without writing a temporary file to the server or relying on a 3rd party library or class? Mehrdad Afshari I suggest you consider using an HTTP Handler instead of a ASP.NET page. It will be cleaner and more performant. Just add new item of type "Generic Handler" to your project and consider moving the code to its ProcessRequest method. The general approach is good, though. By the way, unless you are explicitly mapping .kml files to an ASP.NET handler, it'll not run anyway. I suggest going with the default .ashx extension and

How to create KML file in Android?

拥有回忆 提交于 2019-12-03 21:27:08
At the moment, my app receives KML file from server and displays all the placemarks in the maps. But there is too much data going back and forth, so now i want to receive only a short string (lat,lang for a few points) from the server. Is it possible to create KML file on an Android device (any API for this? There does not seem to be any KML libraries that will work well with Android right now. I have been using the Simple XML library for parsing KML, and is working out well. However, since you are already receiving the data in a simplified format, you would be much better off using the Google

Access KML placemarks in a Google Maps overlay via Javascript?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 20:06:55
I have a KML file overlay on an embedded Google Map using the GGeoXml object. I'd like to be able to access specific placemarks in the KML file from Javascript (for example to highlight a selected polygon on the map in response to user action). Ideally what I'd like to do is something like this (pseudo-code): geoXml.getPlacemarkByName('Foo').focus(); Unforunately the Google Maps API doesn't seem to expose the placemarks or any other internals of the KML overlay. Does anyone have any thoughts as to how I might accomplish this? I don't know anything about how the overlays are implemented

Building large KML file

∥☆過路亽.° 提交于 2019-12-03 17:37:24
I generate KML files which may have 50,000 placemarks or more, arranged in Folders based on a domain-specific grouping. The KML file uses custom images which are packed in to a KMZ file. I'm looking to breakup the single KML file in to multiple files, partitioned based on the grouping, so rather than having 1 large document with folders, i'd have a root/index KML file with folders linking to the smaller KML files. Is this possible though? I think that a KMZ file can contain only 1 KML file, regardless of where it's located or its name, in the zip. Furthermore, I'm not exactly sure how a KML

Is there a way to divide a map into square grids and retrieve latitude/longitude information from there? [closed]

懵懂的女人 提交于 2019-12-03 14:24:23
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I have a map of a specific area and I need to determine whether a given location -with lat-lon coordinates- falls into any grid that covers this map. I decided to divide the map of the area I was given into 1 km x 1 km square grids using Google Earth -enabling the square grids using CTRL+L and zooming to the appropriate scale so that the grid lines are 1000 meters away from each other- and extract the entire data as KML,

Ruby: KML Library?

无人久伴 提交于 2019-12-03 13:45:52
I am searching for a ruby library to export location data into KML files. The data to be exported contains mainly simple points with latitude and longitude, but I'd also like to be able to export more complex polygons. I tried kamelopard , but didn't find it satisfactory as it is missing a tutorial. It wasn't obvious to me where to start using the library. There is another candidate which is called kamel . Unfortunately I couldn't install that one, due to a missing dependency which I couldn't resolve. So, which library are you using to create a KML file programmatically in Ruby? Or do you use

Adding many circles to a google map

可紊 提交于 2019-12-03 13:07:37
I'm attempting to draw many circles (around 1000) on a google map, at various locations and sizes, and then binding a click event to them. But this many calls of new google.maps.Circle(parameters); makes the page loading slow, and sometimes it just hangs forever, so I'd like to figure out if there's a better/faster way to accomplish what I'm trying to do. I see that there's something called a kml layer, but there doesn't appear to be any easy way to draw filled circles with it and I'm not sure if I can still bind click events to each individual circle in the layer or not. Looking at the circle

Importing CSV File to Google Maps

感情迁移 提交于 2019-12-03 12:42:52
问题 I have an quite big CSv File I want to have in Google Maps or just on a map. These are just coordinates but I have 600.000 of them.. Do you have any Idea how I can do this? I've added an screenshot from XTabulator below: 回答1: The easiest way to do this is generate a KML file (see http://code.google.com/apis/kml/articles/csvtokml.html for a possible solution). You can then open that up in Google Maps by storing it online and linking to it from Google Maps as described at http://code.google.com

How to override KML colors in Google Map?

不羁的心 提交于 2019-12-03 12:42:50
I am loading a KML file via Google Map's V3 API. The colors in the KML file are being used but I would like to override it with my own color. I actually want to use a solid color for the whole trace. Is there a way to do this? KML colors are based on Style api-doc tags that are defined either directly in the KML or using a reference to an external KML style file (similar to CSS). We use an external style file, so that the styles may be applied to multiple KML files. This means that within our KML data files, you will find entries such as this: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns=

Styling kml with css in google maps v3?

不羁岁月 提交于 2019-12-03 09:48:53
I am using a google maps api v3 to load some data from a kml file. I wish to style the description data when it is shown in an info window to suit my web page. Now I am trying to set the style: style="margin-left:-20px;border:2px dotted #897823; et-a;" ...inside the description tag of a Kml Placemark but it is not rendering it properly. I can see that firebug just shows up the positives values of margin and padding. It entirely ignores the negative margin values. So, I was wondering, are any limitation in using css style attributes for kml files? <placemark> <name><![CDATA[First Office Address