[Imports] A new ogr2osm version
Paul Norman
penorman at mac.com
Mon Apr 30 19:36:31 UTC 2012
Based on Andrew Guertin's work for UVM I have released a new version of
ogr2osm
It can be found at https://github.com/pnorman/ogr2osm
Improvements and bug fixes over the previous version include
- MultiLineStrings are broken up into multiple LineStrings
- More readable raw XML
- Support for keys or values which require escaping in the XML
- upload=false is set by default to help prevent accidental uploads
- Support for shapefile directories
- Significant speed improvements when dealing with data sources where
multiple geometries share points in common. What used to take hours now
takes minutes.
Installation instructions can be found at
https://github.com/pnorman/ogr2osm#installation
ogr2osm has three main advantages over other tools that can convert
shapefiles
- It handles the reprojection for you
- It can deal with shapefile directories which is what gdal uses to handle
multiple layers with shapefiles
- It accepts a python function for converting from datasource tagging to OSM
tagging, allowing you to use more complicated logic to come up with better
OSM tagging
As always, potential importers are reminded about the import guidelines.
ogr2osm allows you to write a good conversion to OSM tagging. It doesn't do
the rest of the work for you and it won't contact the community before
importing for you. You still have to do all of these yourself.
If anyone has good well-commented examples of translations files I welcome
pull requests against https://github.com/pnorman/ogr2osm-translations
More information about the Imports
mailing list