nvkelso / natural-earth-vector

A global, public domain map dataset available at three scales and featuring tightly integrated vector and raster data.
https://www.naturalearthdata.com/
Other
1.76k stars 368 forks source link

Invalid geometry in ne_10m_ocean #316

Open pnorman opened 4 years ago

pnorman commented 4 years ago

When loading the ne_10m_ocean shapefile in qgis and doing a validity check< I get an error at x=178.8547 y=71.2126 with a ring intersection.

image image

I was also getting this with PostgreSQL 12 + PostGIS 3 and GDAL 3.0.3 when running

ogr2ogr -f PostgreSQL \
        -clipsrc -180.1 -85.0511 180.1 85.0511 \
        -lco GEOMETRY_NAME=geometry \
        -lco DIM=2 \
        -nlt GEOMETRY \
        -progress \
        -overwrite \
        PG:"dbname=test" \
        packages/natural_earth_vector.sqlite \
        ne_10m_ocean
nvkelso commented 4 years ago

Wishing someday GEOS and Postgres will become enterprise ready and deal with real life geometries...