Skip to main content
1 of 5
Below the Radar
  • 3.6k
  • 1
  • 31
  • 60

Ogr - Weird GeomType -2147483645 on polygon shapefile

I am trying to import a shapefile (multipolygon) in an app with ogr but I got an error about invalid geom type. If I inspect the data with ogr like this:

datasource = ogr.Open("c:\\temp\\data.shp")
layer = datasource.GetLayer(0)
print(layer.GetGeomType())

The print returns: >> -2147483645

I wonder what Geom Type is this. Is it an error in the data or is it a real Geom Type?

Below the Radar
  • 3.6k
  • 1
  • 31
  • 60