[gdal-dev] layer.GetSpatialRef() fails on linux for shapefiles
Jonathan Moules
jonathan-lists at lightpear.com
Mon Sep 18 04:54:39 PDT 2023
Hi Javier,
I don't recall there being any exception message exposed. It was simply
a RuntimeError.
I guessed it's probably installation/configuration, but surely GDAL
should Just Work? Especially if it's coming via Conda? (I don't live in
the Linux world; I just used a wheel).
Cheers,
Jonathan
On 18/09/2023 12:51, Javier Jimenez Shaw wrote:
> Hi Jonathan
>
> Which exact RuntimeError are you getting? It can be for several
> reasons (probably an installation or configuration issue).
>
> Best,
> Javier
>
>
> On Mon, 18 Sept 2023 at 11:06, Jonathan Moules
> <jonathan-lists at lightpear.com> wrote:
>
> 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
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230918/c73d2839/attachment-0001.htm>
More information about the gdal-dev
mailing list