WMSFetcher
Bases: FromConfigMixin
Data fetcher for web map services
Implements the DataFetcher
protocol.
PARAMETER | DESCRIPTION |
---|---|
url
|
url of the web map service
TYPE:
|
version
|
version of the web map service (
TYPE:
|
layer
|
name of the layer
TYPE:
|
epsg_code
|
EPSG code
TYPE:
|
response_format
|
format of the response (MIME type, e.g., 'image/png')
TYPE:
|
tile_size
|
tile size in meters
TYPE:
|
ground_sampling_distance
|
ground sampling distance in meters
TYPE:
|
style
|
name of the style
TYPE:
|
buffer_size
|
buffer size in meters (specifies the area around the tile that is additionally fetched)
TYPE:
|
drop_channels
|
channel indices to drop (supports negative indexing)
TYPE:
|
from_config
classmethod
Creates a wms fetcher from the configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
configuration
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
WMSFetcher
|
wms fetcher |
__call__
Fetches data from the web map service.
PARAMETER | DESCRIPTION |
---|---|
x_min
|
minimum x coordinate
TYPE:
|
y_min
|
minimum y coordinate
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
npt.NDArray
|
data |
WMSFetcherConfig
Bases: pydantic.BaseModel
Configuration for the from_config
class method of WMSFetcher
ATTRIBUTE | DESCRIPTION |
---|---|
url |
url of the web map service
TYPE:
|
version |
version of the web map service ('1.1.1' or '1.3.0')
TYPE:
|
layer |
name of the layer
TYPE:
|
epsg_code |
EPSG code
TYPE:
|
response_format |
format of the response (MIME type, e.g., 'image/png')
TYPE:
|
tile_size |
tile size in meters
TYPE:
|
ground_sampling_distance |
ground sampling distance in meters
TYPE:
|
style |
name of the style
TYPE:
|
buffer_size |
buffer size in meters (specifies the area around the tile that is additionally fetched)
TYPE:
|
drop_channels |
channel indices to drop (supports negative indexing)
TYPE:
|