<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry for the hopefully not so dumb question here.<div><br></div><div>If I want to transform from one projection to a projection of the earth in 3D, how would I set up my target srs?</div><div><br></div><div>I want to take a WGS-84 lat/long/elevation and have an x,y,z returned in metres.</div><div><br></div><div>Here's my present code:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(0, 116, 0); "><font class="Apple-style-span" color="#000000">&nbsp;&nbsp;</font>// Read the image's projection</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">&nbsp; <span style="color: #5c2699">OGRSpatialReference</span> projSpatialReference(dataset-&gt;<span style="color: #2e0d6e">GetProjectionRef</span>());</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">&nbsp; <span style="color: #5c2699">scoped_ptr</span>&lt;<span style="color: #5c2699">OGRSpatialReference</span>&gt; latLongSpatialReference(projSpatialReference.<span style="color: #2e0d6e">CloneGeogCS</span>());</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">&nbsp;&nbsp;transform = <span style="color: #2e0d6e">OGRCreateCoordinateTransformation</span>(latLongSpatialReference.<span style="color: #2e0d6e">get</span>(), &amp;projSpatialReference);</div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div></div><div>...and of course that transforms from lat/long/elevation to the projection srs nicely. What I'm looking for is a way to specify the target srs so that it yields the x, y, z values for WGS84 3d sphere i.e. the earth.</div><div><br></div><div>Kind regards,</div><div>Christopher</div></body></html>