[gdal-dev] ogr-to-osm error message

PJ Houser stephanie.jean.houser at gmail.com
Fri Feb 25 18:37:12 EST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110225/31ef23ee/attachment.html


More information about the gdal-dev mailing list