[Gdal-dev] SetField & GetExtents Query

Ben Crane crane_ba at yahoo.com
Fri Aug 18 04:23:49 EDT 2006


Daniel,


> Did you call OGR_L_SetFeature() to write the updated
> feature to the 
> shapefile after setting the field values?
> 
> http://gdal.maptools.org/ogr/ogr__api_8h.html#a144

Nope, but will do now. Thank you.

> > 2. I have managed to get GetExtents to work, but
> how
> > do I actually seperate the 4 coordinate pairs in
> the
> > GetExtents object into 4 variables that I can use
> with
> > the SVG ViewBox command...I've tried treating it
> as an
> > array but had no joy.
> > 
> 
> I believe it's an associative array with 2 pairs of
> coordinates (not 4). 
> Try print_r($extent_var); to see what it contains
> exactly.

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?

Ben
 
> Daniel
> -- 
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Gdal-dev mailing list