Service Managers
- class registry.managers.service.LayerManager(*args, **kwargs)
- get_inherited_bbox_lat_lon() django.contrib.gis.geos.polygon.Polygon
Return the bbox of this layer based on the inheritance from other layers as requested in the ogc specs.
Note
excerpt from ogc specs
ogc wms 1.1.1: Every Layer shall have exactly one <LatLonBoundingBox> element that is either stated explicitly or inherited from a parent Layer. (see section 7.1.4.5.6)
ogc wms 1.3.0: Every named Layer shall have exactly one <EX_GeographicBoundingBox> element that is either stated explicitly or inherited from a parent Layer. (see section 7.2.4.6.6)
- Returns
self.bbox_lat_lon if not None else bbox_lat_lon from the first ancestors where bbox_lat_lon is not None
- Return type
django.contrib.gis.geos.polygon
- get_inherited_dimensions() django.db.models.query.QuerySet
Return all dimensions of this layer, based on the inheritance from other layers as requested in the ogc specs.
Note
excerpt from ogc specs
ogc wms 1.1.1: Dimension declarations are inherited from parent Layers. Any new Dimension declarations in the child are added to the list inherited from the parent. A child shall not redefine a Dimension with the same name attribute as one that was inherited. Extent declarations are inherited from parent Layers. Any Extent declarations in the child with the same name attribute as one inherited from the parent replaces the value declared by the parent. A Layer shall not declare an Extent unless a Dimension with the same name has been declared or inherited earlier in the Capabilities XML.
ogc wms 1.3.0: Dimension declarations are inherited from parent Layers. Any new Dimension declaration in the child with the same name attribute as one inherited from the parent replaces the value declared by the parent.
- Returns
all dimensions of this layer
- Return type
django.db.models.query.QuerySet
- get_inherited_reference_systems() django.db.models.query.QuerySet
Return all supported reference systems for this layer, based on the inheritance from other layers as requested in the ogc specs.
Note
excerpt from ogc specs
ogc wms 1.1.1: Every Layer shall have at least one <SRS> element that is either stated explicitly or inherited from a parent Layer (see section 7.1.4.5.5).
ogc wms 1.3.0: Every Layer is available in one or more layer coordinate reference systems. 6.7.3 discusses the Layer CRS. In order to indicate which Layer CRSs are available, every named Layer shall have at least one <CRS> element that is either stated explicitly or inherited from a parent Layer.
- Returns
all supported reference systems
registry.models.metadata.ReferenceSystem
for this layer- Return type
django.db.models.query.QuerySet
- get_inherited_scale_max() int
Return the scale max value of this layer based on the inheritance from other layers as requested in the ogc specs.
Note
excerpt from ogc specs
ogc wms 1.1.1: ScaleHint is inherited by child Layers. A ScaleHint declaration in the child replaces the any declaration inherited from the parent. (see section 7.1.4.5.8 ScaleHint)
- Returns
self.scale_max if not None else scale_max from the first ancestors where scale_max is not None
- Return type
django.contrib.gis.geos.polygon
- get_inherited_scale_min() int
Return the scale min value of this layer based on the inheritance from other layers as requested in the ogc specs.
Note
excerpt from ogc specs
ogc wms 1.1.1: ScaleHint is inherited by child Layers. A ScaleHint declaration in the child replaces the any declaration inherited from the parent. (see section 7.1.4.5.8 ScaleHint)
- Returns
self.scale_min if not None else scale_min from the first ancestors where scale_min is not None
- Return type
django.contrib.gis.geos.polygon
- class registry.managers.service.WebMapServiceCapabilitiesManager(*args, **kwargs)
Manager to create a WebMapService with all related objects by given parsed capabilities.
- create(parsed_service, **kwargs: Any)
Create a new object with the given kwargs, saving it to the database and returning the created object.