[Gdal-dev] Assigning projection in php_ogr

Frank Warmerdam warmerdam at pobox.com
Wed Jun 20 10:43:45 EDT 2007


Nico Alberti wrote:
> Hi all,
> 
> I need to do a geometry transformation using php_ogr.
> 
> Just like I do in my Python programs, I would use the
> OGR_G_TransformTo ($Geometry, $SpatialReference) function. For this
> reason I should use something like the
> OSRImportFromProj4(), to apply the desidered starting and ending
> spatial reference, but I cannot fing the corresponding function in the
> php extension.
> 
> Can anybody give me a hint? I am stuck.
> 
> Thank you in advance and sorry for my bad English.

Nico,

The PHP OGR bindings are maintained seperately from the rest of GDAL/OGR
and so it is not always easy to get answers about them.  BTW, where did
you get the php_ogr stuff?  We should setup a little topic in the wiki
about them.

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 OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list