[Gdal-dev] extent of a file/map
Frank Warmerdam
warmerdam at pobox.com
Tue Jul 27 16:12:18 EDT 2004
Fulko van Westrenen wrote:
> Hello,
>
> I have some python code to retrieve layer information from a
> s57 file. This works nice, but I would like to know the area
> covered by a file.
>
> The documentation suggests the use of GetExtent, but that is
> for a layer. What is the proper way to get the extent of a file?
Fulko,
In general I think you would need to merge the extents of all the layers.
But I'm pretty sure that all S-57 layers return the extent of the whole
datasource so just using the extent of the first layer should be fine.
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 | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list