<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Ah, thanks!<br>
      <br>
      On 10/19/2017 11:46 AM, Jose Gonçalves wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALHLaOQ9ekpnjMgGN=h29P+66UUntpnt7h1wF18SsmC-kbxOcA@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi<br>
            </div>
            You must have longitude first, or use option -r in cs2cs, to
            reverse the order.<br>
          </div>
          Regards<br>
          <br>
        </div>
        José Gonçalves<br>
        <br>
        <div>
          <div><br>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-10-19 9:26 GMT+01:00 David
          Grundberg <span dir="ltr">&lt;<a
              href="mailto:david.grundberg@oryx.se" target="_blank"
              moz-do-not-send="true">david.grundberg@oryx.se</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
            <br>
            I'd like to have a cartesian space, ideally in meters,
            axis-aligned with<br>
            north/east/up, centered on a WGS84 position, so that I can
            transform<br>
            between this cartesian space and WGS84 coordinates. I
            attempted to make<br>
            a Mercator projection but quickly ran into problems. Just to
            illustrate,<br>
            I tested with geocentric projection and known coordinates.<br>
            <br>
            I tested it with coordinates for a track and it should be
            100 meters<br>
            between the points.<br>
            <br>
            &lt;<a
href="https://kartor.eniro.se/?c=63.821347,20.321247&amp;z=18&amp;l=aerial&amp;d=%7B%22l%22:[[63.821477,20.321209,63.820758,20.322454,null,0]]%7D"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://kartor.eniro.se/?c=<wbr>63.821347,20.321247&amp;z=18&amp;l=<wbr>aerial&amp;d={%22l%22:[[63.821477,<wbr>20.321209,63.820758,20.322454,<wbr>null,0]]}</a>&gt;<br>
            or <a href="https://tinyurl.com/ybcxe3sb" rel="noreferrer"
              target="_blank" moz-do-not-send="true">https://tinyurl.com/ybcxe3sb</a><br>
            <br>
            $ printf "63.821477N 20.321209E\n63.820758N 20.322454E" |
            cs2cs -v<br>
            +proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs +to
            +proj=geocent<br>
            +datum=WGS84 +to_meters<br>
            # ---- From Coordinate System ----<br>
            #Lat/long (Geodetic alias)<br>
            #<br>
            # +proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs
            +towgs84=0,0,0<br>
            #--- following specified but NOT used<br>
            # +ellps=WGS84<br>
            # ---- To Coordinate System ----<br>
            #Geocentric<br>
            #<br>
            # +proj=geocent +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0<br>
            #--- following specified but NOT used<br>
            # +to_meters<br>
            2639773.20    5369807.65 2201077.86<br>
            2639819.46    5369731.56 2201207.11<br>
            $ octave<br>
            octave:1&gt; norm([2639773.20 5369807.65 2201077.86] -
            [2639819.46<br>
            5369731.56 2201207.11])<br>
            ans =  156.96 # Should be about 100.7 meters!<br>
            octave:2&gt;<br>
            $<br>
            <br>
            Any advice appreciated!<br>
            David<br>
            ______________________________<wbr>_________________<br>
            Proj mailing list<br>
            <a href="mailto:Proj@lists.maptools.org"
              moz-do-not-send="true">Proj@lists.maptools.org</a><br>
            <a href="http://lists.maptools.org/mailman/listinfo/proj"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.maptools.org/<wbr>mailman/listinfo/proj</a></blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Proj mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/proj">http://lists.maptools.org/mailman/listinfo/proj</a></pre>
    </blockquote>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
      <!-- commence awesome signature -->
      <p style="margin-top: 0; margin-bottom: 1.5pt;"><span
style="font-size:13.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#065489"
          lang="EN-US">David Grundberg</span><br>
        <span
style="font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#2e2829"
          lang="EN-US">Developer, System Development</span></p>
      <p style="margin-top:
0pt;font-size:12.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#2e2829">
        Phone: +46 90 348 49 28<br>
        E-mail: <a moz-do-not-send="true"
          href="mailto:david.grundberg@oryx.se" target="_blank"><span
            style="color:#1155cc" lang="EN-US">david.grundberg@oryx.se</span></a>
      </p>
      <!-- stop awesome signature -->
    </div>
  </body>
</html>