[gdal-dev] Get list of all available SRS
Nik Sands
nixanz at nixanz.com
Wed Sep 26 17:32:32 PDT 2012
Thanks Frank. Sorting/organisation is not a big deal in this case. They will be presented in a list which dynamically changes according to search text as it is typed. So a simple alphabetical sort should be fine if I can't come up with any better scheme.
On 21/09/2012, at 12:49 PM, Frank Warmerdam <warmerdam at pobox.com> wrote:
> On 12-09-20 07:11 PM, Nik Sands wrote:
>> Is there a way to get a list (eg, array) of all Spatial Reference Systems currently available to GDAL (eg, all those defined in files in GDAL_DATA directory)?
>>
>> In my GUI application, I'd like to be able to present my users with a list of SRS to choose from, but I'm not sure how to generate such a list.
>
> Nik,
>
> GDAL does not provide any services to get the SRS list but you can
> access the gdal/data/pcs.csv and gdal/data/gcs.csv files yourself
> fairly easily to get the names and EPSG identifiers. What this does
> not help with is a logical organization of the SRSes which can be
> helpful in a GUI since there are a lot.
>
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
> light and sound - activate the windows | http://home.gdal.org/warmerda
> and watch the world go round - Rush | Geospatial Software Developer
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list