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

Miguel Ángel Querol miguelangel.querol at iver.es
Mon Oct 22 08:54:39 CEST 2007


Hello,

Unless gvSIG uses gdal librarires, at the moment, CRS definition is not 
shown in gvSIG.
We will see to take care of it in  following versions.

Regards!


Yves Voirin escribió:
> 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
>
>   


-- 
Miguel Ángel Querol Carratalá
Equipo de desarrollo raster de gvSIG
IVER TI S.A.
C/ Lérida, 20
46005-Valencia 
Tlf.963354983  ext. 708 
www.iver.es
www.gvsig.com


Este mensaje y sus archivos son confidenciales. No está permitida su reproducción o distribución sin la autorización expresa de "IVER Tecnologías de la Información". Si usted no es el destinatario previsto, queda desautorizado cualquier uso, acceso o copia de este mensaje. Si ha recibido este mensaje por error, por favor bórrelo e infórmenos por esta misma vía.



More information about the Gvsig_internacional mailing list