[Gdal-dev] Introducing myself and obtaining MBR geometry for
TAB files
Frank Warmerdam
warmerdam at pobox.com
Mon Jul 17 09:55:14 EDT 2006
Ben Crane wrote:
> Hello all,
>
> Just subscribed to this list after using PHP_PGR
> within Mapserver. What a great library that is! Of
> course I do have a question or two:
>
> Question 1: I am reading MapInfo TAB files. So far so
> good, I can read the geometry and create SVG files
> from it. One thing I cannot do is get the MBR (Minimum
> Bounding Rectangle) of the data. I need to know what
> geometry frames the data so I can use it within SVG as
> part of the viewbox command. Does anyone know of the
> PHP class/function that can pick up how much "space"
> (ie, min x,y - max x,y of the dataset) the TAB vector
> data actually takes up?
Ben,
The OGRLayer class has a GetExtent() method. I'm not certain
if that is exposed in the PHP bindings or not.
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 OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list