• Re: Windows freeware for offline editing uploaded GPX tracks

    From Bill Bradshaw@21:1/5 to Bernd Rose on Sat Mar 23 08:29:54 2024
    Bernd Rose wrote:
    On Fri, 22nd Mar 2024 09:28:07 -0800, Bill Bradshaw wrote:

    The simplest answer for you is to purchase a a copy of
    Garmin TOPO U.S. 2008

    Are you sure, this will still work? Garmin Topo Maps (as well as
    Garmin PC software like Garmin Mobile PC) needed to be unlocked
    online. And Garmin shut down their activation servers _ages_ ago.
    (Without the least concern about and compassion with their paying customers...) We have 15 Topo2010 Germany here, which have been
    worthless junk since about 2013, IIRC.

    I just installed Garmin TOPO U.S. 2008 on a new computer about 2 months ago without a problem. I do not remember having any issues and installed it on
    my D: partition.

    <Bill>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Bradshaw@21:1/5 to Bill Bradshaw on Sat Mar 23 08:48:24 2024
    Bill Bradshaw wrote:
    Bernd Rose wrote:
    On Fri, 22nd Mar 2024 09:28:07 -0800, Bill Bradshaw wrote:

    The simplest answer for you is to purchase a a copy of
    Garmin TOPO U.S. 2008

    Are you sure, this will still work? Garmin Topo Maps (as well as
    Garmin PC software like Garmin Mobile PC) needed to be unlocked
    online. And Garmin shut down their activation servers _ages_ ago.
    (Without the least concern about and compassion with their paying
    customers...) We have 15 Topo2010 Germany here, which have been
    worthless junk since about 2013, IIRC.

    I just installed Garmin TOPO U.S. 2008 on a new computer about 2
    months ago without a problem. I do not remember having any issues
    and installed it on my D: partition.

    <Bill>

    I should have added I do have an original TOPO U.S. 2008 DVD I purchased a
    long time ago and this may have made a difference.

    <Bill>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to Bill Bradshaw on Sat Mar 23 19:54:00 2024
    On Sat, 23 Mar 2024 08:48:24 -0800, Bill Bradshaw wrote:

    [Garmin Topo]
    I should have added I do have an original TOPO U.S. 2008 DVD I purchased a long time ago and this may have made a difference.

    We also have all those DVD's. The only things still working are the included
    SD cards, which can be used directly within Garmin Oregon devices and the
    like. For PC use, Topo2010 Germany requires the DVD to be present /and/ the Internet activation.

    Garmin Mobile PC with Topo2010 (tho combo we originally were using) is alive only on just 1 TabletPC, which never got updated from WinXP. All updated TabletPC's never got a chance to re-activate the program and maps because
    of the deactivated activation servers. If we had bought the silly version
    of Garmin Mobile PC hard-wired to a Garmin GPS mouse, we wouldn't need the Internet activation. But this GPS mouse was outdated junk already, when it first hit the market. And we'd still be left with no means to re-activate
    the maps. (Although converted OSM maps worked fairly well back then. And
    even around 2012 were already better - compared to Topo2010. So, Topo2010
    not working anymore is a minor hassle compared to Garmin Mobile PC being abandoned without unlocking the mandatory activation.)

    First rule out of this experience: *Never* again consider Garmin for /anything/, be it professional or personal. I don't even bother to check
    the specs, whenever sb. mentions Garmin. - Dead forever!! :-(

    Bernd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to All on Mon Mar 25 23:20:32 2024
    XPost: alt.comp.freeware

    On Mon, 25th Mar 2024 15:06:03 -0400, Wolf Greenblatt wrote:

    Exactly as I expected: Long winding discussion with no prospect of getting
    to the target, eventually. Despite my initial statement I'll give you some pointers before the matter drifts even further away...

    You would think every topo map program would handle geocalibrated PDFs
    since every single inch of the USA has a free detailed geoPDF, most dating back to more than a hundred years & constantly forever updated ever since. https://www.usgs.gov/faqs/how-do-i-find-and-download-us-topo-and-historical-topographic-htmc-maps

    GeoPdf is a rather new format and requires very sophisticated renderers. Although GeoPdf can hold both, vector and raster data, most USGS GeoPdf
    combine some vector information right into the included raster. This
    leads to 2 problems: Only some additional themes (like contour lines)
    benefit from the free scalability of vector data. Most do not. Still,
    the rendering of GeoPdf is much more compute-intense than raster image
    formats, like GeoTiff, and will therefore be rather slow on display. (Especially so, when more than one GeoPdf is displayed.)

    Much more of a problem, though, is the rendering of map captions, legend,
    and so on right into the raster layer. As long as you only view one tile
    (aka one GeoPdf file) at any given time, this is just a nuisance. But if
    you want to load several tiles alongside each other, you admittedly can
    make the white background of the map tile border transparent. But the
    legend entries and the like will still overlap parts of the adjacent map
    tiles. - Instead of the map you'll see just legend text...

    GeoPdf, fortunately, is not the only map format delivered by the USGS.
    IMHO, a good source for USGS map downloads is:

    https://ngmdb.usgs.gov/topoview/viewer

    Beside GeoPdf you can get Jpeg, GeoTiff, and KMZ. The Jpeg downloads I
    tried contain no geo-reference, which makes them rather useless. Apart
    from this, they also show the legend information. GeoTiff would be a
    great format, but carries the legend, as well. With scripting it should
    be possible to strip the border while keeping a correct geo-reference.
    But this is a /lot/ of hassle.

    Fortunately, the KMZ format contains borderless pure map tiles. When downloading KMZ, you get a *.zip archive, though. For newer US topo
    maps, the *.zip seems to always contain 2 *.kmz files: One shows a
    standard topographic map, while the other contains an aerial orthophoto.
    These images are so called "ground overlays" and comprise (together
    with sidecar doc.kml files) a special variety of *.kmz files.

    Next question is, which GIS program supports *.kmz files. A good choice
    seems to be GpxSee (www.gpxsee.org). Unfortunately, it doesn't seem to
    permit seamless viewing of several *.kmz files and also (currently?)
    has problems displaying GPX tracks. It has a nice map caching mode for
    several online map sources, tough. And there is a repository with
    configuration files for additional sources.

    If a small and easy solution cannot be found, QGIS usually is the way
    to look. With KML Tools plugin the ground overlays can be extracted
    and converted (with the coordinates from their sidecar *.kml files)
    to GeoTiff files.

    IMHO, there's a better approach, though. After downloading the *.zip
    with the *.kmz files, extract the latter from the *.zip. All *.kmz
    files are also *.zip files (just renamed). If you can open them in a
    file manger of your choice, directly, then do so. Otherwise, rename
    all *.kmz files to *.zip.

    Each of these USGS *.kmz/*.zip files contains a subdirectory "assets",
    which you can ignore. You need the *.jpg file and the doc.kml. Extract
    these in a directory of your choice and rename the doc.kml to the name
    of the *.jpg. (Do /not/ change the name of the *.jpg file!)

    Create different target directories for the the topo images and the
    aerial images. Both *.jpg files have the same name and cannot reside
    in the same directory. (If you rename a *.jpg, you need to edit the
    content of the sidecar *.kml, as well. - To adjust the reference inside
    it to the new name.)

    If you used the KML tools export approach, you load the new GeoTiff
    files into your QGIS map, afterwards. If you went the extraction path,
    you don't load the *.jpg files. Instead you load the sidecar *.kml
    files. You'll be asked by QGIS, which content from the *.kml you wish
    to load. Ignore the point and area theme and instead load the listed
    image (has a raster symbol).

    Bottom line: The description is much more complicated, than executing
    it. But only, if each step is really understood...

    Good luck!
    Bernd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Bradshaw@21:1/5 to Bernd Rose on Tue Mar 26 08:54:10 2024
    XPost: alt.comp.freeware

    Bernd Rose wrote:
    On Mon, 25th Mar 2024 15:06:03 -0400, Wolf Greenblatt wrote:

    Exactly as I expected: Long winding discussion with no prospect of
    getting to the target, eventually. Despite my initial statement I'll
    give you some pointers before the matter drifts even further away...

    Much more of a problem, though, is the rendering of map captions,
    legend, and so on right into the raster layer. As long as you only
    view one tile (aka one GeoPdf file) at any given time, this is just a nuisance. But if you want to load several tiles alongside each other,
    you admittedly can make the white background of the map tile border transparent. But the legend entries and the like will still overlap
    parts of the adjacent map tiles. - Instead of the map you'll see just
    legend text...

    I cut this down to something that interested me. I stitch USGS maps
    together after converting them to tiff. I have a program that lets me crop
    the borders off of the tiff. Not the easiest to do in Alaska as we are so
    far North our maps latitudes have pronounced curvature and our longitudes
    have obvious convergence so the stitched maps are never perfect. What are
    you using to make the borders transparent and could you outline the process?
    --
    <Bill>

    Brought to you from Anchorage, Alaska

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to Bill Bradshaw on Tue Mar 26 18:45:09 2024
    XPost: alt.comp.freeware

    On Tue, 26 Mar 2024 08:54:10 -0800, Bill Bradshaw wrote:

    I stitch USGS maps together after converting them to tiff. I have a
    program that lets me crop the borders off of the tiff.

    Why would you do this, when you can download them borderless in the first place?? The tiles inside the KMZ format are already borderless.

    What are you using to make the borders transparent and could you outline
    the process?

    Not the whole border, just the white background. There are several ways,
    from selecting a color to be NoData inside the GIS program, to using
    gdal or even an image manipulation tool like image magick or graphics
    magick to define a transparency mask. Probably the easiest way to make
    the white background transparent is setting "srcnodata" when creating
    a large virtual raster file from all the single tiles with gdalbuildvrt:

    https://gdal.org/programs/gdalbuildvrt.html

    OTOH, you could forgo transparency completely, though, by using gdalbuildvrt with suitable "te" parameters. You get the boundary parameters from the
    doc.kml file inside each KMZ variant. But again, why would you go this way, when you could have used KMZ in the first place?

    And here I am explaining ways to do what I recommended /not/ to do. Always
    the same in these discussions about USGS topo maps. :-(

    Bernd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to All on Tue Mar 26 23:57:31 2024
    XPost: alt.comp.freeware

    Following myself up:

    And here I am explaining ways to do what I recommended /not/ to do. Always the same in these discussions about USGS topo maps. :-(

    Maybe the following basis for a conversion script can be of use for some. Starting from USGS *.kmz files most common geo-referenced image formats
    can be created:

    ::--------------------[conversion.cmd]--------------------
    for %%f in (*.kmz) do (
    gdal_translate -co worldfile=yes /vsizip/%%f/doc.kml %%~dpnf.png
    gdal_translate -b 1 -b 2 -b 3 /vsizip/%%f/doc.kml %%~dpnf.vrt
    sed -i "s/doc.kml/%%~nf_kmz.jpg/g" %%~dpnf.vrt
    gdal_translate -co compress=jpeg %%~dpnf.vrt %%~dpnf.tif
    )
    ::--------------------[conversion.cmd]--------------------

    The Gdal package and Sed need to be available in path for this to work.

    The conversion /can/ be done with one step directly from *.kmz to
    common formats. This is shown for the *.png example.

    For GeoTiff files the demonstrated 3-step-approach is better, though,
    because it prevents lossy recompression of the *.kmz-internal *.jpg.
    For this conversion to work, the *.vrt must be created without Alpha
    channel. Hence, the explicit mentioning of the 3 target bands.

    The "outer" name of the *.kmz file needs to be adjusted to the name of
    the "inner" *.jpeg. Fixed appendices like the standard "_kmz" are no
    problem as shown above. For Ortho-KMZ files it is easier to adjust the
    outer name, though. Although stripping of "orth" inside the script is
    possible; renaming is much easier.

    Vsizip is the virtual *.zip file driver of Gdal. (A *.kmz file is just
    a renamed *.zip.)

    HTH.
    Bernd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Bradshaw@21:1/5 to Bernd Rose on Wed Mar 27 08:51:15 2024
    XPost: alt.comp.freeware

    Bernd Rose wrote:
    On Tue, 26 Mar 2024 08:54:10 -0800, Bill Bradshaw wrote:

    I stitch USGS maps together after converting them to tiff. I have a
    program that lets me crop the borders off of the tiff.

    Why would you do this, when you can download them borderless in the
    first place?? The tiles inside the KMZ format are already borderless.

    What are you using to make the borders transparent and could you
    outline the process?

    Not the whole border, just the white background. There are several
    ways, from selecting a color to be NoData inside the GIS program, to
    using
    gdal or even an image manipulation tool like image magick or graphics
    magick to define a transparency mask. Probably the easiest way to make
    the white background transparent is setting "srcnodata" when creating
    a large virtual raster file from all the single tiles with
    gdalbuildvrt:

    https://gdal.org/programs/gdalbuildvrt.html

    OTOH, you could forgo transparency completely, though, by using
    gdalbuildvrt with suitable "te" parameters. You get the boundary
    parameters from the doc.kml file inside each KMZ variant. But again,
    why would you go this way, when you could have used KMZ in the first
    place?

    And here I am explaining ways to do what I recommended /not/ to do.
    Always the same in these discussions about USGS topo maps. :-(

    Bernd

    I did not realize there were borderless files in the KMZ. I will start by looking at these. I have saved your followup message.

    <Bill>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Bradshaw@21:1/5 to Bill Bradshaw on Wed Mar 27 12:09:13 2024
    XPost: alt.comp.freeware

    Bill Bradshaw wrote:
    Bernd Rose wrote:
    On Tue, 26 Mar 2024 08:54:10 -0800, Bill Bradshaw wrote:

    I stitch USGS maps together after converting them to tiff. I have a
    program that lets me crop the borders off of the tiff.

    Why would you do this, when you can download them borderless in the
    first place?? The tiles inside the KMZ format are already borderless.

    Bernd

    I did not realize there were borderless files in the KMZ. I will
    start by looking at these. I have saved your followup message.

    <Bill>

    So I went to USGS viewer to download a topo as a quadrangle as a KMZ. But
    only was given the options of geopdf or tif. I am waiting for them send me
    the tif and I hope it is actually the KMZ file. Have I missed something?

    <Bill>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to Bill Bradshaw on Wed Mar 27 21:35:24 2024
    XPost: alt.comp.freeware

    On Wed, 27th Mar 2024 12:09:13 -0800, Bill Bradshaw wrote:

    So I went to USGS viewer to download a topo as a quadrangle as a KMZ. But only was given the options of geopdf or tif. I am waiting for them send me the tif and I hope it is actually the KMZ file. Have I missed something?

    Waiting to send?? Did you go to the website I suggested:

    https://ngmdb.usgs.gov/topoview/viewer

    You should see an overview of the map of North America with US territory highlighted in light red. On the left side is a bar containing basic
    navigation controls; and on the right side is a (retractable) settings
    and selection panel. If in retracted state you should see a small black
    area with white arrowhead in the upper right corner of the map window.
    Click there to get the panel back to visible state.

    Zoom to your area of interest and click in the center of this area. You
    now should see a selection frame on the map and a list of all available
    themes in the panel on the right side. You can use the filter options
    of the panel (map creation time, reference scale and theme) to reduce
    the list to the most relevant maps. For instance: Show only maps from
    1990 or newer, reference scale 24k, and UST (= US Topo Collection).

    If only one map fits your conditions, its entry will be expanded. Else,
    just the first entry in the list will be expanded. If you want another
    map from the list, select it. This focus map entry should now be shown
    in expanded state, revealing the download options and other functions.
    Click the preferred download option (KMZ in this case) and a SaveAs
    dialog should show up, enabling you to save the zipped KMZ file(s) for
    your selection.

    If you don't see these options, you may need to change your browser or
    check its settings. (JavaScript, Cookies, and the like may be relevant.)

    Bernd

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Bradshaw@21:1/5 to Bernd Rose on Wed Mar 27 13:51:52 2024
    XPost: alt.comp.freeware

    Bernd Rose wrote:
    On Wed, 27th Mar 2024 12:09:13 -0800, Bill Bradshaw wrote:

    So I went to USGS viewer to download a topo as a quadrangle as a
    KMZ. But only was given the options of geopdf or tif. I am waiting
    for them send me the tif and I hope it is actually the KMZ file.
    Have I missed something?

    Waiting to send?? Did you go to the website I suggested:

    https://ngmdb.usgs.gov/topoview/viewer

    You should see an overview of the map of North America with US
    territory highlighted in light red. On the left side is a bar
    containing basic navigation controls; and on the right side is a (retractable) settings and selection panel. If in retracted state you
    should see a small black area with white arrowhead in the upper right
    corner of the map window. Click there to get the panel back to
    visible state.

    Zoom to your area of interest and click in the center of this area.
    You now should see a selection frame on the map and a list of all
    available themes in the panel on the right side. You can use the
    filter options of the panel (map creation time, reference scale and
    theme) to reduce the list to the most relevant maps. For instance:
    Show only maps from 1990 or newer, reference scale 24k, and UST (= US
    Topo Collection).

    If only one map fits your conditions, its entry will be expanded.
    Else, just the first entry in the list will be expanded. If you want
    another map from the list, select it. This focus map entry should now
    be shown in expanded state, revealing the download options and other functions. Click the preferred download option (KMZ in this case) and
    a SaveAs dialog should show up, enabling you to save the zipped KMZ
    file(s) for your selection.

    If you don't see these options, you may need to change your browser or
    check its settings. (JavaScript, Cookies, and the like may be
    relevant.)

    Bernd

    I missed that it was not USGS site. It works. I have to look at it a
    little more. I see value to it.

    <Bill>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bernd Rose@21:1/5 to Bill Bradshaw on Thu Mar 28 07:02:54 2024
    XPost: alt.comp.freeware

    On Wed, 27 Mar 2024 13:51:52 -0800, Bill Bradshaw wrote:

    Did you go to the website I suggested:

    https://ngmdb.usgs.gov/topoview/viewer
    [...]
    I missed that it was not USGS site.

    It is just one out of many USGS sites. Or what do you think "usgs.gov"
    stands for?? Btw., "ngmdb" is short for "National Geologic Map Database".

    It works.

    Good.

    Bernd

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