gws.base.map.action¶
Map related commands.
Source code: gws.base.map.action
Module Contents¶
- class gws.base.map.action.Config¶
Bases:
gws.base.action.ConfigServes map images, tiles, legends and features to the client.
- class gws.base.map.action.DescribeLayerRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest for a layer description.
- class gws.base.map.action.DescribeLayerResponse(*args, **kwargs)¶
Bases:
gws.ResponseLayer description response.
- class gws.base.map.action.GetBoxRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest for a layer image of a bounding box.
- bbox: gws.Extent¶
Bounding box in the request CRS.
- compositeLayerUids: list[str] | None¶
UIDs of the child layers to render in one composite image, passed to the layer in
extraParams.
- crs: gws.CrsName | None¶
CRS of the bounding box; defaults to the map CRS of the layer.
- class gws.base.map.action.GetFeaturesRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest for the features of a layer.
- bbox: gws.Extent | None¶
Bounding box to search in; defaults to the layer bounds.
- crs: gws.CrsName | None¶
CRS of the bounding box; defaults to the map CRS of the layer.
- class gws.base.map.action.GetFeaturesResponse(*args, **kwargs)¶
Bases:
gws.ResponseFeatures response.
- features: list[gws.FeatureProps]¶
Found features.
- class gws.base.map.action.GetLegendRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest for a layer legend.
- class gws.base.map.action.GetTileRequest(*args, **kwargs)¶
Bases:
gws.RequestRequest for a layer tile.
- class gws.base.map.action.ImageResponse(*args, **kwargs)¶
Bases:
gws.ResponseImage response.
- gws.base.map.action.LEGEND_IMAGE_FORMAT¶
- class gws.base.map.action.Object¶
Bases:
gws.base.action.ObjectMap action.
Serves layer images, tiles, legends, descriptions and features to the client.
- api_get_box(req: gws.WebRequester, p: GetBoxRequest) ImageResponse¶
Render a layer image of a bounding box.
- api_get_features(req: gws.WebRequester, p: GetFeaturesRequest) GetFeaturesResponse¶
Return the features of a layer in a bounding box.
- api_get_legend(req: gws.WebRequester, p: GetLegendRequest) ImageResponse¶
Render the legend of a layer.
- api_get_tile(req: gws.WebRequester, p: GetTileRequest) ImageResponse¶
Render a layer tile.
- describe_layer(req: gws.WebRequester, p: DescribeLayerRequest) DescribeLayerResponse¶
Return the description of a layer.
- http_get_box(req: gws.WebRequester, p: GetBoxRequest) gws.ContentResponse¶
Render a layer image of a bounding box.
- http_get_features(req: gws.WebRequester, p: GetFeaturesRequest) gws.ContentResponse¶
Return the features of a layer in a bounding box.
- http_get_legend(req: gws.WebRequester, p: GetLegendRequest) gws.ContentResponse¶
Render the legend of a layer.
- http_get_tile(req: gws.WebRequester, p: GetTileRequest) gws.ContentResponse¶
Render a layer tile.
- class gws.base.map.action.Props¶
Bases:
gws.base.action.Props