<br><br><div class="gmail_quote">2009/12/17 Reiser, John J. <span dir="ltr"><<a href="mailto:Reiser@rowan.edu">Reiser@rowan.edu</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">Hello all,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I’ve developed a python script for exporting from
ArcGIS directly to the .OSM file format used by JOSM. The script is available
here: <a href="http://users.rowan.edu/%7Ereiser/osm/" target="_blank">http://users.rowan.edu/~reiser/osm/</a></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">The script also does the following:</p>

<p><span style="font-family: Symbol;"><span>·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">        
</span></span></span>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.</p>

<p><span style="font-family: Symbol;"><span>·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">        
</span></span></span>Creates multipolygon relations for multipart
polygons (both internal ring and external part polygons). </p>

<p><span style="font-family: Symbol;"><span>·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">        
</span></span></span>Reprojects to WGS84 automatically. </p>

<p><span style="font-family: Symbol;"><span>·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">        
</span></span></span>Exports attribute data as keys. Only fields
prefixed with “_” or “osm_” are exported. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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: <a href="http://osm.org/go/ZciXY0SlF-" target="_blank">http://osm.org/go/ZciXY0SlF-</a>) 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 (<a href="http://osm.org/go/Zcmube--" target="_blank">http://osm.org/go/Zcmube--</a>). 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.)</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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. </p>

<p class="MsoNormal"> <br></p></div></div></blockquote></div><br>Hello, I have looked very briefly at your code.<br>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.<br>
The reason for that is that it makes it easier for people to modify your way without breaking the ways and modify relations.<br>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 :)<br>
Overall, it is a very good little program. Good job!<br><br>Emilie Laffray<br><br>