<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">Hi Norman,</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">What you're looking for should be possible even though I'm not quite clear about what you mean by "<i>
Add metres to it
</i>"</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">What's the source & target EPSG ID, btw? CS-Map doesn't support all EPSG coordinate reference systems, but a good amount of it.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">But let me test my understanding here:</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">For a given EPSG 'coordinate reference system' (assuming CS-Map has support for it), you need to convert/transform a point to a different 'coordinate reference system', which, in your case, happens
to be a projected system which uses a spherical projection (which?) ?</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">This you can do using the <span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">CS_cnvrt function (in forward and inverse direction).</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; "><br>
</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span style="color: #a10066">double</span> xyz [3];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px">
<br>
</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">xyz [0] = 0.0;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">xyz [1] = 20000000.000;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">xyz [2] = 0.0;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height: 15.0px">
<br>
</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #5700ff"><span style="color: #a10066">int</span><span style="color: #000000"> st = CS_cnvrt (</span>"WGS84.PseudoMercator"<span style="color: #000000">,</span>"LL"<span style="color: #000000">,xyz);</span></p>
</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; "><br>
</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">Note though, that this requires you to supply </span><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">CS-Map </span><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">(string)
IDs not EPSG Ids</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; "><br>
</span></div>
<div><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">CSepsg2adskCS() does the mapping.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br>
</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">BTW are you just interested in calculating a point which does have an offset to the given original point?</p>
</span><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">If so, you might want to look into </p>
</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><font class="Apple-style-span" face="Monaco" size="2"><br>
</font></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 11px; ">CS_azddll</span></font></div>
<div><font class="Apple-style-span" face="Monaco" size="2"><br>
</font></div>
<div><font class="Apple-style-span" face="Monaco" size="2">which calculates a LL (long lat) target point from a source LL coordinate pair, azimuth & distance (i.e. meter). The LL point for your projected coordinates (and vice versa) you can retrieve using the </font><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">CS_cs2ll
and </span><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">CS_ll2cs functions, respectively.</span></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><font class="Apple-style-span" face="Monaco" size="2"><br>
</font></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><font class="Apple-style-span" face="Monaco" size="2">HTH,</font></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><font class="Apple-style-span" face="Monaco" size="2">Andre</font></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "></div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br>
</p>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; ">On 3/20/13 10:36 PM, "Norman Barker" <<a href="mailto:norman.barker@gmail.com">norman.barker@gmail.com</a>> wrote:</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; "><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="font-family: Calibri, sans-serif; font-size: 14px; border-left-color: rgb(181, 196, 223); border-left-width: 5px; border-left-style: solid; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 5px; ">
<div>Hi,</div>
<div><br>
</div>
<div>I am using csmap for the first time and I have been able to get it</div>
<div>compiled on mac. I am interested in how I take a point in a particular</div>
<div>projection (for now defined by an epsg code) and convert this to a</div>
<div>spherical projection and add metres to it and then reverse this</div>
<div>transform. I am trying to do the same as the PostGIS Geographic type</div>
<div>but using CsMap to do a radius search, I will then use geos to buffer</div>
<div>the original centre point by the distance (in the original</div>
<div>coordinates).</div>
<div><br>
</div>
<div>Is this possible?</div>
<div><br>
</div>
<div>thanks,</div>
<div><br>
</div>
<div>Norman</div>
<div>_______________________________________________</div>
<div>MetaCRS mailing list</div>
<div><a href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a></div>
<div><a href="http://lists.osgeo.org/mailman/listinfo/metacrs">http://lists.osgeo.org/mailman/listinfo/metacrs</a></div>
<div><br>
</div>
</blockquote>
</body>
</html>