[gdal-dev] Getting all known coordinate systems.

Tamas Szekeres szekerest at gmail.com
Thu Jun 20 06:46:53 PDT 2019


Do we have a ticket for this addition? I can take care of the c# part.

Best regards,

Tamas

Sent from my iPhone

2019. jún. 20. dátummal, 14:59 időpontban Even Rouault <even.rouault at spatialys.com> írta:

>> On jeudi 20 juin 2019 05:46:45 CEST Franik wrote:
>> I am updating to GDAL 3.0 (C# bindings).
>> 
>> I need a list of all the supported coordinate systems in my application.
>> 
>> In the older versions, I requested all the known coordinate systems by
>> reading the csv files in the GDAL_DATA folder (pcs.csv, gcs.csv,...).
>> 
>> In the the new version, the csv files have been replaced by the proj.db
>> file. Does anyone know of a good way to get all the coordinate systems.
>> Should I just try to read the proj.db file myself and extract all the
>> records? Or is there some kind of method exposed for this?
> 
> There's a osr.GetCRSInfoListFromDatabase() method in the SWIG bindings 
> (binding of OSRGetCRSInfoListFromDatabase()), but it is only exposed for the 
> Python bindings currently. 
> 
> A new SWIG typemap should be written for the other binding languages, so that 
> osr.GetCRSInfoListFromDatabase() can be used with them.
> 
> Even
> 
> -- 
> Spatialys - Geospatial professional services
> http://www.spatialys.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