• Offline Windows latitude and longitude converter (DMS <-> DD <-> Dd

    From B. R. 'BeAr' Ederson@21:1/5 to Bob J Jones on Wed Mar 28 19:11:09 2018
    XPost: alt.comp.freeware

    On Wed, 28 Mar 2018 08:27:23 +0000 (UTC), Bob J Jones wrote:

    Do you know of an offline Windows latitude and longitude converter
    that will convert degrees minutes seconds to Degrees decimal Minutes?

    The cs2cs command line converter does about any coordinate transformation:

    http://proj4.org/apps/cs2cs.html

    Input *can* be latitude/longitude, *standard* output is DMS for geographic coordinates.

    BeAr
    --
    ===========================================================================
    = What do you mean with: "Perfection is always an illusion"? = ===============================================================--(Oops!)===

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob J Jones@21:1/5 to Ederson" on Wed Mar 28 22:08:08 2018
    XPost: alt.comp.freeware

    In <news:jqcwylqnn701.dlg@br-ederson.eternal-september.org>, "B. R. 'BeAr' Ederson" <use.replyto@this.is.invalid> wrote:

    OziExplorer is "just" a GUI wrapper (like the free QGIS I recommended)
    around the functionality of the GIS tools and libraries from the free
    open source OSGEO project (and several others). These libraries and
    tools are - of course - also available for Linux. Actually, most of
    them have been initially developed there; and were just ported to Win
    later on.

    So for example: Instead of having OziExplorer call up gdal_translate,
    you could run it all by yourself.

    Wow. Thanks for that useful information.

    I don't have anywhere near the skillset required to make use of that information to create a Linux tool that geocalibrates the USGS PDF
    topographic maps and then edits and displays tracks on those geocalibrated maps, but that's great to know that the underlying capability exists for a
    good Linux coder to follow up on.

    Thanks!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From B. R. 'BeAr' Ederson@21:1/5 to Bob J Jones on Wed Mar 28 23:25:25 2018
    XPost: alt.comp.freeware

    On Wed, 28 Mar 2018 19:38:08 +0000 (UTC), Bob J Jones wrote:

    I was asked by a friend if this process described below works for Linux in addition to Windows. https://groups.google.com/d/msg/sci.geo.satellite-nav/yONNWAEx23Y/7LpakFp4BwAJ
    [...]
    So, unless the main capability of stitching USGS PDFs together and geocalibrating them and editing tracks on them is available on Linux,
    having this command in linux isn't all that helpful.

    OziExplorer is "just" a GUI wrapper (like the free QGIS I recommended)
    around the functionality of the GIS tools and libraries from the free
    open source OSGEO project (and several others). These libraries and
    tools are - of course - also available for Linux. Actually, most of
    them have been initially developed there; and were just ported to Win
    later on.

    So for example: Instead of having OziExplorer call up gdal_translate,
    you could run it all by yourself.

    BeAr
    --
    ===========================================================================
    = What do you mean with: "Perfection is always an illusion"? = ===============================================================--(Oops!)===

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From B. R. 'BeAr' Ederson@21:1/5 to Bob J Jones on Thu Mar 29 00:24:25 2018
    XPost: alt.comp.freeware

    On Wed, 28 Mar 2018 22:08:08 +0000 (UTC), Bob J Jones wrote:

    In <news:jqcwylqnn701.dlg@br-ederson.eternal-september.org>, "B. R. 'BeAr' Ederson" <use.replyto@this.is.invalid> wrote:

    OziExplorer is "just" a GUI wrapper (like the free QGIS I recommended)
    around the functionality of the GIS tools and libraries from the free
    open source OSGEO project (and several others). These libraries and
    tools are - of course - also available for Linux. Actually, most of
    them have been initially developed there; and were just ported to Win
    later on.

    So for example: Instead of having OziExplorer call up gdal_translate,
    you could run it all by yourself.

    Wow. Thanks for that useful information.

    I don't have anywhere near the skillset required to make use of that information to create a Linux tool that geocalibrates the USGS PDF topographic maps and then edits and displays tracks on those geocalibrated maps, but that's great to know that the underlying capability exists for a good Linux coder to follow up on.

    You really don't get it: The programs /are/ all available. QGIS (available
    for Windows as well as Linux, Mac, BSD) is currently just the best solution
    as a GUI. Suitable for beginners as well as GIS Pro's. But there are other GUI's as well. *And* countless GIS command line tools and libraries.

    QGIS also supports geopdf files directly. (No need for conversation.) But
    those huge files load (very) slowly. Therefore I did recommend using WMS services. These load nearly instantaneously. No need to load, convert and
    store huge amounts of raster data (which soon will be outdated), just to
    adjust a couple of track points to elevation contour lines..

    BeAr
    --
    ===========================================================================
    = What do you mean with: "Perfection is always an illusion"? = ===============================================================--(Oops!)===

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Terje Mathisen@21:1/5 to All on Fri Mar 30 12:16:02 2018
    I'm sure that you could write such a converter in PowerShell (assuming
    you are on Windows), or you could download a free perl implementation
    and use a script like this: If an input line contains 3 numbers it
    assumes DD MM SS and returns DD MM.MMMM, if two it assumes DD MM.MMM and returns DD.DDDDDD, and a single input is converted from DD.DDDDD to DD
    MM SS.S.

    #!perl -w
    while (<>) {
    chomp;
    (my $d, $m, $s) = split;
    if (defined($s) && $s ne '') { # 3 inputs!
    printf("%s %6.4f\n", $d, $m+$s/60); # Return DD MM.MMMM
    }
    elsif (defined($m) && $m ne '') { # 2 inputs
    printf("%8.6f\n", $d+$m/60); # Return DD.DDDDDD
    }
    elsif (defined($d)) {
    $m = $d*60; $d = int($d); $m -= $d*60;
    $s = $m*60; $m = int($m); $s -= $m*60;
    printf("%2d %2d %4.1f\n", $d, $m, $s); # Return DD MM SS.S
    }
    }

    I've tested this far enough to see that it is accurate at the sub-meter
    level, which is far better than needed for map calibration.

    Terje

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)