Toolbox

Raster to NGRC

Raster
Generate NGRC tileset for NextGIS Mobile from input GDAL-supported raster dataset.
Demo
Sign in to upload file
RGB, RGBA, singleband grayscale or singleband paletted GDAL-supported raster dataset
Sign in to upload file
Text file. One row - one color for value, see Documentation for details. Keep empty or upload an empty file to use the original palette for singleband paletted rasters, generate an automatic grayscale stretch for singleband grayscale rasters, or process RGB/RGBA rasters without a palette
Optional. A number between 0 and 20 or a range, e.g. 8-14

Docs

This tool generates NGRC raster tileset from any input GDAL-supported raster. The result can be added to NextGIS Mobile.

Inputs:

  • Raster dataset - RGB, RGBA, single-band gray or single-band with palette GDAL-compatible raster;

  • Palette file - TXT file with color scheme of each raster values located in a separate line. Order: Value Red Green Blue Opacity. For example, for a value of 23, assigning a completely opaque lilac color looks like this: 23 200 162 200 255. Opacity ranges from 0 to 255, 0 - completely transparent, 255 - completely opaque. Use an empty text file to keep the original palette (for single-band with palette) and for RGB / RGBA rasters;

  • Zoom levels - the levels at which the tiles will be displayed. This refers to standard zoom levels, for example, as for OSM maps. Possible input values: a number indicating one level, for example, 10; a range of levels, for example, 8-14; hyphen - for auto-selection of levels.

Outputs:

  • NGRC file with tileset.

Example of the tool’s work:

_images/raster2tiles_input_en_2.png

Example input

_images/raster2tiles_output_2.png

Example output

Try the tool in action

  1. Click on the Demo button above the tool form. The fields are filled in with demo values.

  2. Click on the Run button.

Raster