GRASS logo

NAME

i.basemap - Import basemaps from various web map services

KEYWORDS

raster, import, web, basemap

SYNOPSIS

i.basemap
i.basemap --help
i.basemap [-lcrob] output=name [server=string] [url=string] [maxcols=integer] [maxrows=integer] [srs=string] [format=string] [composite_levels=integer] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-l
List available web map servers
-c
Use current computational region
-r
Reproject to current location's projection
-o
Overwrite existing maps
-b
Keep separate red/green/blue band maps instead of a single composite
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

output=name [required]
Name for output raster map(s)
server=string
Web map server to use
Options: Google_Satellite, OpenStreetMap, Bing_Aerial, ESRI_WorldImagery, USGS_Topo, Google_Terrain, Google_Hybrid, Bing_Roads, Stamen_Terrain, Stamen_Toner, Stamen_Watercolor, OpenTopoMap, OSM_Humanitarian, Natural_Earth, USGS_NAIP, USGS_3DEP, USGS_Hydro, ESA_WorldCover, Copernicus_Sentinel, Landsat, MODIS, NOAA_Climate, ESA_Climate, WorldBank, UN_GeoWeb
Default: OpenStreetMap
url=string
Custom URL template for XYZ tiles (use {x}, {y}, {z} or {quadkey})
maxcols=integer
Maximum width of output map in pixels
Default: 1024
maxrows=integer
Maximum height of output map in pixels
Default: 1024
srs=string
Spatial reference system for the output
Default: EPSG:3857
format=string
Output format for downloaded tiles
Options: png, jpeg
Default: png
composite_levels=integer
Number of color levels per RGB channel used by r.composite (256 = lossless for 8-bit imagery)
Options: 1-256
Default: 256

Table of contents

DESCRIPTION

The i.basemap module provides a comprehensive interface for downloading and importing base map data from 25 freely available web map servers with robust error handling, randomized downloads, and retry logic. All servers are fully functional (100% success rate). The module supports multiple web mapping standards including:

AVAILABLE SERVERS

The module includes a comprehensive catalog of 25 freely available web map servers:

Web Mapping Services (XYZ)

Quadkey Services (Bing)

USAGE EXAMPLES

Basic Usage

# List all available servers (25 total)
i.basemap -l

# Download OpenStreetMap for current region
i.basemap server=OpenStreetMap output=osm_map -c

# Download satellite imagery
i.basemap server=Google_Satellite output=satellite -c

# Download Bing aerial imagery
i.basemap server=Bing_Aerial output=aerial -c

Advanced Usage

# Custom URL with API key
i.basemap url="https://api.example.com/{z}/{x}/{y}?key={api_key}" output=custom api_key=your_key

# High resolution output
i.basemap server=ESRI_WorldImagery output=high_res maxcols=2048 maxrows=2048 -c

# Scientific data
i.basemap server=Copernicus_Sentinel output=sentinel -c
i.basemap server=Landsat output=landsat -c

# Climate data
i.basemap server=NOAA_Climate output=climate -c

TECHNICAL DETAILS

Coordinate System

Tile Processing

Performance Features

SERVER CATEGORIES

High-Resolution Satellite (8)

Topographic & Terrain (6)

Street & General Maps (7)

Artistic & Specialized (4)

DEPENDENCIES

Required

Optional

TROUBLESHOOTING

Common Issues

No tiles downloaded
Check coordinate transformation and region bounds. Partial downloads
Network issues - retry logic handles automatically. Projection errors
Ensure GRASS location is properly set. Memory issues
Reduce maxcols/maxrows for large regions.

Performance Tips

SEE ALSO

SOURCE CODE

Available at: i.basemap source code (history)

Accessed: Monday Jul 27 12:22:26 2026


Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index

© 2003-2026 GRASS Development Team, GRASS 8.5.1dev Reference Manual