Hi,

It seems to happen when only .shp part of a shapefile exists. Questionable, it 
it is a shapefile at all, because .shx and .dbf are supposed to be mandatory. 
Anyway, GDAL can read the .shp and create the missing .shx and .dbf files. In 
addition, it writes also .prj that contains EPSG:4326 definitions. That really 
feels unnecessary to me.

Why do you test with an invalid shapefile at all?

-Jukka Rahkonen-
________________________________________
Lähettäjä: gdal-dev <[email protected]> käyttäjän Momtchil 
Momtchev via gdal-dev <[email protected]> puolesta
Lähetetty: Keskiviikko 22. lokakuuta 2025 17.42
Vastaanottaja: [email protected] <[email protected]>
Aihe: [gdal-dev] [gdal 3.12beta1] Default projection for SHAPE files?


Before GDAL 3.12 this file

https://github.com/mmomtchev/node-gdal-async/blob/main/test/data/shp/sample.shp

did not have a projection. With 3.12, it returns a valid projection.

The projection is obtained with GetProjectionRef() and then
importFromWkt() to construct the object.

I don't see anything in the changelog that explains it, is this expected?


--
Momtchil Momtchev <[email protected]>

_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to