[Gdal-dev] SetField & GetExtents Query
Daniel Morissette
dmorissette at mapgears.com
Fri Aug 18 10:28:38 EDT 2006
Ben Crane wrote:
>
> I can get the info from print_r, but I need to assign
> those coordinate pairs to 2 seperate variables for use
> within PHP. How do I assign them to standard PHP
> variables?
>
If I remember correctly, the extents coordinates are called minx, miny,
maxx, maxy in the array, so if your extents are stored in $extent_var,
you could assign the values to std PHP vars using something like:
$minx = $extent_var['minx'];
$miny = $extent_var['miny'];
$maxx = $extent_var['maxx'];
$maxy = $extent_var['maxy'];
Daniel
--
Daniel Morissette
http://www.mapgears.com/
More information about the Gdal-dev
mailing list