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
Configuration for OWS services.
- defaultFeatureCount: int = 1000¶
Default number of features per page.
- extent: gws.Extent | None¶
Service extent.
- extentCrs: gws.CrsName | None¶
Service extent CRS. (added in 8.2)
- imageFormats: list[gws.lib.image.FormatConfig] | None¶
Supported image formats. (added in 8.1)
- maxFeatureCount: int = 10000¶
Max number of features per page. (added in 8.1)
- metadata: gws.base.metadata.Config | 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.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.ImageFormat ¶
- get_template(sr: gws.base.ows.server.request.Object, mime: str = '') gws.Template | None ¶
Find a template for the given service request.
- 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 ¶
- parse_xml_request(xml: gws.XmlElement) dict | None ¶
- 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 ¶
Render a template for the given service request.
- url_path(sr: gws.base.ows.server.request.Object) str ¶
- xml_response(el: gws.XmlElement, opts: gws.XmlOptions = None) gws.ContentResponse ¶