[gdal-dev] layer.GetSpatialRef() fails on linux for shapefiles

Jonathan Moules jonathan-lists at lightpear.com
Mon Sep 18 02:06:16 PDT 2023


Hi List,

I'm trying to get vector layer information via OGR and Python:

```

layer.GetSpatialRef()

```

This works fine for me on Windows with GDAL 3.7.1 on various different 
types of files (Shapefile, GPKG, GML, KML, GDB).

But for my colleague on Ubuntu 22.0.4.3, also on GDAL 3.7.1 (via Conda), 
they get a Python RuntimeError for all shapefiles (the exact same 
shapefiles that work fine for me). It works for Geopackages for them.

Anyone have any thoughts?
Thanks,
Jonathan



More information about the gdal-dev mailing list