[Imports] ArcGIS toolbox to OSM script

reiser at rowan.edu reiser at rowan.edu
Thu Dec 17 18:22:44 GMT 2009


Emilie,

That is an issue that needs to be corrected. I had to manually break the "outer" ways on the polygons for the LU update in NJ. I have plans on updating it and writing up more detailed documentation. 

Thanks for the feedback!
John

Sent via BlackBerry by AT&T

-----Original Message-----
From: Emilie Laffray <emilie.laffray at gmail.com>
Date: Thu, 17 Dec 2009 16:12:48 
To: Reiser, John J.<Reiser at rowan.edu>
Cc: <imports at openstreetmap.org>
Subject: Re: [Imports] ArcGIS toolbox to OSM script

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/c1012021/attachment.html>


More information about the Imports mailing list