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, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to