[Gdal-dev] bbox of vmap

Frank Warmerdam warmerdam at pobox.com
Mon Feb 19 16:45:56 EST 2007


Martel, Christian wrote:
> Hi,
> 
> What is the easiest method to extract the bounding box of a vmap CD
> (with python script with fwtool on windows) ? 
> With raster data and GDAL I use GetGeoTransform but there is nothing
> similar in OGR.
> Any hint would be appreciate.

Christian,

You can call the ogr.Layer.GetExtent() method to fetch the extents of a
layer from python.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list