Hot answers tagged

44 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
32 votes
Accepted

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.1k
30 votes

GeoJSON too bulky

Mapshaper.org 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
22 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,300
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
15 votes
Accepted

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,110
15 votes
Accepted

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
  • 30.7k
13 votes

Export ArcGIS tiles data to any image format

I added aerial imagery from GIS server and created fishnet over the area of interest: I use fishnet as index layer for my data driven pages, making sure the sorting order coincides with record order ...
FelixIP's user avatar
  • 22.8k
12 votes

What are the Differences Between TMS, XYZ & WMTS?

WMTS: http://www.opengeospatial.org/standards/wmts TMS: http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification XYZ: https://en.wikipedia.org/wiki/Tiled_web_map The three links above explain each ...
jbalk's user avatar
  • 7,485
11 votes
Accepted

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
Accepted

Is there a python equivalent of gdaltindex?

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

Loading tile zoom level 20

The ol.source.OSM() class has a default maxZoom option of 19. If you would like to use zoom level 20, you would have to indicate this explicitly in your OSM layer definition. In your case you would ...
Sidney Gijzen's user avatar
8 votes
Accepted

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.2k
7 votes
Accepted

Where to get world-map images for use in webglearth

You may check http://vterrain.org/Imagery/WholeEarth/ for links to satellite imagery, or http://www.naturalearthdata.com/downloads/10m-raster-data/ for raster images. These images can be tweaked in ...
MapTiler's user avatar
  • 1,621
7 votes
Accepted

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
  • 64.7k
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
Accepted

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 (yourdomain.com) 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
Accepted

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
  • 30.6k
7 votes
Accepted

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
  • 70.6k
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
  • 859
6 votes
Accepted

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
Accepted

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
  • 410
6 votes
Accepted

How to tranform MODIS tiles into lat/long?

Projection of this kind of files is sinusoidal. For this one: ftp://ladsweb.nascom.nasa.gov/allData/6/MOD13Q1/2016/129/MOD13Q1.A2016129.h07v06.006.2016147112419.hdf the next code can access to ...
xunilk's user avatar
  • 29.9k
6 votes
Accepted

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
  • 805
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.6k
6 votes

Splitting .tif image into several tiles?

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

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
  • 25.2k

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