[Gvsig_english] How to get CRS info from the header of a raster ?

Yves Voirin yves.voirin at geoimagesolutions.com
Fri Oct 19 17:04:37 CEST 2007


Hi,

I have a raster with CRS definition in the header, my header looks like
(get from gdalinfo command):

Driver: GTiff/GeoTIFF
Size is 8617, 18841
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235629972,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (-73.110438279628966,45.222089829249647)
Pixel Size = (0.000006104567046,-0.000006104567046)
Metadata:
  AREA_OR_POINT=Area
Corner Coordinates:
Upper Left  ( -73.1104383,  45.2220898) ( 73d 6'37.58"W, 45d13'19.52"N)
Lower Left  ( -73.1104383,  45.1070737) ( 73d 6'37.58"W, 45d 6'25.47"N)
Upper Right ( -73.0578352,  45.2220898) ( 73d 3'28.21"W, 45d13'19.52"N)
Lower Right ( -73.0578352,  45.1070737) ( 73d 3'28.21"W, 45d 6'25.47"N)
Center      ( -73.0841368,  45.1645818) ( 73d 5'2.89"W, 45d 9'52.49"N)
Band 1 Block=8617x1 Type=Byte, ColorInterp=Red
Band 2 Block=8617x1 Type=Byte, ColorInterp=Green
Band 3 Block=8617x1 Type=Byte, ColorInterp=Blue

I would like to know how to get this info in gvSIG. I know gvSIG uses
GDAL libs (via jgdal) to read the raster, so I think gvSIG can get the
same info (especially the CRS) as gdalinfo command. Can you tell me how
to do that ?

Thanks.

Yves

-- 
===========================
     Yves Voirin, PhD.

  GéoImage Solutions Inc.
  4342 rue Bertrand-Fabi,
    Sherbrooke, Québec,
     Canada, J1N 1Y7

 Tél.:	+1 (819) 340 1394
 Téléc.:+1 (819) 340 1397
===========================


More information about the Gvsig_internacional mailing list