Skip to main content
45 votes

Generating Map Tiles with QGIS

For QGIS 3.8 or greater, generating tiles is built in - you can find it in the Processing tool box as Generate XYZ tiles (Directory) and Generate XYZ tiles (MBTiles).
Tobin Bradley's user avatar
33 votes

Splitting .tif image into several tiles?

I propose two solutions: the first one using QGIS, the second one using Python (GDAL). Solution using QGIS In QGIS you may create a VRT mosaic. Please follow this procedure (see the image below): ...
mgri's user avatar
  • 16.3k
30 votes

GeoJSON too bulky is a handy free online tool that allows you to upload a geojson file, display it as a map, then choose one of three simplification algorithms which you can adjust the strength of with a ...
user56reinstatemonica8's user avatar
24 votes

What are the Differences Between TMS, XYZ & WMTS?

WMS is a protocol defined by the OGC for requesting rendered map images for arbitrary areas. Clients can make requests to it in a tiled pattern if they wish. WMS-C is an extension for WMS created by ...
smithkm's user avatar
  • 2,320
20 votes

Using Google Maps static tiles with Leaflet?

I know this is too late to answer this question. But I want to share my knowledge in this question. For the static purpose you can freely add the google map tiles inside your leaflet. For the static ...
Tek Kshetri's user avatar
16 votes

Do Tile Servers typically store every tile for every zoom level?

No, they don't store every tile. There are several reasons for this: Size: Storing all tiles for all zoom levels would require more than 50 TB storage (source: Tile Disk Usage) Gain: Typically, only ...
scai's user avatar
  • 6,215
15 votes

Remove border lines of SRTM tiles rendered as hillshade

SRTM tiles (3601 px * 3601 px in this case) have 1-pixel overlaps in between. When you apply transparency (or reduced opacity) to your hillshade layer, such overlapping pixels stand out. You may have ...
Kazuhito's user avatar
  • 31k
12 votes

What are the Differences Between TMS, XYZ & WMTS?

WMTS: TMS: XYZ: The three links above explain each ...
jbalk's user avatar
  • 7,583
11 votes

Data is not appearing in a local OSM server after applying changes to it

After weeks of research and headache, I finally figured out the correct architecture of the local OSM server. My problem was that the employee who created the local OSM server hasn't actually finished ...
Yamashiro Rion's user avatar
10 votes

Is there a python equivalent of gdaltindex?

I dont't know, but it's easy to do with osgeo.gdal, GeoPandas and shapely box (, miny, maxx, maxy, ccw=True) = bounding box)¶ Original raster files import os StartDir = "/...
gene's user avatar
  • 55.1k
8 votes

Ipyleaflet map object doesn't display in Jupyter Notebook but it gets created

I just tried to install ipyleaflet with Jupyter 5.2.3: conda install -c conda-forge ipyleaflet and also didn't get a map. I then tried registering the extension with: jupyter nbextension enable --...
Marc Pfister's user avatar
  • 4,097
8 votes

Seeking Leaflet-compatible tile layers for Palestine?

You're asking two questions here: administrative borders related to territorial disputes, and map label localization. Since you mention OpenStreetMap, I feel obliged to answer: The OpenStreetMap ...
IvanSanchez's user avatar
  • 10.3k
8 votes

Getting the same result from "Generate XYZ Tiles" and "Gdal2Tiles" in QGIS

By default, "Generate XYZ Tiles (Directory)" uses XYZ tile scheme whereas "gdal2Tiles" uses TMS tile scheme. The difference is XYZ convention starts tile numbering with coordinates ...
ThomasG77's user avatar
  • 31k
7 votes

Where to get world-map images for use in webglearth

You may check for links to satellite imagery, or for raster images. These images can be tweaked in ...
MapTiler's user avatar
  • 1,621
7 votes

Need clarification on GeoServer Meta-tile

You are right that metatiles alone do not prevent cutting the symbols. In the picture below with 3x3 metatiles the inner star symbol will not be cut but the outer will because it is on the border of ...
user30184's user avatar
  • 67.3k
7 votes

How to transform a GeoTiff DEM to png tiles encoding elevation as RGB colors

To convert a GeoTIFF into png, I use a 2-step process. In the first step, I use a small Python script (depends on rasterio) to translate the elevation band of the original GeoTIFF into r, g, and b ...
ahocevar's user avatar
  • 3,073
7 votes

Is it possible to serve vector tiles directly from S3?

It is possible. I recommend you to use Route 53, S3, CloudFront. Host your domain name on AWS via AWS Route 53 DNS ( to create a public zone. Create a SSL Cert for your domain name via ...
Kyros Koh's user avatar
  • 407
7 votes

ST_AsMVT single layer with multiple Id's

You can use UNION to combine the queries. Your server can then concat the binaries before sending them out. I found out that doing this in SQL took to long and increased the compute time to much. You ...
Ralph Bisschops's user avatar
7 votes

Is it possible to extract tiles layer as raster in QGIS?

You can export OSM XYT Tiles background map as raster file: right click on the OpenStreetMap layer and select Export / Save as... to save a copy of the background tiled map as raster file. Be sure to ...
Babel's user avatar
  • 73.1k
6 votes

Implementing OpenLayers3 basemap from tiles created using gdal2tiles

The main point is that by default OpenLayers 3 follows the widely-used Google grid where x 0 and y 0 are in the top left. Grids like TMS where x 0 and y 0 are in the bottom left can be used by using ...
mcserep's user avatar
  • 191
6 votes

Generating Map Tiles with QGIS

Small update for 2017: I am generating the tiles with QMetaTiles plugin:
kFly's user avatar
  • 869
6 votes

Using Leaflet and Web Map Tile Service (WMTS)

I think the issue you had was because Lantmäteriet is using SWEREF 99/EPSG:3006 projection and Leaflet is using EPSG:3857. My solution was to use proj4leaflet to transform between those projections, ...
kontrollanten's user avatar
6 votes

Finding the Map-Tiles(z,x,y,tile_data) in a given Bounding box and zoom level

First You can check this page as a guide to you Tile Calculator BETA But you need to know that you will create a server side page that will handle the requested Bounding box (BBOX) and the required ...
Ahmed GIS's user avatar
  • 420
6 votes

How to tranform MODIS tiles into lat/long?

Projection of this kind of files is sinusoidal. For this one: the next code can access to ...
xunilk's user avatar
  • 30k
6 votes

Geoserver tiles missing point labels that show up fine when serving as a single tile

I did further research, and the following three "vendorOption" parameters were recommended where labels are left off when you really want them labeled in the tiles. I'll explain each briefly and why ...
Brian B's user avatar
  • 815
6 votes

Splitting .tif image into several tiles?

Don't split You gdalbuildvrt, you can create virtual tiles that will only use a few bytes on your disk. Then you can use most softwares that will take your vrt's as input to perform your processing. ...
radouxju's user avatar
  • 49.8k
6 votes

Splitting .tif image into several tiles?

Another solution using GDAL is the tool: mkdir image_tiles -v -r bilinear -levels 1 -ps 20000 20000 -co "TILED=YES" -co "COMPRESS=JPEG" -targetDir image_tiles ...
Saleika's user avatar
  • 1,330
6 votes

Leaflet custom tiles sizing

First, there is a mistake in setting tileSize option in map definition. It should be set in tile layer creation. Second, since tiled layer is different in nature than image layer, it requires ...
TomazicM's user avatar
  • 26.3k
5 votes

AWS configuration for running low-to-medium bandwidth Web map app

One other possibility that uses AWS: You may want to look into using the AWS Lambda Tiler method that Seth Fitzsimmons devised. He has been using it for the Open Aerial Map project and I used it for ...
clhenrick's user avatar
  • 1,845
5 votes

How to georeference a tile downloaded from Google Maps

This page provides algorithms, written in python, to compute tile bounds in EPSG:900913 coordinates and in latutude/longitude ...
pyves's user avatar
  • 51

Only top scored, non community-wiki answers of a minimum length are eligible