This looks like a problem in ogr-to-osm, not related to GDAL/OGR. These segment/node IDs appear to be created internal to the script and are not related to GDAL/OGR. I would recommend going to an OpenStreetMap list of some sort to ask this particular question.
-- Chris On Feb 26, 2011, at 12:37 AM, ext PJ Houser wrote: > Hi all, > > We're having this problem when we run ogr-to-osm.py. (from > http://svn.openstreetmap.org/applications/utils/import/ogr2osm/) I don't know > much about python, so the problem could be obvious. Any help would be > appreciated. Thank you. > > G:\PUBLIC\OpenStreetMap\tools\ > ogr-to-osm>.\run.bat -e 4326 G:\PUBLIC\OpenStreetM > ap\data\shp\trails.shp > > G:\PUBLIC\OpenStreetMap\tools\ogr-to-osm>G:\PUBLIC\OpenStreetMap\tools\usr\Pytho > n26\python.exe G:\PUBLIC\OpenStreetMap\tools\ogr-to-osm\ogr2osm.py -e 4326 > G:\PU > BLIC\OpenStreetMap\data\shp\trails.shp > G:\PUBLIC\OpenStreetMap\tools\usr\Python26\lib\site-packages\osgeo\gdal.py:81: > D > eprecationWarning: ogr.py was placed in a namespace, it is now available as > osge > o.ogr > DeprecationWarning) > ([('-e', '4326')], ['G:\\PUBLIC\\OpenStreetMap\\data\\shp\\trails.shp']) > > Preparing to convert file G:\PUBLIC\OpenStreetMap\data\shp\trails.shp > (extension > is shp) into G:\PUBLIC\OpenStreetMap\data\shp\trails.osm > Will assume that source data is in EPSG:4326 > > Parsing features > > ['OBJECTID', 'TRAILID', 'TRAILNAME', 'SYSTEMNAME', 'SYSTEMTYPE', 'CITYMUNI', > 'CO > UNTY', 'STATE', 'STATUS', 'LENGTH', 'TRLSURFACE', 'WIDTH', 'ACCESSIBLE', > 'MOTORI > ZED', 'HIKE', 'ROADBIKE', 'MTNBIKE', 'EQUESTRIAN', 'WCRAFT_MTR', > 'WCRAFT_NON', ' > PORTAGE', 'AGENCYNAME', 'AGENCYTYPE', 'Shape_Leng'] > Got layer field definitions > > Nodes: 189758 > Way segments: 189888 > Lines: 10287 > Areas: 0 > > Joining segments > > Simplifying line segments > Traceback (most recent call last): > File "G:\PUBLIC\OpenStreetMap\tools\ogr-to-osm\ogr2osm.py", line 594, in > <modu > le> > for nodeID in segmentNodes[segmentID]: > KeyError: -195887 > > > -- > PJ Houser > Trimet, GIS > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
