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

2023-10-12 Thread Jonathan Moules via gdal-dev
like the location of proj.db used. The point is if you can see the std out. On Wed, 11 Oct 2023, 15:18 Jonathan Moules via gdal-dev, wrote: Hi List, So, after more investigation: * Using Python Anaconda on either Mac or Linux for GDAL (3.7.1), `GetSpatialRef` triggers a R

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

2023-10-11 Thread Jonathan Moules via gdal-dev
GDAL, Conda, Pycharm, something else? Cheers, Jonathan On 2023-09-28 14:58, Jonathan Moules via gdal-dev wrote: Well, it seems that PROJ_DATA isn't set in their environment. But it's not set in mine either (`print(os.environ['PROJ_DATA']`)! So no idea why mine works just fi

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

2023-09-28 Thread Jonathan Moules via gdal-dev
system. On 2023-09-28 12:37, Rahkonen Jukka wrote: Hi, Then they should add that environment if they do not know that they do not belong to "most users" https://proj.org/en/9.3/usage/environmentvars.html -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: gdal-dev Puolesta

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

2023-09-28 Thread Jonathan Moules via gdal-dev
Hi Even, The colleague doesn't have either a PROJ_LIB or a PROJ_DATA environment variable. I asked another colleague to try it; they're on Ubuntu 20.04, and it worked for them. I believe using the same setup instructions. Cheers, Jonathan On 2023-09-24 22:37, Jonathan Moules vi

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

2023-09-24 Thread Jonathan Moules via gdal-dev
to use to diagnose the issue. On 2023-09-24 22:52, Jan Heckman wrote: Sorry to break in, but surely, we would like to see the .prj file in question for a simple try at reproducing? On Sun, Sep 24, 2023 at 11:37 PM Jonathan Moules via gdal-dev wrote: Thanks Even. I don't have access

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

2023-09-24 Thread Jonathan Moules via gdal-dev
Thanks Even. I don't have access to the machine either as the colleague is moving to another project. I'll have to see if it fails for another *nix user. On 2023-09-24 22:35, Even Rouault wrote: Le 24/09/2023 à 23:22, Jonathan Moules via gdal-dev a écrit : > Also check if th

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

2023-09-24 Thread Jonathan Moules via gdal-dev
variable Le 21/09/2023 à 14:34, Jonathan Moules via gdal-dev a écrit : Yeah, I'm afraid the error message is pretty much non-existent: Traceback (most recent call last):   File "/home/name/Code/DSHub/PoC/Extract-Transform-Load-POC/Metadata/AME/src/info_vect

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

2023-09-22 Thread Jonathan Moules via gdal-dev
Tested against the following data types (OGR and GDAL): GeoJSON, KML, KMZ, Shapefile, ECW, IMG, TIF, GML, ASC, Geopackage, NetCDF. Only the shapefile fails. On 21/09/2023 13:34, Jonathan Moules wrote: Yeah, I'm afraid the error message is pretty much non-existent: Traceback (most recent

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

2023-09-21 Thread Jonathan Moules via gdal-dev
Yeah, I'm afraid the error message is pretty much non-existent: Traceback (most recent call last):   File "/home/name/Code/DSHub/PoC/Extract-Transform-Load-POC/Metadata/AME/src/info_vector.py", line 119, in get_layer_metadata     tmp_projection = layer.GetSpatialRef()