[Imports] ArcGIS toolbox to OSM script
Emilie Laffray
emilie.laffray at gmail.com
Thu Dec 17 16:12:48 GMT 2009
2009/12/17 Reiser, John J. <Reiser at rowan.edu>
> Hello all,
>
>
>
> I’ve developed a python script for exporting from ArcGIS directly to the
> .OSM file format used by JOSM. The script is available here:
> http://users.rowan.edu/~reiser/osm/<http://users.rowan.edu/%7Ereiser/osm/>
>
>
>
> The script also does the following:
>
> · Preserves topology. Polygons or lines that share vertices will
> become ways that share nodes. Efforts have been made to reduce the amount of
> duplicate nodes exported.
>
> · Creates multipolygon relations for multipart polygons (both
> internal ring and external part polygons).
>
> · Reprojects to WGS84 automatically.
>
> · Exports attribute data as keys. Only fields prefixed with “_” or
> “osm_” are exported.
>
>
>
> The script can be added to ArcToolbox, allowing ArcGIS users a quick way to
> export data to OSM. I’m hoping this will encourage small towns or
> institutions (like Rowan, also exported to OSM, here:
> http://osm.org/go/ZciXY0SlF-) to contribute to OSM. I used this script to
> export the land use/land cover data for the State of New Jersey, which has
> since been uploaded to OpenStreetMap (http://osm.org/go/Zcmube--). I hope
> this will encourage contributions from smaller-scale stakeholders, like
> myself. (I intend to keep Rowan up-to-date on OSM, as we may use the
> platform for on-campus mapping projects in the future.)
>
>
>
> The code has been released under a CC by-sa-nc license. I’d appreciate any
> changes or bug fixes to the code, as well as any comments, questions or
> complaints.
>
>
>
Hello, I have looked very briefly at your code.
Unless I have read too quickly, I see that it doesn't fully support
multipolygons. There is a limitation in the API that limits ways to 2000
nodes maximum. I would advise that you add a functionality in the program
that cuts ways so they are never more than 2000 maximum. I would advise
though to change the value to less than 2000 nodes like something like a
1000 nodes instead.
The reason for that is that it makes it easier for people to modify your way
without breaking the ways and modify relations.
I don't think I will have time this week to help you with this, but I don't
think it would take you very long to implement this change. Also you are
adding features by features, which I believe is very important :)
Overall, it is a very good little program. Good job!
Emilie Laffray
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/imports/attachments/20091217/26328238/attachment.html>
More information about the Imports
mailing list