Service Models
- class registry.models.service.CatalougeService(polymorphic_ctype, created_at, created_by_user, owner, last_modified_at, last_modified_by, xml_backup_file, access_constraints, fees, use_limitation, license_source_note, licence, id, date_stamp, file_identifier, origin, origin_url, title, abstract, is_broken, is_customized, insufficient_quality, is_searchable, hits, service_contact, metadata_contact, is_active, version, service_url, get_capabilities_url, ogcservice_ptr)
- exception DoesNotExist
 - exception MultipleObjectsReturned
 
- class registry.models.service.FeatureType(*args, **kwargs)
- Concrete model class to store parsed FeatureType. - Attr objects
- custom models manager - registry.managers.service.FeatureTypeManager
 - exception DoesNotExist
 - exception MultipleObjectsReturned
 - create_element_instances()
- Return the created FeatureTypeElement record(s) 
 - fetch_describe_feature_type_document(save=True)
- Return the fetched described feature type document and update the content if save is True 
 - parse()
- Return the parsed self.remote_content - Raises:
- ValueError: if self.remote_content is null 
 
 - save(*args, **kwargs)
- Custom save function to handle activate process for the feature type and his related service. If the given feature type shall be active, the feature type it self and the related - registry.models.service.Servicewill be updated with- is_active=True. If the given feature type shall be inactive only the feature type it self will be updated with- is_active=False.
 
- class registry.models.service.FeatureTypeElement(id, created_at, created_by_user, owner, last_modified_at, last_modified_by, max_occurs, min_occurs, name, data_type, required, feature_type)
- exception DoesNotExist
 - exception MultipleObjectsReturned
 
- class registry.models.service.Layer(*args, **kwargs)
- Concrete model class to store parsed layers. - Attr objects
- custom models manager - registry.managers.service.LayerManager
 - exception DoesNotExist
 - exception MultipleObjectsReturned
 - bbox
- 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
 
 - dimensions
- 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
 
 - inherit_scale_max
- 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_max if not None else scale_max from the first ancestors where scale_max is not None 
- Return type
- django.contrib.gis.geos.polygon
 
 - inherit_scale_min
- 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
 
 - save(*args, **kwargs)
- Custom save function to handle activate process for the layer, all his descendants and his related service. If the given layer shall be active, the complete family ( - mptt.models.MPTTModel.get_family()) of this layer and the related- registry.models.service.Servicewill be updated with- ìs_active=True. If the given layer shall be inactive, all descendants (- mptt.models.MPTTModel.get_descendants()) of this layer will be updated with- is_active=False.
 - supported_reference_systems
- 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.ReferenceSystemfor this layer
- Return type
- django.db.models.query.QuerySet
 
 
- class registry.models.service.OgcService(*args, **kwargs)
- Abstract Service model to store OGC service. - exception DoesNotExist
 - exception MultipleObjectsReturned
 - save(*args, **kwargs)
- Save the current instance. Override this in a subclass if you want to control the saving process. - The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set. 
 
- class registry.models.service.OperationUrl(*args, **kwargs)
- Concrete model class to store operation urls for registered services - With that urls we can perform all needed request to a given service. - exception DoesNotExist
 - exception MultipleObjectsReturned
 
- class registry.models.service.ServiceElement(*args, **kwargs)
- Abstract model class to generalize some fields and functions for layers and feature types 
- class registry.models.service.WebFeatureService(polymorphic_ctype, created_at, created_by_user, owner, last_modified_at, last_modified_by, xml_backup_file, access_constraints, fees, use_limitation, license_source_note, licence, id, date_stamp, file_identifier, origin, origin_url, title, abstract, is_broken, is_customized, insufficient_quality, is_searchable, hits, service_contact, metadata_contact, is_active, version, service_url, get_capabilities_url, ogcservice_ptr)
- exception DoesNotExist
 - exception MultipleObjectsReturned
 
- class registry.models.service.WebMapService(polymorphic_ctype, created_at, created_by_user, owner, last_modified_at, last_modified_by, xml_backup_file, access_constraints, fees, use_limitation, license_source_note, licence, id, date_stamp, file_identifier, origin, origin_url, title, abstract, is_broken, is_customized, insufficient_quality, is_searchable, hits, service_contact, metadata_contact, is_active, version, service_url, get_capabilities_url, ogcservice_ptr)
- exception DoesNotExist
 - exception MultipleObjectsReturned