OpenStreetMap 로고 OpenStreetMap

OSM to WKT conversion

ChristophWeber님이 English로 2011년 11월 18일에 게시함.

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.

위치: University City, San Diego, San Diego County, California, 92122, United States
이메일 아이콘 Bluesky 아이콘 Facebook 아이콘 LinkedIn 아이콘 마스토돈 아이콘 텔레그램 아이콘 X 아이콘

토론

2012년 1월 16일 05:28JoshD님의 의견

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/

댓글을 남기려면 로그인하세요