[gdal-dev] Coordinate Transformation Question

Frank Warmerdam warmerdam at pobox.com
Tue Dec 16 14:56:23 EST 2008


Joel Odom wrote:
> Is it possible to transform between a Lambert projection (NAD83 datum)
> and WGS84 geographic?  I'm trying the following, but poCT is null:
> 
> OGRSpatialReference oSRS;
> if (oSRS.importFromWkt((char**)&projectionRef) != OGRERR_NONE)
>   //...
> OGRSpatialReference wgs84;
> wgs84.SetWellKnownGeogCS("WGS84");
> OGRCoordinateTransformation *poCT =
> OGRCreateCoordinateTransformation(&oSRS, &wgs84);
> 
> 
> In this case oSRS is the Lambert Conformal / NAD83.  Thanks for any help.

Joel,

Yes, this should work fine assuming thereis nothing funky about your
LCC projection definition.  Note that OGR/PROJ.4 consider NAD83 and WGS84
to be equivelent datums for transformation purposes.

If you post your projection string for the LCC I could try it here for
comparison.

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    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list