[Tile-serving] [openstreetmap/osm2pgsql] osm2pgsql: bad result during COPY error (#598)

abautis notifications at github.com
Fri Jun 24 16:00:54 UTC 2016


Hi Everyone so I am trying to import only the roads dataset into postgres. I have taken osm data from geofabrik regions and extracted roads from them using osmfilter them then combined them using osmconvert. I keep getting this error though when using osm2pgsql. I have tried redownloading and remerging but it still keeps giving me the error.

This is the code that I ran to fix:

`F:\Downloads\OSM_WORLD>osm2pgsql --slim --flat-nodes F:\Downloads\OSM_WORLD.cache --hstore-add-index -c -m -d OSM_World -U` evidenceall -H lmtmysqlrepl02.ve.selfhost.corp.microsoft.com -S C:\Users\abautis\Desktop\OSM_USA\default.style F:\Downloads\OSM_World_ALL_roads.osm
osm2pgsql SVN version 0.85.0 (64bit id space)
This is the error:

Reading in file: F:\Downloads\OSM_World_ALL_roads.osm Processing: Node(910780k 80.0k/s) Way(0k 0.00k/s) Relation(0 0.00/s)planet_osm_line - bad result during COPY, data 63 \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N service \N \N \N \N \N \N \N \N \N \N \N Maney Corner \N \N yes \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N \N 0 \N SRID=900913;LINESTRING (-203344.6799999999930151 6901596.5499999998137355, -203329.1300000000046566 6901514.3499999996274710, -203326.4299999999930151 6901502.9800000004470348, -203316.2799999999988358 6901479.2199999997392297, -203311.2399999999906868 6901466.3300000000745058, -203306.8699999999953434 6901441.6100000003352761, -203301.0000000000000000 6901406.7300000004470348, -203295.0799999999871943 6901356.8300000000745058, -203290.2999999999883585 6901323.5599999995902181)

Error occurred, cleaning up

How do I fix this?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/598
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160624/49fc6e50/attachment.html>


More information about the Tile-serving mailing list