[Gdal-dev] SetField & GetExtents Query

Bryan Keith bryan at geomega.com
Thu Aug 17 09:59:38 EDT 2006


Ben Crane wrote:
> Hi all,
> 
> I'm having a great time with the PHP OGR library but
> have 2 questions:
> 
> 1. I have used the SetField command and updated
> browser view, but how do I actually save this
> information into the core SHP files? I have tried
> CommitTransaction but seems to have no joy? I need to
> be able to update the core SHP file since it will be
> opened and used by others after the update.

Ben,

I don't use PHP, but in Python it's necessary to call Layer.Destroy() to 
get the changes you made to be saved to the shapefile.

> 
> 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.

For this I have no idea since it's really a PHP question.

Bryan

> 
> Regards
> Ben Crane
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
> 
> 



More information about the Gdal-dev mailing list