<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I don't think the problems with accuracy stem from the limited
    number of decimals in a <i>double</i> variable<br>
    <br>
    <ul>
      <li>The circumference of earth: ca. 40.076 km.<br>
        <br>
      </li>
      <li>1 degree in meters 40076 km / 360 = 111.32 km/degree = 111320
        m/degree.<br>
        
</li>
      <li>A double has 52 bits precision, roughly 15 digits (in 10
        exponent). <br>
        That means that the decimal degree has a precision of around
        111320/1000000000000000  = 1.1132e-10 m = (ca.) 1e-7 mm.<br>
        (That should be enough for everyone...)<br>
        
</li>
      <li>However, if you store your decimal degree value as a single
        precision real with 23 bits precision (aka. 7 digits precision
        in 10 exponent), it's another story: <br>
        This will give you around: 111320/10000000 m = 0.011132 m =
        11.132 mm</li>
    </ul>
    <br>
    So store your decimal degree as doubles, not single precision real. 
    <br>
    <br>
    Regards <br>
    Bo Victor Thomsen<br>
    Municipality of Frederikssund, Denmark<br>
    
<br>
    <br>
    Den 10/04/17 kl. 08:39 skrev Richard Duivenvoorde:<br>
    <blockquote cite="mid:c3f82fe3-7ce3-0bb9-4d9e-0867187bc419@duif.net"
      type="cite">
      <pre wrap="">Hi List,

Had a discussion here with some people about the use of showing the
latlon degrees in degrees/minute/seconds tuple instead of the decimal
notation:
"4.40069397,51.71060887"
vs
"4°24′02.49807059″E,51°42′38.19184916″N" (or variations on that)

Is there some general preference in this? To me the first one is just
easier to handle, but I'm not sure what the general preference is in the
GIS world.

Any comments?

Or is everybody using the national crs's anyway :-)

Regards,

Richard Duivenvoorde
_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>