Core Models
They are the models that are needed to make sense of the application
- class inspire_eu.models.core.Namespace(*args, **kwargs)[source]
- Definition
Namespace uniquely identifying the data source of the spatial object.
- Description
NOTE The namespace value will be owned by the data provider of the spatial object and will be registered in the INSPIRE External Object Identifier Namespaces Register.
- Parameters:
id (BigAutoField) – Primary key: ID
code (CharField) – Code. Namespace
name (CharField) – Name
Reverse relationships:
- Parameters:
inspire_eu_cadastralzoning_namespaces (Reverse
ForeignKeyfromCadastralZoning) – All inspire eu cadastralzoning namespace of this Namespace (related name ofnamespace)inspire_eu_cadastralparcel_namespaces (Reverse
ForeignKeyfromCadastralParcel) – All inspire eu cadastralparcel namespace of this Namespace (related name ofnamespace)inspire_eu_building_namespaces (Reverse
ForeignKeyfromBuilding) – All inspire eu building namespace of this Namespace (related name ofnamespace)inspire_eu_otherconstruction_namespaces (Reverse
ForeignKeyfromOtherConstruction) – All inspire eu otherconstruction namespace of this Namespace (related name ofnamespace)
- __init__(*args, **kwargs)
- class inspire_eu.models.core.Status(*args, **kwargs)[source]
- Description
Possible values: Valid, Invalid
- References
- Parameters:
id (BigAutoField) – Primary key: ID
code (CharField) – Code
slug (CharField) – Slug
label (CharField) – Label
definition (TextField) – Definition
link (URLField) – Link
is_valid (BooleanField) – Is valid
Reverse relationships:
- Parameters:
theme (Reverse
ForeignKeyfromTheme) – All Themes of this Status (related name ofstatus)applicationschema (Reverse
ForeignKeyfromApplicationSchema) – All Application Schemes of this Status (related name ofstatus)codelist (Reverse
ForeignKeyfromCodeList) – All Code lists of this Status (related name ofstatus)codelistvalue (Reverse
ForeignKeyfromCodeListValue) – All Code list values of this Status (related name ofstatus)
- __init__(*args, **kwargs)
- class inspire_eu.models.core.Theme(*args, **kwargs)[source]
INSPIRE theme register
- Definition
The INSPIRE theme register contains all spatial data themes, as defined in the Annexes of the INSPIRE Directive (Directive 2007/2/EC of the European Parliament and of the Council of 14 March 2007 establishing an Infrastructure for Spatial Information in the European Community (INSPIRE)). The descriptions of the themes are based on version 3.0 of the Definition of Annex Themes and Scope (D 2.3) by the data specifications drafting team and subsequent updates by the INSPIRE Thematic Working Groups (TWGs).
- Owner
European Union
- Register manager
European Commission, Joint Research Centre
- Control body
Control body for the central INSPIRE registers and INSPIRE register federation
- Submitter
Nominated submitting organizations for the central INSPIRE registers and INSPIRE register federation
- Contact point
JRC INSPIRE Registry Team <inspire-registry-dev@jrc.ec.europa.eu>
- Licence
Europa Legal Notice
- References
- Parameters:
id (BigAutoField) – Primary key: ID
code (CharField) – Code
slug (CharField) – Slug
link (URLField) – Link
version (SmallIntegerField) – Version
label (CharField) – Label
definition (TextField) – Definition
description (TextField) – Description
Relationship fields:
- Parameters:
status (
ForeignKeytoStatus) – Status (related name:theme)
Reverse relationships:
- Parameters:
applicationschema (Reverse
ManyToManyFieldfromApplicationSchema) – All Application Schemes of this Theme (related name ofthemes)codelist (Reverse
ManyToManyFieldfromCodeList) – All Code lists of this Theme (related name ofthemes)
- __init__(*args, **kwargs)
- class inspire_eu.models.core.ApplicationSchema(*args, **kwargs)[source]
INSPIRE Application schema register
- Definition
The INSPIRE application schema register contains all application schemas of the consolidated INSPIRE UML data model.
- Owner
European Union
- Register manager
European Commission, Joint Research Centre
- Control body
Control body for the central INSPIRE registers and INSPIRE register federation
- Submitter
Nominated submitting organizations for the central INSPIRE registers and INSPIRE register federation
- Contact point
JRC INSPIRE Registry Team <inspire-registry-dev@jrc.ec.europa.eu>
- Licence
Europa Legal Notice
- References
- Parameters:
id (BigAutoField) – Primary key: ID
code (CharField) – Code
slug (CharField) – Slug
link (URLField) – Link
version (SmallIntegerField) – Version
label (CharField) – Label
definition (TextField) – Definition
description (TextField) – Description
Relationship fields:
- Parameters:
status (
ForeignKeytoStatus) – Status (related name:applicationschema)themes (
ManyToManyFieldtoTheme) – Themes (related name:applicationschema)
Reverse relationships:
- Parameters:
codelist (Reverse
ForeignKeyfromCodeList) – All Code lists of this Application Schema (related name ofapplication_schema)
- __init__(*args, **kwargs)
- class inspire_eu.models.core.CodeList(*args, **kwargs)[source]
INSPIRE Code List Register
- Definition
The INSPIRE code list register contains the code lists and their values, as defined in the INSPIRE implementing rules on interoperability of spatial data sets and services (Commission Regulation (EU) No 1089/2010).
NOTE: It does not yet include references to external code lists and the additional code lists and extended values proposed in the Data Specification Technical Guidelines.
- Owner
European Union
- Register manager
European Commission, Joint Research Centre
- Control body
Control body for the central INSPIRE registers and INSPIRE register federation
- Submitter
Nominated submitting organizations for the central INSPIRE registers and INSPIRE register federation
- Contact point
JRC INSPIRE Registry Team <inspire-registry-dev@jrc.ec.europa.eu>
- Licence
Europa Legal Notice https://ec.europa.eu/info/legal-notice_en
- References
- Parameters:
Relationship fields:
- Parameters:
application_schema (
ForeignKeytoApplicationSchema) – Application schema (related name:codelist)status (
ForeignKeytoStatus) – Status (related name:codelist)parent (
ForeignKeytoCodeList) – Parent (related name:codelist)themes (
ManyToManyFieldtoTheme) – Themes (related name:codelist)
Reverse relationships:
- Parameters:
codelist (Reverse
ForeignKeyfromCodeList) – All Code lists of this Code list (related name ofparent)codelistvalue (Reverse
ForeignKeyfromCodeListValue) – All Code list values of this Code list (related name ofcode_list)
- __init__(*args, **kwargs)
- class inspire_eu.models.core.CodeListValue(id, code_list, code, slug, link, status, label, definition, description)[source]
- Parameters:
Relationship fields:
- Parameters:
code_list (
ForeignKeytoCodeList) – Code list (related name:codelistvalue)status (
ForeignKeytoStatus) – Status (related name:codelistvalue)
Reverse relationships:
- Parameters:
inspire_eu_cadastralzoning_levels (Reverse
ForeignKeyfromCadastralZoning) – All inspire eu cadastralzoning level of this Code list value (related name oflevel)inspire_eu_building_condition_of_constructions (Reverse
ForeignKeyfromBuilding) – All inspire eu building condition of construction of this Code list value (related name ofcondition_of_construction)inspire_eu_building_horizontal_geometry_references (Reverse
ForeignKeyfromBuilding) – All inspire eu building horizontal geometry reference of this Code list value (related name ofhorizontal_geometry_reference)inspire_eu_building_vertical_geometry_references (Reverse
ForeignKeyfromBuilding) – All inspire eu building vertical geometry reference of this Code list value (related name ofvertical_geometry_reference)inspire_eu_buildingdocument_source_statuss (Reverse
ForeignKeyfromBuildingDocument) – All inspire eu buildingdocument source status of this Code list value (related name ofsource_status)inspire_eu_buildingelevation_elevation_references (Reverse
ForeignKeyfromBuildingElevation) – All inspire eu buildingelevation elevation reference of this Code list value (related name ofreference)inspire_eu_buildingheightaboveground_height_references (Reverse
ForeignKeyfromBuildingHeightAboveGround) – All inspire eu buildingheightaboveground height reference of this Code list value (related name ofheight_reference)inspire_eu_buildingheightaboveground_low_references (Reverse
ForeignKeyfromBuildingHeightAboveGround) – All inspire eu buildingheightaboveground low reference of this Code list value (related name oflow_reference)inspire_eu_buildingheightaboveground_s_height_statuss (Reverse
ForeignKeyfromBuildingHeightAboveGround) – All inspire eu buildingheightaboveground height status of this Code list value (related name ofstatus)inspire_eu_buildingnature_natures (Reverse
ForeignKeyfromBuildingNature) – All inspire eu buildingnature nature of this Code list value (related name ofnature)inspire_eu_buildingcurrentuse_current_uses (Reverse
ForeignKeyfromBuildingCurrentUse) – All inspire eu buildingcurrentuse current use of this Code list value (related name ofcurrent_use)inspire_eu_buildinggeographicalname_nativenesss (Reverse
ForeignKeyfromBuildingGeographicalName) – All inspire eu buildinggeographicalname nativeness of this Code list value (related name ofnativeness)inspire_eu_buildinggeographicalname_name_statuss (Reverse
ForeignKeyfromBuildingGeographicalName) – All inspire eu buildinggeographicalname name status of this Code list value (related name ofname_status)inspire_eu_buildinggeographicalname_grammatical_genders (Reverse
ForeignKeyfromBuildingGeographicalName) – All inspire eu buildinggeographicalname grammatical gender of this Code list value (related name ofgrammatical_gender)inspire_eu_buildinggeographicalname_grammatical_numbers (Reverse
ForeignKeyfromBuildingGeographicalName) – All inspire eu buildinggeographicalname grammatical number of this Code list value (related name ofgrammatical_number)inspire_eu_otherconstruction_condition_of_constructions (Reverse
ForeignKeyfromOtherConstruction) – All inspire eu otherconstruction condition of construction of this Code list value (related name ofcondition_of_construction)inspire_eu_otherconstruction_other_construction_natures (Reverse
ForeignKeyfromOtherConstruction) – All inspire eu otherconstruction other construction nature of this Code list value (related name ofother_construction_nature)
- classmethod search(slug, code_list_slug=None, create=True)[source]
Search CodeListValue
- Parameters:
- Raises:
CodeList.DoesNotExist – When his foreign key does not exist
CodeListValue.DoesNotExist – Only when create param is false
- Returns:
Row founded, or created
- Return type:
CodeListValue
- __init__(*args, **kwargs)
- class inspire_eu.models.core.UnitOfMeasure(*args, **kwargs)[source]
Unit Of Measure
- Definition
Any of the systems devised to measure some physical quantity such distance or area or a system devised to measure such things as the passage of time.
The classes of UnitOfMeasure are determined by the member “measureType.” Subclasses are not needed for implementation, but their use makes type constraints on measure valued attributes easier to specify. – conversionToISOstandardUnit is not null only if the conversion is a simple scale
- References
- Parameters:
id (BigAutoField) – Primary key: ID
name (CharField) – Name. The name(s) of a particular unit of measure. Examples would include the following: 1) for uomArea - square feet <br />2) for uomTime - seconds <br />3) for uomArea - miles<br />4) uomAngle - degrees.
slug (CharField) – Slug
symbol (CharField) – Symbol. The symbol used for this unit of measure, such at “ft” for feet, or “m” for meter.
measure_type (CharField) – Measure type. Measure Type
name_standard_unit (CharField) – Name standard unit. Name of the standard units to which this unit of measure can be directly converted. If this variable is NULL, then the standard unit for this measure type given by the local copy of the StandardsUnits code list.
scale_to_standard_unit (FloatField) – Scale to standard unit. If the implementation system used for this object does not support NULL, the scale set to 0 is equivalent to NULL for both scale and offset.<br />If X is the current unit, and S is the standard one the of two variables scale(ToStandardUnit) and offset(ToStandardUnit) can be used to make the conversion from X to S by:<br />S = offset + scale*X <br />and, conversely, <br />X = (S-offset)/scale
offset_to_standard_unit (FloatField) – Offset to standard unit. See scaleToStandardUnit for a description. Again, this variable is NULL is no linear conversion is possible. If the two units are only a scale in difference, then this number is zero (0). If the implementation system used for this object does not support NULL, the then scale set to 0 is equivalent to NULL for both scale and offset.
formula (CharField) – Formula. An algebraic formula (probably in some programming language) converting this unit of measure (represented in the formula by its uomSymbol) to the ISO standard (represented by its symbol. This member attribute is not required, but it is a valuable piece of documentation.
Reverse relationships:
- Parameters:
inspire_eu_cadastralzoning_estimated_accuracy_uoms (Reverse
ForeignKeyfromCadastralZoning) – All inspire eu cadastralzoning estimated accuracy uom of this Unit Of Measure (related name ofestimated_accuracy_uom)inspire_eu_cadastralzoning_area_value_uoms (Reverse
ForeignKeyfromCadastralZoning) – All inspire eu cadastralzoning area value uom of this Unit Of Measure (related name ofarea_value_uom)inspire_eu_cadastralparcel_area_value_uoms (Reverse
ForeignKeyfromCadastralParcel) – All inspire eu cadastralparcel area value uom of this Unit Of Measure (related name ofarea_value_uom)inspire_eu_building_horizontal_geometry_estimated_accuracy_uoms (Reverse
ForeignKeyfromBuilding) – All inspire eu building horizontal geometry estimated accuracy uom of this Unit Of Measure (related name ofhorizontal_geometry_estimated_accuracy_uom)inspire_eu_building_vertical_geometry_estimated_accuracy_uoms (Reverse
ForeignKeyfromBuilding) – All inspire eu building vertical geometry estimated accuracy uom of this Unit Of Measure (related name ofvertical_geometry_estimated_accuracy_uom)inspire_eu_building_height_below_ground_uoms (Reverse
ForeignKeyfromBuilding) – All inspire eu building height below ground uom of this Unit Of Measure (related name ofheight_below_ground_uom)inspire_eu_buildingelevation_value_uoms (Reverse
ForeignKeyfromBuildingElevation) – All inspire eu buildingelevation value uom of this Unit Of Measure (related name ofvalue_uom)
- __init__(*args, **kwargs)