Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dan

#1
MAPAS/MAPS / Re: QGIS to Orux
October 21, 2020, 02:37:14 AM
Hi Lenz,

I have some results. It is surprising how painful the conversion between map file formats is, and how badly it is documented. There seems to be no easy way to get from QGIS to mapsforge .map files.
I've collected all the information I have so far, hopefully it will be helpful for someone else:

The best two ways to export QGIS to Orux seem to be mbtiles. Sadly so far only raster data, but Orux loads even very large files reasonably fast.


1. QGIS with QMetaTiles Plugin
(This took a long time on my machine and I did not let it finish. QMetaTiles would have taken a week)
- Install QMetaTiles
- Run plugin, save as zip file
- Install MOBAC
- create a local tile file and put in mapsources folder, as described here: https://mobac.sourceforge.io/wiki/index.php/Custom_XML_Map_Sources#Local_Tile_files
<?xml version="1.0" encoding="UTF-8"?>
<localTileZip>
   <name>Custom map from tile zips</name>
   <sourceType>QUADKEY</sourceType>
   <zipFile>D:\MOBAC\LocalTiles\MapCruncher_test.zip</zipFile>
   <backgroundColor>#000000</backgroundColor>
</localTileZip>
- create a MOBAC sqlite file for OruxMaps, as described in the manual https://www.oruxmaps.com/oruxmapsmanual_en.pdf


2. QGIS
- Go to Processing Toolbox in QGIS.
- Raster tools, Generate XYZ tiles (MBTiles)
- this directly saves the mbtiles file.
- reasonably fast (about half a day), but the files are still massive



Other options:

- "Vector Tiles" item in the Processing Toolbox. Export as XYZ mbtiles. OruxMaps does not recognize the files.
- I've read somewhere that OruxMaps can read shapefiles directly, but this did not work for me.
- Converting the shapefile to KML might work for small files, but not for large maps.
- In theory there is a way shp->osm->map, as described in the Locus link above. This should be the best way, as it creates a vector map. Merkaartor does not load my shapefiles. Requires a lot of manual work
- there is a script shp2osm. First need ogr2ogr to convert the point coordinates to WGS84.  https://wiki.openstreetmap.org/wiki/Shp2osm
- Maps could be exported as geo pdf, which Orux reads nicely. I haven't tried, because my map is too large, but one could write a script that automatically tiles the map into many pdfs. Files are still rastered, so I don't see any advantage over the rastered mbtiles.
- QTiles does not seem to be supported anymore, but option 2 seems to be doing the same without a plugin.


#2
MAPAS/MAPS / Re: QGIS to Orux
October 20, 2020, 06:10:44 PM
Thank you very much for the suggestion, I will try it out as soon as my current rendering job is done, it is just stuck in the middle of some other way I am trying. I'll let you know how it works.
#3
MAPAS/MAPS / Re: QGIS to Orux
October 20, 2020, 04:30:10 PM
Thank you! I will try it.

Do you know if its possible to make vector tiles this way? My starting file is a 1GB shp, so probably the mbtiles will be very large. We'll see if this is a problem.

The linked locus blog looks also very helpful: https://docs.locusmap.eu/doku.php?id=manual:advanced:map_tools:conversion
#4
MAPAS/MAPS / QGIS to Orux
October 19, 2020, 10:00:56 PM
Hello,

I am a beginner with QQIS trying to export a map to OruxMaps.
Can anyone tell me how to accomplish this?

Reading the OruxMaps pdf manual, the preferred format is an sqlite .db? The only program that I found that can create these is MOBAC, and I don't know how to get from QGIS to MOBAC.

Any pointers where to look are much appreciated.

d.
#5
MAPAS/MAPS / Land Ownership Map US
September 22, 2020, 09:23:46 AM
I am looking for a land ownership overlay for the US, i.e. a map that shows if land is BLM, National Forest, Military etc.
Similarly to the Gaia Public Lands overlay, https://www.gaiagps.com/maps/source/gaiapubliclandOpenBounds/

The data seems to be available as the Protected Areas Database of the United States (PAD-US) 2.0
The files are either available by state as KMZ files, https://www.sciencebase.gov/catalog/item/5ccb03cee4b09b8c0b780421
or as shapefiles or a national geodatabase: https://www.usgs.gov/core-science-systems/science-analytics-and-synthesis/gap/science/pad-us-data-download?qt-science_center_objects=0#qt-science_center_objects

The newest version, Protected Areas Database of the United States (PAD-US) 2.1, only has a "File Geodatabase Download Package"
https://www.sciencebase.gov/catalog/item/5f186a2082cef313ed843257

How can I turn these into an overlay for OruxMaps?

I tried adding the kmz (e.g. PADUS2-0PublicAccessLYR_CA.kmz) or shp files using Overlay Options | Load KMZ/SHP Overlay, but either OruxMaps crashes or hangs on "Processing. Please Wait"

These files are very big, 10s to 100s of MB. Is there a size limitation for overlays? Is there a way to tile an overlay?
If not, what is the best way to ingest these files?

I am using 8.0.5.beta7
#6
ERRORES/BUGS / Slow Initialization
September 08, 2020, 12:18:06 AM
Hello,

Is it possible to speed up the program initialization for a large number of stored of maps?
I have about 50 GB of USGS pdf maps and the startup time is about 5 minutes on a LG V20 (oruxmaps displays "initializing map files").

I have already selected "Skip Map Check".

"refresh map list" will understandably take a long time, it runs without errors.

I am using 8.0.5 beta 5, but the startup always took a while.

Is there any setting I could change to speed up opening the app?

Dan