|
Just for the benefit of everyone who wants to work now with Openstreetmap Data, and cant rely on the shapefile conversions (last time I looked, they castrated most of the tags off the data, thus reducing significantly the data usefulness). I have done some work in developing a OSM import script for Manifold, and it is pretty much functional now. We have managed to download and import into Manifold with this tool the whole of the Greater London area. I recently also started work on a upload script for OSM, but this is still very much work in progress, and I would appreciate any help in developing this upload tool. My ultimate goal would be to make Manifold a fully functional OSM Editor suite, as the exisiting editing software tools such as JOSM are akward to use and dont allow any data import outside of gpx files. I attach here the small readme for this project: This a tool that connects to the API of the OpenStreetMap Project, which offers open sourced (Creative Commons share-alike license) mapping data collected by its members. Download Section: ----------------- To use the script to download data, just open the attached map file, navigate in the "Download Map" Window to an area of interest and run the "OSM Download" script. It will create a new drawing which will contain the data. For the moment I create the Areas from all closed ways that have specific tags, as you can see in the sourcecode. You will need to link back the extended tags to the Geometry Data using the Pivot Query. Relations are so far not supported. Upload Section: --------------- This is very much still a work in progress. So far I have managed to successfully upload Point Data. Ways are more complicated, especially as there are topological differences between the Manifold Data format and OSM data format. E.g. in Manifold, each line will be represented by internal inflection points (which are held for each branch) which may overlap, but still are separate entities. In OSM, each way is represented by an ordered series of referenced node ID's, and two ways can and will share the same node ID for each intersection of that way. If they share a node or not matters in terms of topology, in other words two roads can either be connected by a junction (with attributes), or not for example because of a bridge. How we model that in Manifold, I dont know yet. thanks to Muki Haklay for helping me with speeding up the download code. Patrick Weber p.weber@ucl.ac.uk Attachments:
 OSM Streetmap Import and Export Script - cleaned up forum version.map
Check out the Manifold Wiki with SQL and scripting examples at http://www.manipedia.eu/ Spatial Knowledge, my personal blog. |