Skip to content

karun10/KML2SQL

 
 

Repository files navigation

#KML2SQL v 1.4

###Overview KML2SQL is a utility that uploads a KML file to a Microsoft SQL database, storing the placemarks in geography or geometry objects.

###What's New: 03/05/2015 - v 1.4

  • Ability to use Windows Integrated Security (thanks mirhagk!)

06/05/2014 - v 1.3

  • Persistence. It will remember your username and server between uses (thanks Simon Timms!)
  • Improved error reporting to user.
  • If one of the placemarks can't be uploaded, the entire file won't fail. Placemarks that don't upload are noted in the error log.
  • Just a bunch of behind-the-scenes cleanup to make it slightly less ugly.

11/10/2013 - v 1.2

  • Better error reporting when something goes wrong.
  • Made it more clear that a new table will be created, and existing tables will be overwritten.

06/02/2013 - v 1.1 - A big update that has significantly reworked the backend and allows for the following:

  • Improved Security! I think it's safe against SQL injection, but you should still be careful.
  • Placemark Data! SimpleData and Data types are now uploaded as additional columns. Note that since Data entries are untyped and SimpleData schemas are unreliable, all data is uploaded into Varchar(max) columns. Oh, and nulls are allowed in all columns except ID and geometry/geography. So you end up with a really inefficient database, but converting them all to ints, floats, or whatever is just a few SQL commands away, right?
  • Improved Expandability! It should be easier to add support for mySQL and the like in the future.

###To-Do List:

  • Add support for MySQL.
  • Provide support for polygons with lines that intersect (in real life they shouldn't, but KML lets you draw polygons like that. Code would need to be able to detect that and fix, which would be fairly hard).
  • Provide support for KMZ files (but really, those are just zipped KML files, so if you have one of those, just unzip it for now).

If you have any questions, feel free to post issues here on GitHub, email me at zach(at)zachshuford(dotcom) or tweet me @pharylon. If something isn't working, let me know! If you really need some feature bad, let me know! The amount of work I put into this project and number of features I add is directly proportional to how many people ask for them.

Lastly, a big "Thank You!" to SharpKML without which this project would be a lot more work and VectorLady who authored the icon, which is released under the Creative Commons License 3.0 Attribution.

Finally, KML2SQL itself is licensed under the BSD 2 Clause License.

About

A utility for uploading KML files to SQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%