From c79ee019121e385b43e0fd78d8d05e477784f956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 6 Jul 2022 09:26:42 +0200 Subject: [PATCH] Added Osmdroid SQLite maps desktop integration --- pkg/Info.plist | 39 +++++++++++++++++++++++++++++++++++++++ pkg/appdata.xml | 2 ++ pkg/gpxsee.desktop | 2 +- pkg/gpxsee.xml | 7 +++++++ pkg/gpxsee64.nsi | 4 ++++ 5 files changed, 53 insertions(+), 1 deletion(-) diff --git a/pkg/Info.plist b/pkg/Info.plist index b9a9ad14..f0e73ab2 100644 --- a/pkg/Info.plist +++ b/pkg/Info.plist @@ -478,6 +478,22 @@ CFBundleTypeRole Viewer + + CFBundleTypeExtensions + + sqlite + + CFBundleTypeMIMETypes + + application/vnd.osmdroid.sqlite + + CFBundleTypeIconFile + icons/sqlt.icns + CFBundleTypeName + Osmdroid SQLite Map File + CFBundleTypeRole + Viewer + CFBundleTypeExtensions @@ -1235,6 +1251,29 @@ application/vnd.alpinequest.aqm + + UTTypeIdentifier + org.osmdroid.sqlite + UTTypeReferenceURL + https://github.com/osmdroid/osmdroid + UTTypeDescription + Osmdroid SQLite Map File + UTTypeIconFile + icons/sqlt.icns + UTTypeConformsTo + + public.data + + UTTypeTagSpecification + + public.filename-extension + + sqlite + + public.mime-type + application/vnd.osmdroid.sqlite + + UTTypeIdentifier com.robert.maps diff --git a/pkg/appdata.xml b/pkg/appdata.xml index fef6ee74..b3e3638d 100644 --- a/pkg/appdata.xml +++ b/pkg/appdata.xml @@ -21,6 +21,7 @@
  • Offline maps (MBTiles, OziExplorer maps, TrekBuddy maps/atlases, TwoNav RMaps, Garmin IMG & JNX maps, GeoTIFF images, BSB nautical charts, KMZ maps, AlpineQuest maps, + Locus/OsmAnd/RMaps SQLite maps, Osmdroid SQLite maps, Mapsforge maps, QCT maps, ESRI world files).
  • Elevation, speed, heart rate, cadence, power, temperature and gear ratio graphs.
  • @@ -92,6 +93,7 @@ application/vnd.google-earth.kmz application/vnd.alpinequest.aqm application/vnd.rmaps.sqlite + application/vnd.osmdroid.sqlite application/vnd.mapsforge.map application/vnd.tomtom.ov2 application/vnd.tomtom.itn diff --git a/pkg/gpxsee.desktop b/pkg/gpxsee.desktop index 04b353f7..7ca26dc9 100644 --- a/pkg/gpxsee.desktop +++ b/pkg/gpxsee.desktop @@ -15,4 +15,4 @@ Icon=gpxsee Terminal=false Type=Application Categories=Graphics;Viewer;Education;Geography;Maps;Sports;Qt -MimeType=application/gpx+xml;application/vnd.garmin.tcx+xml;application/vnd.ant.fit;application/vnd.google-earth.kml+xml;application/vnd.fai.igc;application/vnd.nmea.nmea;application/vnd.oziexplorer.plt;application/vnd.oziexplorer.rte;application/vnd.oziexplorer.wpt;application/vnd.groundspeak.loc+xml;application/vnd.sigma.slf+xml;application/geo+json;application/vnd.naviter.seeyou.cup;application/vnd.garmin.gpi;application/vnd.suunto.sml+xml;image/jpeg;text/csv;application/vnd.garmin.img;application/vnd.garmin.jnx;application/vnd.garmin.gmap+xml;image/vnd.maptech.kap;application/vnd.oziexplorer.map;application/vnd.mapbox.mbtiles;application/vnd.twonav.rmap;application/vnd.trekbuddy.tba;application/vnd.gpxsee.map+xml;application/x-tar;image/tiff;application/vnd.google-earth.kmz;application/vnd.alpinequest.aqm;application/vnd.rmaps.sqlite;application/vnd.mapsforge.map;application/vnd.tomtom.ov2;application/vnd.tomtom.itn;application/vnd.esri.wld;application/vnd.onmove.omd;application/vnd.onmove.ghp;application/vnd.memory-map.qct;application/vnd.twonav.trk;application/vnd.twonav.rte;application/vnd.twonav.wpt +MimeType=application/gpx+xml;application/vnd.garmin.tcx+xml;application/vnd.ant.fit;application/vnd.google-earth.kml+xml;application/vnd.fai.igc;application/vnd.nmea.nmea;application/vnd.oziexplorer.plt;application/vnd.oziexplorer.rte;application/vnd.oziexplorer.wpt;application/vnd.groundspeak.loc+xml;application/vnd.sigma.slf+xml;application/geo+json;application/vnd.naviter.seeyou.cup;application/vnd.garmin.gpi;application/vnd.suunto.sml+xml;image/jpeg;text/csv;application/vnd.garmin.img;application/vnd.garmin.jnx;application/vnd.garmin.gmap+xml;image/vnd.maptech.kap;application/vnd.oziexplorer.map;application/vnd.mapbox.mbtiles;application/vnd.twonav.rmap;application/vnd.trekbuddy.tba;application/vnd.gpxsee.map+xml;application/x-tar;image/tiff;application/vnd.google-earth.kmz;application/vnd.alpinequest.aqm;application/vnd.rmaps.sqlite;application/vnd.osmdroid.sqlite;application/vnd.mapsforge.map;application/vnd.tomtom.ov2;application/vnd.tomtom.itn;application/vnd.esri.wld;application/vnd.onmove.omd;application/vnd.onmove.ghp;application/vnd.memory-map.qct;application/vnd.twonav.trk;application/vnd.twonav.rte;application/vnd.twonav.wpt diff --git a/pkg/gpxsee.xml b/pkg/gpxsee.xml index 6644e13f..e14e274a 100644 --- a/pkg/gpxsee.xml +++ b/pkg/gpxsee.xml @@ -286,6 +286,13 @@ + + Osmdroid SQLite Map File + + + + + Mapsforge Map File diff --git a/pkg/gpxsee64.nsi b/pkg/gpxsee64.nsi index f38c3fb1..053aa658 100644 --- a/pkg/gpxsee64.nsi +++ b/pkg/gpxsee64.nsi @@ -166,6 +166,7 @@ Section "GPXSee" SEC_APP !insertmacro FILE_ASSOCIATION_ADD "rmap" "TwoNav Raster Map File" 14 !insertmacro FILE_ASSOCIATION_ADD "tba" "TrekBuddy Atlas" 15 !insertmacro FILE_ASSOCIATION_ADD "aqm" "AlpineQuest Map File" 16 + !insertmacro FILE_ASSOCIATION_ADD "sqlite" "Osmdroid SQLite Map File" 17 !insertmacro FILE_ASSOCIATION_ADD "sqlitedb" "RMaps SQLite Map File" 17 !insertmacro FILE_ASSOCIATION_ADD "ov2" "TomTom POI File" 18 !insertmacro FILE_ASSOCIATION_ADD "itn" "TomTom Route File" 19 @@ -223,6 +224,7 @@ Section "GPXSee" SEC_APP WriteRegStr HKCR ".xml\OpenWithList" "GPXSee.exe" "" WriteRegStr HKCR ".kmz\OpenWithList" "GPXSee.exe" "" WriteRegStr HKCR ".aqm\OpenWithList" "GPXSee.exe" "" + WriteRegStr HKCR ".sqlite\OpenWithList" "GPXSee.exe" "" WriteRegStr HKCR ".sqlitedb\OpenWithList" "GPXSee.exe" "" WriteRegStr HKCR ".wld\OpenWithList" "GPXSee.exe" "" WriteRegStr HKCR ".jgw\OpenWithList" "GPXSee.exe" "" @@ -373,6 +375,7 @@ Section "Uninstall" !insertmacro FILE_ASSOCIATION_REMOVE "tba" !insertmacro FILE_ASSOCIATION_REMOVE "kmz" !insertmacro FILE_ASSOCIATION_REMOVE "aqm" + !insertmacro FILE_ASSOCIATION_REMOVE "sqlite" !insertmacro FILE_ASSOCIATION_REMOVE "sqlitedb" !insertmacro FILE_ASSOCIATION_REMOVE "ov2" !insertmacro FILE_ASSOCIATION_REMOVE "itn" @@ -421,6 +424,7 @@ Section "Uninstall" DeleteRegValue HKCR ".xml\OpenWithList" "GPXSee.exe" DeleteRegValue HKCR ".kmz\OpenWithList" "GPXSee.exe" DeleteRegValue HKCR ".aqm\OpenWithList" "GPXSee.exe" + DeleteRegValue HKCR ".sqlite\OpenWithList" "GPXSee.exe" DeleteRegValue HKCR ".sqlitedb\OpenWithList" "GPXSee.exe" DeleteRegValue HKCR ".wld\OpenWithList" "GPXSee.exe" DeleteRegValue HKCR ".jgw\OpenWithList" "GPXSee.exe"