geosolutions-it / gfdrr-det

Data Exploration Tool
https://waffle.io/geosolutions-it/gfdrr-det
GNU General Public License v3.0
3 stars 0 forks source link

shapefile download wrong geometries #135

Open giohappy opened 6 years ago

giohappy commented 6 years ago

ESRI Shapefile downloads produce wrong geomtries. The following is the ogrinfo output for ex1_buildings_52. Extent is wrong.

Layer name: ex1_buildings_52
Metadata:
  DBF_DATE_LAST_UPDATE=1918-04-26
Geometry: Point
Feature Count: 108662
Extent: (29.678300, -11.609400) - (40.378300, -1.009400)
Layer SRS WKT:
GEOGCS["WGS 84",
    DATUM["World Geodetic System 1984",
        SPHEROID["WGS 84",6378137.0,298.257223563,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0.0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.017453292519943295],
    AXIS["Geodetic longitude",EAST],
    AXIS["Geodetic latitude",NORTH],
    AUTHORITY["EPSG","4326"]]

https://github.com/GFDRR/hev-e/issues/7

ricardogsilva commented 6 years ago

@giohappy what exactly is wrong with them?

I think I'm missing the point, as this ogrinfo output seems fine to me. I can also load the shapefile in QGIS without problem.

giohappy commented 6 years ago

@ricardogsilva sorry wrong example. The problem is with osm_test_ph_buildings_65, probably because the underlying geom is polygon.