[Gdal-dev] OGR Georeference

Frank Warmerdam warmerdam at pobox.com
Wed Apr 19 16:09:37 EDT 2006


Rob McCulley wrote:
> I finally managed to talk to the data provider.  It is a "local" 
 > coordinate system per file.  It looks like I need to warp each file.
 > Any way to do this using ogr?

Rob,

There isn't any canned approach to this in OGR.  You could write a
customized version of ogr2ogr that applies your transformation likely
using the GDALGCPTransformer for mapping between your local coordinate
system and a projected coordinate system.  In theory you could also
implement a python script to do this, but then you would be on your own
to do the actual transformation calculation.  If you wanted to take that
approach you could look at:

  http://www.gdal.org/srctree/pymod/samples/vec_tr.py

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