is there a way to download a specific area mbtiles or pmtiles for import into vespucci?…
- User
is there a way to download a specific area mbtiles or pmtiles for import into vespucci? maybe there are also other sources? https://josm.openstreetmap.de/wiki/Maps/Germany#HesseDGM1
- Assistant
Yes, you can download specific area MBTiles or PMTiles for import into Vespucci, and there are various sources and tools available to assist with this process.
Downloading Pre-Generated Tilesets:
-
VersaTiles: Offers OpenStreetMap vector tilesets, including the full planet and specific regions. You can download the desired area in the
.versatilesformat, which is compatible with Vespucci[1]. -
Protomaps: Provides OpenStreetMap basemaps in PMTiles format. You can download the full planet or extract specific regions using their tools[2].
Creating Custom MBTiles or PMTiles:
If a pre-generated tileset for your area isn't available, you can create one using the following tools:
-
Mobile Atlas Creator (MOBAC): A Java-based application that allows you to generate MBTiles files from various map sources. You can add custom map sources and select specific areas to download[3].
-
GDAL: A library for reading and writing geospatial data formats. It can generate MBTiles files from local files or WMS sources. This method requires some command-line proficiency[3].
-
MapProxy: An open-source proxy for geospatial data that can export to the MBTiles format. It requires a working MapProxy configuration but offers flexibility in generating tilesets[3].
Importing Tilesets into Vespucci:
Once you have the MBTiles or PMTiles file:
-
Transfer the File to Your Device: Move the tileset file to your Android device.
-
Add the Tileset in Vespucci:
- Open Vespucci.
- Go to Preferences > Custom imagery.
- Tap the + button to add a new layer.
- Tap the SD card icon, navigate to the folder where you saved the file, and select it.
- The form should now be filled out with all necessary values.
- Save the layer.
For detailed instructions, refer to Vespucci's guide on custom imagery[4].
Additional Resources:
- Vespucci Offline Data Guide: Provides information on using offline data with Vespucci, which can be helpful when working with custom tilesets[5].
By utilizing these tools and resources, you can effectively download or create specific area MBTiles or PMTiles for use in Vespucci.
-
- User
and with qgis software?
- Assistant
Yes, you can use QGIS to create MBTiles or PMTiles for import into Vespucci. Here's how:
Creating MBTiles in QGIS:
-
Using the "Generate XYZ Tiles (MBTiles)" Tool:
- In QGIS, open the Processing Toolbox.
- Search for and open the "Generate XYZ Tiles (MBTiles)" tool.
- Configure the parameters:
- Extent: Set to your area of interest.
- Minimum Zoom: Set the lowest zoom level.
- Maximum Zoom: Set the highest zoom level.
- DPI: Typically set to 96.
- Background: Choose transparent if needed.
- Output File: Specify the destination for the MBTiles file.
- Click Run to generate the MBTiles file.
Note: Some users have reported missing tiles at certain zoom levels when using this tool. If you encounter this issue, consider updating QGIS to the latest version or using alternative methods[1].
-
Using GDAL with QGIS:
- Ensure you have GDAL installed with QGIS.
- Use the following command to create MBTiles:
gdal_translate -of MBTILES input.tif output.mbtiles - Replace
input.tifwith your source file andoutput.mbtileswith your desired output filename.
Creating PMTiles in QGIS:
As of GDAL version 3.8.0, PMTiles support is integrated. To create PMTiles:
-
Using GDAL with QGIS:
- Ensure you have GDAL 3.8.0 or later installed.
- Use the following command to create PMTiles:
ogr2ogr -f PMTiles output.pmtiles input.shp - Replace
input.shpwith your source shapefile andoutput.pmtileswith your desired output filename.
Note: This method is suitable for smaller datasets. For larger datasets, consider using tools like Tippecanoe, which supports direct PMTiles output[2].
Importing Tilesets into Vespucci:
-
Transfer the File to Your Device:
- Move the MBTiles or PMTiles file to your Android device.
-
Add the Tileset in Vespucci:
- Open Vespucci.
- Go to Preferences > Custom imagery.
- Tap the + button to add a new layer.
- Tap the SD card icon, navigate to the folder where you saved the file, and select it.
- The form should now be filled out with all necessary values.
- Save the layer.
By following these steps, you can create and import specific area MBTiles or PMTiles into Vespucci using QGIS.
-
- User
how to add this to qgis, or is it already possible to select such a layer? https://josm.openstreetmap.de/wiki/Maps/Germany#HesseDGM1
- Assistant
To add the Hesse DGM1 layer to QGIS, you'll need to connect to its Web Map Service (WMS). Here's how you can do it:
-
Obtain the WMS URL:
- Visit the JOSM Germany Maps page:
- Locate the "Hesse DGM1" entry.
- Copy the WMS URL associated with this layer.
-
Add the WMS Layer to QGIS:
- Open QGIS.
- Go to Layer > Add Layer > Add WMS/WMTS Layer...
- In the Data Source Manager dialog, click on New to create a new WMS connection.
- In the Create a New WMS/WMTS Connection dialog:
- Enter a name for the connection (e.g., "Hesse DGM1").
- Paste the WMS URL you copied earlier into the URL field.
- Click OK to save the connection.
- Back in the Data Source Manager dialog:
- Select the connection you just created.
- Click Connect to retrieve the available layers.
- From the list of available layers, select the "Hesse DGM1" layer.
- Click Add to add the layer to your QGIS project.
- Close the Data Source Manager dialog.
The "Hesse DGM1" layer should now be visible in your QGIS project. If you encounter any issues, ensure that the WMS URL is correct and that your internet connection is active.
-