[Tile-serving] [openstreetmap/osm2pgsql] Import of changes failing because of TopologyException (#787)
Jesse Crocker
notifications at github.com
Thu Sep 21 13:24:26 UTC 2017
osm2pgsql version, built from master @ 21aeaf798c57699ac1574879e7ad9bd31b00e658:
```
$ osm2pgsql --version
osm2pgsql version 0.93.0-dev (64 bit id space)
```
OS: Ubuntu 16.04.3 LTS
Database: Amazon RDS, PostgreSQL 9.6.2
Approximately 49 days ago my cron job pulling in OSM updates started failing because of an error running osm2pgsql. 2 days ago I updated osm2pgsql, and the error is still happening.
options im using:
`osm2pgsql -a --slim -e9-14 --hstore --number-processes 4 -d $DB -U $DB_USER -H $DB_HOST --style $STYLE --cache $CACHE_SIZE -o expiry.log $CHANGE_FILE `
Starting point for updates
`start import from seq-nr 2560529, replag is 47 day(s) and 20 hour(s)`
osmosis version: 0.44.1-4 installed from ubuntu package
Last part of output from osm2pgsql
```
Large polygon (40873 x 18148 metres, OSM ID -2912) - only expiring perimeter
Large polygon (135135 x 35738 metres, OSM ID -2988) - only expiring perimeter
Large polygon (135900 x 31522 metres, OSM ID -2988) - only expiring perimeter
Large polygon (22562 x 60796 metres, OSM ID -2709) - only expiring perimeter
Large polygon (22562 x 60796 metres, OSM ID -2709) - only expiring perimeter
node cache: stored: 14206773(100.00%), storage efficiency: 77.37% (dense blocks: 1608, sparse nodes: 2594707), hit rate: 6.59%
Osm2pgsql failed due to ERROR: result COPY_END for planet_osm_polygon failed: ERROR: GEOSPointOnSurface: TopologyException: Input geom 1 is invalid: Self-intersection at or near point -18073790.800134856 -20061906.389537029 at -18073790.800134856 -20061906.389537029
CONTEXT: COPY planet_osm_polygon, line 1
```
Is there a way to force osm2pgsql to ignore the GEOS errors?
Maybe this is actually an osmosis issue?
--
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/787
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170921/c2f9c2a9/attachment.html>
More information about the Tile-serving
mailing list