Page 1 of 3

Esri shapefile conversion

Posted: Fri Mar 26, 2021 11:42 am
by helwin
I have downloaded height lines data like:
SSSchichten.JPG
(26.33 KiB) Not downloaded yet
I tried to convert to .kml, which did not work, Alpinequest imported the file and created a .kml.ldk file which can be displayed, but is of no practical use, because it consists of more than 42 000 tracks :o each defining one height line. Looks nice, though.

Converted to .sqlite and the file is not recognized by the app.

Any ideas how to display these lines?

Re: Esri shapefile conversion

Posted: Sat Mar 27, 2021 9:37 am
by Psyberia-Support
Yes:
1. Open the Shapefile with AlpineQuest. Only the .shp, .prj and .dbf files are needed (used). It will also be imported as .ldk file (the native format of the app for vector data), so if it contains 42 000 items, the import will take time and so the display.
2. Using QGIS, split your original SHP file into smaller areas (if you only need a subset area), it will speedup the import and display.
3. Rasterize your SHP file (convert it to a raster map format), in a KML overlay image, or geopackage, etc. It can be done in QGIS but it's a pain to use, I think you can find better conversion tools.

Re: Esri shapefile conversion

Posted: Sat Mar 27, 2021 6:06 pm
by helwin
Just to be clear, I need these contour lines to display as a map layer, not tracks. So will any of these options meet this requirement? Maybe Option 3 ???

Re: Esri shapefile conversion

Posted: Sun Mar 28, 2021 9:09 am
by Psyberia-Support
So yes in this case only the option 3 will work.
If you import files from those formats, they will be used as a (raster) map layer: https://www.alpinequest.net/en/help/v2/ ... pplication
From those formats, as (vector) placemarks: https://www.alpinequest.net/en/help/v2/ ... portexport
Is shapefile the only way to get your contours?

Re: Esri shapefile conversion

Posted: Sun Mar 28, 2021 3:20 pm
by hamish
Or convert to MBtiles (raster) using QGIS. Which can display as a map layer in AQ

Processing Toolbox > Raster Tools > Generate XYZ tiles (MBTiles)

Re: Esri shapefile conversion

Posted: Mon Mar 29, 2021 7:44 pm
by helwin
Ok QGIS... everyone I asked about this says it´s quite complex to do..

Re: Esri shapefile conversion

Posted: Mon Mar 29, 2021 8:41 pm
by Psyberia-Support
It's a bit complex because it does everything. But there are a lot of tutorials.
Hamish suggestion is very good and simple, much more easier than my 3.

Re: Esri shapefile conversion

Posted: Tue Mar 30, 2021 12:05 pm
by helwin
Ok so here is a first result. That´s how it looks like,:
And this is how it should look like:
SchichtenDoris.JPG
(269.28 KiB) Not downloaded yet

Re: Esri shapefile conversion

Posted: Fri Apr 02, 2021 3:50 pm
by helwin
Hahaa! It´s working!
HLaq.JPG
(89.13 KiB) Not downloaded yet
Now I want more :D

These are 10 meter contours, there are also 1 meter contours available but I want to display them only at the last zoom level(s) and undisplay the 10 meter lines.

Any ideas how to do this?

Re: Esri shapefile conversion

Posted: Sat Apr 03, 2021 5:19 pm
by Psyberia-Support
Theoretically you could create your 2 maps with zoom levels defined as when the first zoom levels end, the other ones starts, then merge the 2 SQLiteDB maps into one single files (MBTiles maps are regular SQLiteDB files that can be edited with any SQLiteDB editors).
More simply, you can create one favorite set for each contour maps then display the one you need.

Re: Esri shapefile conversion

Posted: Sat Apr 03, 2021 11:26 pm
by helwin
Psyberia-Support wrote: Sat Apr 03, 2021 5:19 pm ...2 maps with zoom levels defined as when the first zoom levels end, the other ones starts, ...
Ahem... could you please elaborate a bit on this one ...on beginners level :mrgreen:

Re: Esri shapefile conversion

Posted: Wed Apr 07, 2021 2:08 pm
by helwin
Ok let´s start easy first... so I can define zoom levels for for .aqx maps, but how is this done for these .mbtiles imported maps?

Re: Esri shapefile conversion

Posted: Wed Apr 07, 2021 3:00 pm
by Psyberia-Support
If you have created your maps using QGIS's "Processing Toolbox > Raster Tools > Generate XYZ tiles (MBTiles)", you have specified a "Minimum zoom" and "Maximum zoom" value for each map.
Make sure they don't overlap, i.e.:
- For 10 meter contours: Min zoom: 5, Max zoom: 15
- For 1 meter contours: Min zoom: 16, Max zoom: 18

Re: Esri shapefile conversion

Posted: Wed Apr 07, 2021 3:33 pm
by helwin
I had someone else do this for me, so I am not sure about the settings used, but I will check.

Problem is, these 1 meter contours should appear far beyond zoom level 15, when 3x or 4x overscaling, because they look so dense. How to define this?

Re: Esri shapefile conversion

Posted: Thu Apr 08, 2021 9:12 am
by Psyberia-Support
Zoom levels usually go from 0 to 21. So devine your 1 meter contours map from zoom 17 (or 18?) until 21.