[Imports] polyshp2osm.py

Emilie Laffray emilie.laffray at gmail.com
Tue Oct 20 09:08:58 BST 2009


Dan Homerick wrote:
> [Sent to the OSM Imports list and to polyshp2osm.py author]
>
> A couple of questions about polyshp2osm.py:
>
> Should I be concerned by the "<osm version='0.5'>" if I'm only working
> with nodes and ways? Where do I find the changes that occurred between
> ver 0.5 and ver 0.6 of the API?
>
> As far as I can tell, and as the name hints at, polyshp2osm.py only
> works for polygons -- it bombs if it hits a non-closed way. Should I
> be using shp2osm.pl for non-closed ways? Is there any documentation
> for how to add tags using shp2osm.pl?
>
> I'd almost prefer to modify the polyshp2osm.py to accept non-closed
> ways, since I know Python already (but not Perl) and it doesn't seem
> like a very big change is required. Would anyone be interested in
> doing a code-review + commit to the repository if I do modify it?
>
> Cheers,
> - Dan
>
>   
This is an updated version. It will still work only with polygons but
will support breaking huge polygons.

Emilie Laffray
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: polyshp2osm.py
URL: <http://lists.openstreetmap.org/pipermail/imports/attachments/20091020/9fc876ed/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/imports/attachments/20091020/9fc876ed/attachment.pgp>


More information about the Imports mailing list