Something like:
OGRSpatialReference sr;
sr.SetFromUserInput("+proj=geocent");
Christopher Hunt wrote:
Sorry for the hopefully not so dumb question here.
If I want to transform from one projection to a projection of the earth
in 3D, how would I set up my target srs?
I want to take a WGS-84 la
That appears to do exactly what I want. Thanks.
Peter, thoughts?
On 03/07/2009, at 10:07 PM, Adam Nowacki wrote:
Something like:
OGRSpatialReference sr;
sr.SetFromUserInput("+proj=geocent");
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://
Hi Peter,
Thanks for your reply - yes, that's exactly what I want to do -
transform to cartesian coords.
Here's the math that I've already got... I was just wondering if
GDAL's transform object somehow encapsulated it.
latitude *= DEG_TO_RAD;
longitude *= DEG_TO_RAD;
double s
Sorry for the hopefully not so dumb question here.
If I want to transform from one projection to a projection of the
earth in 3D, how would I set up my target srs?
I want to take a WGS-84 lat/long/elevation and have an x,y,z returned
in metres.
Here's my present code:
// Read the image