[Gdal-dev] Geo::GDAL Question

Ari Jolma ari.jolma at tkk.fi
Fri Mar 23 17:11:16 EDT 2007


Stephen Woodbridge kirjoitti:
> I just found Geo::GDAL, this is very cool.
> Does anyone know if it is possible to get these valuse returned via 
> this package?
>
> Origin = (-117.750000000000000,34.000000000000000)
> Pixel Size = (0.000010024716912,-0.000010024716912)
> Corner Coordinates:
> Upper Left  (-117.7500000,  34.0000000) (117d45'0.00"W, 34d 0'0.00"N)
> Lower Left  (-117.7500000,  33.9374959) (117d45'0.00"W, 33d56'14.99"N)
> Upper Right (-117.6874959,  34.0000000) (117d41'14.99"W, 34d 0'0.00"N)
> Lower Right (-117.6874959,  33.9374959) (117d41'14.99"W, 33d56'14.99"N)
> Center      (-117.7187479,  33.9687479) (117d43'7.49"W, 33d58'7.49"N)

You get these from the Geo::GDAL::Dataset: object 
(http://map.hut.fi/doc/Geo-GDAL/html/class_geo_1_1_g_d_a_l_1_1_dataset.html), 
which is the same as GDALDataset class in the C++ API 
(http://www.gdal.org/annotated.html). Check especially the 
GetGeoTransform method.

Regards,

Ari

>
> This would be very useful for writing automation scripts, and would 
> much easier than parsing gdalinfo output via perl :)
>
> Thanks,
>   -Steve
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev


-- 
Prof. Ari Jolma
Geoinformaatio- ja paikannustekniikka
Geoinformation and positioning technology
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma




More information about the Gdal-dev mailing list