[Gdal-dev] Fetching path to /usr[/local]/share/gdal?

Markus Neteler neteler at itc.it
Tue Apr 12 06:09:29 EDT 2005


Hi,

I have made a few modifications to the GRASS/GDAL 
plugin to enable projection support. Seems to work so
far:

gdalinfo ~/grassdata/spearfish60/PERMANENT/cellhd/elevation.dem |head -25
Driver: GRASS/GRASS Database Rasters (5.7+)
Size is 633, 466
Coordinate System is:
PROJCS["UTM Zone 13, Northern Hemisphere",
    GEOGCS["clark66",
        DATUM["North_American_Datum_1927",
            SPHEROID["clark66",6378206.4,294.9786982]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-105],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["meter",1]]
Origin = (590010.000000,4928000.000000)
Pixel Size = (30.00000000,-30.00000000)
Corner Coordinates:
Upper Left  (  590010.000, 4928000.000) (103d52'3.97"W, 44d30'5.97"N)
Lower Left  (  590010.000, 4914020.000) (103d52'12.71"W, 44d22'32.96"N)


To finish it (before submitting patches) I would
like to know how to fetch the path to /usr[/local]/share/gdal?
Certainly simple, but I don't find the related CPL function.
For now I have it hardcoded in frmts/grass/grass57dataset.cpp.

Markus




More information about the Gdal-dev mailing list