tumic0 / GPXSee

GPS log file viewer and analyzer with support for GPX, TCX, KML, FIT, IGC, NMEA, SLF, SML, LOC, GPI, GeoJSON and OziExplorer files.
https://www.gpxsee.org
GNU General Public License v3.0
938 stars 129 forks source link

FR: map overlay support #178

Open sikmir opened 5 years ago

sikmir commented 5 years ago

Are there any plans for map overlay support? It's often needed to combine some base map (e.g. OSM) and some specific/local map (e.g. orienteering, mountains, OpenRailwayMap, etc).

tumic0 commented 5 years ago

Not at the moment. It would require a complete rewrite of the maps related code to make it universal (with reprojecting), even only a limited overlay support for maps of the same coordinates system would be a lot of work. Although GPXSee supports a broad range of maps, this is IMHO something that already belongs to some GIS rather than into a simple GPS log viewer. But lets let it open.

MeisterP commented 4 years ago

This feature would be handy to add hillshading tiles...

See https://wiki.openstreetmap.org/wiki/Hike_%26_Bike_Map#Tiles for example urls

scls19fr commented 4 years ago

It will be a nice feature to have! But I understand it can be complex to implement.

tumic0 commented 4 years ago

Since a958544667179b8c6b207fc79724eea5ef9f28fa there is at least support for GARMIN IMG maps overlays.

If the map name is mapname.img and there is also a file named mapname.img.1 (.2, .3, ... for additional layers) in the same path, than it will be automatically loaded as an overlay of mapname.img.

sikmir commented 4 years ago

Since a958544 there is at least support for GARMIN IMG maps overlays.

Does GPXSee support raster maps in GARMIN IMG format?

tumic0 commented 4 years ago

Does GPXSee support raster maps in GARMIN IMG format?

No. Such maps are not very common (maybe except marine charts) and the format is not known. Spending time on reverse engineering this part of IMG maps is IMHO not worth it.

If someone wants to get his brain damaged by reverse engineering the biggest mess in software engineering history then the NT routable links (aka roads in NT maps) are a much better way to do so...

sikmir commented 4 years ago

No. Such maps are not very common (maybe except marine charts) and the format is not known. Spending time on reverse engineering this part of IMG maps is IMHO not worth it.

Just in case:

sikmir commented 4 years ago

Since a958544 there is at least support for GARMIN IMG maps overlays.

If the map name is mapname.img and there is also a file named mapname.img.1 (.2, .3, ... for additional layers) in the same path, than it will be automatically loaded as an overlay of mapname.img.

I've tried the following:

  1. Download OV-Hib-Lov-20191028-1.02.img map from here into ~/.local/share/gpxsee/maps/test.img.1
  2. Create IMG map from GPX file (file, IMGfromGPX tool) and place it into ~/.local/share/gpxsee/maps/test.img
  3. Result: scr0

That's almost perfect at least for my use case (show all my tracks over some basemap without loading all tracks as gpx)! Thanks!