[gdal-dev] parser the information from the gdalinfo

Even Rouault even.rouault at mines-paris.org
Fri Jun 19 13:52:33 EDT 2009


It doesn't make much sense to parse the output of gdalinfo, which has no 
guarantee to remain stable over versions. You should rather use the C, C++, 
Python, Perl, C# or Java API to do that.

Le Friday 19 June 2009 05:24:48 maven apache, vous avez écrit :
> Hi:I try to get the information of a image:product_compose123.img and I got
> a lot of infomation (perhaps 1500 lines).
> I wonder there is some tools to handle this information? I want to change
> them to a xml document.
> -----------------------------------
> PROJCS["Lambert Conformal Conic",
>     GEOGCS["Krasovsky",
>         DATUM["Krasovsky",
>             SPHEROID["Krasovsky",6378245,298.3000003760163],
>             TOWGS84[0,0,0,0,0,0,0]],
>         PRIMEM["Greenwich",0],
>         UNIT["degree",0.0174532925199433]],
>     PROJECTION["Lambert_Conformal_Conic_2SP"],
>     PARAMETER["standard_parallel_1",47],
>     PARAMETER["standard_parallel_2",25],
>     PARAMETER["latitude_of_origin",36],
>     PARAMETER["central_meridian",105],
>     PARAMETER["false_easting",5000000],
>     PARAMETER["false_northing",5000000],
>     UNIT["meters",1]]
> ------------------------------------
> Above is the Coordinate System  described with OGC wkt,I think transfer
> this to xml format is not a easy job.
> PS:
> The information is to long,because it include the all the bands
> information, since I do not need the band info I wonder there is other
> commond?




More information about the gdal-dev mailing list