gws.base.ows.server.service
¶
OWS Service.
Source code: gws.base.ows.server.service
Module Contents¶
- class gws.base.ows.server.service.Config(*args, **kwargs)¶
Bases:
gws.ConfigWithAccess
Basic config with permissions.
- defaultFeatureCount: int = 1000¶
Default number of features per page.
- extent: gws.Extent | None¶
Service extent.
- imageFormats: list[ImageFormatConfig] | None¶
Supported image formats. (added in 8.1)
- maxFeatureCount: int = 10000¶
Max number of features per page. (added in 8.1)
- metadata: gws.Metadata | None¶
Service metadata.
- rootLayerUid: str = ''¶
Root layer uid.
- searchLimit: int = 10000¶
Search limit. (deprecated in 8.1)
- searchTolerance: gws.UomValueStr = '10px'¶
Search pixel tolerance.
- supportedCrs: list[gws.CrsName] | None¶
List of CRS supported by this service.
- templates: list[gws.ext.config.template] | None¶
XML and HTML templates.
- updateSequence: str | None¶
Service update sequence.
- withInspireMeta: bool = False¶
Emit INSPIRE Metadata.
- withStrictParams: bool = False¶
Use strict params checking.
- class gws.base.ows.server.service.ImageFormatConfig¶
Image format configuration. (added in 8.1)
- mimeTypes: list[str]¶
Mime types for this format.
- options: dict | None¶
Image options.
- class gws.base.ows.server.service.Object¶
Bases:
gws.OwsService
Baseclass for OWS services.
- available_formats(verb: gws.OwsVerb)¶
- configure()¶
Configuration hook.
- configure_bounds()¶
- configure_image_formats()¶
- configure_metadata()¶
- configure_operations()¶
- configure_templates()¶
- dispatch_request(sr: gws.base.ows.server.request.Object)¶
- feature_collection(sr: gws.base.ows.server.request.Object, lcs: list[gws.base.ows.server.core.LayerCaps], hits: int, results: list[gws.SearchResult]) gws.base.ows.server.core.FeatureCollection ¶
- find_image_format(mime: str) gws.OwsImageFormat ¶
- handle_request(req: gws.WebRequester) gws.ContentResponse ¶
Handle a service request.
- image_response(sr: gws.base.ows.server.request.Object, img: gws.Image | None, mime: str) gws.ContentResponse ¶
- init_request(req: gws.WebRequester) gws.base.ows.server.request.Object ¶
- post_configure()¶
Post-configuration hook.
- post_configure_root_layer()¶
- render_legend(sr: gws.base.ows.server.request.Object, lcs: list[gws.base.ows.server.core.LayerCaps], mime: str) gws.ContentResponse ¶
- template_response(sr: gws.base.ows.server.request.Object, mime: str = '', **kwargs) gws.ContentResponse ¶
- url_path() str ¶