Logo OpenStreetMap OpenStreetMap

OSM to WKT conversion

Zapsal ChristophWeber 18. 11. 2011 v jazyce English.

I'm looking for tools to convert OSM data to WKT for input into a website. Now that I have mapped my HOA I am using the OSM map as a layer in a Drupal site and am overlaying data from Drupal nodes (unit owners, maintenance events, etc.). To input building outlines into Drupal's OpenLayers module, WKT is the easiest format, so I need to convert from OSM to WKT.

I am aware of http://geoconverter.hsr.ch/ which takes OSM input and converts to a.o. KML, which gets me halfway there. I am also aware of a Perl module to convert between KML and WKT. Of course, if I were a developer I could make the conversion in OpenLayers itself, but alas I am not.

So, what tools are available out there?

And if someone wants a preview of the Drupal site and/or discuss OSM use in homeowner association management, leave a comment or drop me a line.

Místo: University City, San Diego, San Diego County, California, 92122, United States
Ikona e-mailu Ikona Bluesky Ikona Facebooku Ikona LinkedIn Ikona Mastodonu Ikona Telegramu Ikona X

Diskuse

Komentář od JoshD z 16. 01. 2012 v 05:28

Hey, too bad I missed this one (due to the RSS feed being messed up). I'm interested in this, as I've been mapping my HOA (rather large, around 6000 units), have created the HOA article on the wiki, and am interesting in tagging specific to HOAs. I'd love to preview your site.

As for the conversion, there's sadly no OGR driver for OSM yet, so your best bet is to go from OSM->Shapefile->WKT (refer to osm.wiki/Shapefiles and ogr2ogr), or maybe try this which I just found but have never tried: http://www.tm.kit.edu/~mayer/osm2wkt/

Přihlaste se k zanechání komentáře