[gdal-dev] [gdal 3.12beta1] Default projection for SHAPE files?
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Wed Oct 22 08:09:26 PDT 2025
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 <gdal-dev-bounces at lists.osgeo.org> käyttäjän Momtchil Momtchev via gdal-dev <gdal-dev at lists.osgeo.org> puolesta
Lähetetty: Keskiviikko 22. lokakuuta 2025 17.42
Vastaanottaja: gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
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 <momtchil at momtchev.com>
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list