Dynamically create kml files


















Since you are using geoxml3, you can calculate the center of the polygon's bounds and place a marker there dynamically. How to calculate the center of the polygon using geoxml3? Please show me some reference for that — Vignesh Bala.

Please post a Minimal, Complete, Tested and Readable example of the code you are trying to modify. I don't know how to do it or start with. That's why I asked? All I'm asking is for your existing code but a minimal example that demonstrates what you have and what you want. I don't have time to create an example from scratch for you. Show 1 more comment.

Active Oldest Votes. Improve this answer. Add a comment. ScaisEdge ScaisEdge k 10 10 gold badges 83 83 silver badges 95 95 bronze badges. Thats ok. But I need to add coordinates as per center of the placemark's polygon. How to do that? Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Show original message.

Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message. Is there a way to generate kml files from excel data? I have an excel file which has one column each for a file name, loc of that file on computer and coordinates for north, south, east and west corners of the file air photo.

How a separate kml file can be generated from each row of data? Any thoughts are welcome. I'm no expert in Excel but I know it would be fairly easy to create a KML file using the data as you have described. What I do not know about is creating a separate file for each row of data. I'm not real sure how that could be done easily. I have created some pretty complex and dynamic files using Excel.

It's best to learn as much as you can about the program. It's a very powerful program and there is not much that you can't do with it. I've learned everything I need to do by using the help files and searching the net for answers and solutions. I might be able to help you create one huge KML file with a folder for each row of data, but I do not know how to automatically create separate files for each.

If you use python, then pyKML is another great library. If they are creating the KML file offline, then Python would be an option. If you are doing this offline I would write the code to loopthrough your records and create a Placemark for each one.

Do you really need to create KML? That way your app is more responsive. Take a look at this tutorial: raywenderlich. Intelligently places itself at the height of the underlying terrain. AlketCecaj AlketCecaj 10 10 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks.



0コメント

  • 1000 / 1000