osm=# select st_asText(geometry), geometry, osm_id from osm_city_point where not st_isvalid(geometry);
NOTICE: Invalid Coordinate at or near point -0.0046093609272060835 nan
st_astext | geometry | osm_id
-------------------------------+----------------------------------------------------+-----------
POINT(-0.004609360927206 nan) | 0101000020110F0000714501E743E172BF010000000000F87F | 436012592
(1 row)
Your Environment
Postgis 11, from mdillon/postgis:11-alpine docker image
Context
Importing a node placed at the south pole in the current planet file results in a geometry with a nan coordinate.
The problem node is https://www.openstreetmap.org/node/436012592 which is located at -90,0
Expected Behavior
Node is either not imported, or has coordinate set to the maximum valid value.
Actual Behavior
Geometry has a nan coordinate
Steps to Reproduce
mapping.yaml
Imposm invoked as
import -mapping generated/mapping.yaml -srid 3857 -read data/data.osm.pbf -write -connection postgis://$(DBUSER)@$(DBHOST)/$(DBNAME) -overwritecache -optimize -deployproduction
Your Environment
Postgis 11, from mdillon/postgis:11-alpine docker image
Using imposm 0.7.2, downloaded from https://github.com/omniscale/imposm3/releases/download/v0.7.2/imposm-0.7.2-linux-x86-64.tar.gz
Using May 27 planet file from https://s3.amazonaws.com/osm-pds/2019/planet-190527.osm.pbf