[Tile-serving] [openstreetmap/osm2pgsql] Crash when integer contains non integer value (#621)

PetrDlouhy notifications at github.com
Fri Sep 2 00:32:56 UTC 2016


If there is non-integer value in OSM data in tag, that is supposed to be integer in the style file, Osm2pgsql throws error similar to following:
```
Osm2pgsql failed due to ERROR: result COPY_END for planet_osm_point failed: ERROR:  invalid input syntax for integer: "bis 1946"
```

The error could be printed as warning, but Osm2pgsql should deal with cases of misedited OSM key/value and finish processing of the OSM file.

I tested it with on current main branch (and also with version 0.88.1) with following command:
```
./osm2pgsql test.osm -U mtbmap -d gisczech -s -S mtbmap.style
```
[test.osm.txt](https://github.com/openstreetmap/osm2pgsql/files/450965/test.osm.txt)
[mtbmap.style.txt](https://github.com/openstreetmap/osm2pgsql/files/450966/mtbmap.style.txt)

-- 
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/621
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160901/c46db680/attachment.html>


More information about the Tile-serving mailing list