Skip to content

constraints module

This is the constraints module.

This module contains geographic metadata structures regarding data constraints derived from the ISO 19115-1:2014 international standard.

ClassificationCode

Bases: Enum

Name of the handling restrictions on the resource.

Source code in opengis/metadata/constraints.py
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
class ClassificationCode(Enum):
    """Name of the handling restrictions on the resource."""

    UNCLASSIFIED = "unclassified"
    """Available for general disclosure."""

    RESTRICTED = "restricted"
    """Not for general disclosure."""

    CONFIDENTIAL = "confidential"
    """Available for someone who can be entrusted with information."""

    SECRET = "secret"
    """
    Kept or meant to be kept private, unknown, or hidden from all but a select
    group of people.
    """

    TOP_SECRET = "topSecret"
    """Of the highest secrecy."""

    SENSITIVE_BUT_UNCLASSIFIED = "sensitiveButUnclassified"
    """
    Although unclassified, requries strict controls over its distribution.
    """

    FOR_OFFICIAL_USE_ONLY = "forOfficialUseOnly"
    """
    Unclassified information that is to be used only for official purposes
    determined by the designating body.
    """

    PROTECTED = "protected"
    """Compromise of the information could cause damage."""

    LIMITED_DISTRIBUTION = "limitedDistribution"
    """Destination limited by designating body."""

CONFIDENTIAL = 'confidential' class-attribute instance-attribute

Available for someone who can be entrusted with information.

FOR_OFFICIAL_USE_ONLY = 'forOfficialUseOnly' class-attribute instance-attribute

Unclassified information that is to be used only for official purposes determined by the designating body.

LIMITED_DISTRIBUTION = 'limitedDistribution' class-attribute instance-attribute

Destination limited by designating body.

PROTECTED = 'protected' class-attribute instance-attribute

Compromise of the information could cause damage.

RESTRICTED = 'restricted' class-attribute instance-attribute

Not for general disclosure.

SECRET = 'secret' class-attribute instance-attribute

Kept or meant to be kept private, unknown, or hidden from all but a select group of people.

SENSITIVE_BUT_UNCLASSIFIED = 'sensitiveButUnclassified' class-attribute instance-attribute

Although unclassified, requries strict controls over its distribution.

TOP_SECRET = 'topSecret' class-attribute instance-attribute

Of the highest secrecy.

UNCLASSIFIED = 'unclassified' class-attribute instance-attribute

Available for general disclosure.

Constraints

Bases: ABC

Restrictions on the access and use of a resource or metadata.

Source code in opengis/metadata/constraints.py
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
class Constraints(ABC):
    """Restrictions on the access and use of a resource or metadata."""

    @property
    @abstractmethod
    def use_limitation(self) -> Optional[Sequence[str]]:
        """
        Limitation affecting the fitness for use of the resource or metadata.
        For example, "not to be used for navigation".
        """

    @property
    @abstractmethod
    def constraint_application_scope(self) -> Optional[Scope]:
        """
        Spatial and temporal extent of the application of the constraint
        restrictions.
        """

    @property
    @abstractmethod
    def graphic(self) -> Optional[Sequence[BrowseGraphic]]:
        """Graphic /symbol indicating the constraint Eg."""

    @property
    @abstractmethod
    def reference(self) -> Optional[Sequence[Citation]]:
        """
        Citation/URL for the limitation or constraint,
        e.g., copyright statement, license agreement, etc.
        """

    @property
    @abstractmethod
    def releasability(self) -> Optional[Releasability]:
        """
        Information concerning the parties to whom the resource can or cannot
        be released and the party responsible for determining the
        releasibility.
        """

    @property
    @abstractmethod
    def responsible_party(self) -> Optional[Sequence[Responsibility]]:
        """Party responsible for the resource constraints."""

constraint_application_scope: Optional[Scope] abstractmethod property

Spatial and temporal extent of the application of the constraint restrictions.

graphic: Optional[Sequence[BrowseGraphic]] abstractmethod property

Graphic /symbol indicating the constraint Eg.

reference: Optional[Sequence[Citation]] abstractmethod property

Citation/URL for the limitation or constraint, e.g., copyright statement, license agreement, etc.

releasability: Optional[Releasability] abstractmethod property

Information concerning the parties to whom the resource can or cannot be released and the party responsible for determining the releasibility.

responsible_party: Optional[Sequence[Responsibility]] abstractmethod property

Party responsible for the resource constraints.

use_limitation: Optional[Sequence[str]] abstractmethod property

Limitation affecting the fitness for use of the resource or metadata. For example, "not to be used for navigation".

LegalConstraints

Bases: Constraints

Restrictions and legal prerequisites for accessing and using the resource or metadata.

Source code in opengis/metadata/constraints.py
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
class LegalConstraints(Constraints):
    """
    Restrictions and legal prerequisites for accessing and using the resource
    or metadata.
    """

    @property
    @abstractmethod
    def access_constraints(self) -> Optional[Sequence[RestrictionCode]]:
        """
        Access constraints applied to assure the protection of privacy or
        intellectual property, and any special restrictions or limitations on
        obtaining the resource or metadata.

        MANDATORY: if `use_constraints`, `other_constrints`, `use_limitations`,
            or `releasability` are `None`.
        """

    @property
    @abstractmethod
    def use_constraints(self) -> Optional[Sequence[RestrictionCode]]:
        """
        Constraints applied to assure the protection of privacy or
        intellectual property, and any special restrictions or limitations or
        warnings on using the resource or metadata.

        MANDATORY: if `access_constraints`, `other_constrints`,
            `use_limitations`, or `releasability` are `None`.
        """

    @property
    @abstractmethod
    def other_constraints(self) -> Optional[Sequence[str]]:
        """
        Other restrictions and legal prerequisites for accessing and using the
        resource or metadata.

        MANDATORY: if `access_constraints`, `use_constrints`,
            `use_limitations`, or `releasability` are `None`.
        """

access_constraints: Optional[Sequence[RestrictionCode]] abstractmethod property

Access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource or metadata.

if use_constraints, other_constrints, use_limitations,

or releasability are None.

other_constraints: Optional[Sequence[str]] abstractmethod property

Other restrictions and legal prerequisites for accessing and using the resource or metadata.

if access_constraints, use_constrints,

use_limitations, or releasability are None.

use_constraints: Optional[Sequence[RestrictionCode]] abstractmethod property

Constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations or warnings on using the resource or metadata.

if access_constraints, other_constrints,

use_limitations, or releasability are None.

Releasability

Bases: ABC

State, nation or organisation to which resource can be released, e.g., NATO unclassified releasable to PfP.

Source code in opengis/metadata/constraints.py
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
class Releasability(ABC):
    """
    State, nation or organisation to which resource can be released,
    e.g., NATO unclassified releasable to PfP.
    """

    @property
    @abstractmethod
    def addressee(self) -> Optional[Sequence[Responsibility]]:
        """
        Party to which the release statement applies.

        MANDATORY: if `statement` is `None`.
        """

    @property
    @abstractmethod
    def statement(self) -> Optional[str]:
        """
        Release statement.

        MANDATORY: if `addressee` is `None`.
        """

    @property
    @abstractmethod
    def dissemination_constraints(self) -> Optional[Sequence[RestrictionCode]]:
        """Component in determining releasability."""

addressee: Optional[Sequence[Responsibility]] abstractmethod property

Party to which the release statement applies.

MANDATORY: if statement is None.

dissemination_constraints: Optional[Sequence[RestrictionCode]] abstractmethod property

Component in determining releasability.

statement: Optional[str] abstractmethod property

Release statement.

MANDATORY: if addressee is None.

RestrictionCode

Bases: Enum

Limitation(s) placed upon the access or use of the data.

Source code in opengis/metadata/constraints.py
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
class RestrictionCode(Enum):
    """Limitation(s) placed upon the access or use of the data."""

    COPYRIGHT = "copyright"
    """
    Exclusive right tot he publication, production, or sale of the rights to a
    literary, dramatic, musical, or artistic work, or to the use of a
    commercial print or label, granted by law for a specified period of time
    to an author, composer, artist, distributor.
    """

    PATENT = "patent"
    """
    Government has granted exclusive right to make, sell, use or license an
    invention or discovery.
    """

    PATENT_PENDING = "patentPending"
    """Produced or sold information awaiting a patent."""

    TRADEMARK = "trademark"
    """
    A name, symbol, or other device identifying a product, officially
    registered and legally restricted to the use of the owner or manufacturer.
    """

    LICENCE = "licence"
    """Formal permission to do something."""

    INTELLECTUAL_PROPERTY_RIGHTS = "intellectualPropertyRights"
    """
    Rights to financial benefit from and control of distribution of
    non-tangible property that is a result of creativity.
    """

    RESTRICTED = "restricted"
    """Withheld from general circulation or disclosure."""

    OTHER_RESTRICTIONS = "otherRestrictions"
    """Limitation not listed."""

    UNRESTRICTED = "unrestricted"
    """No constraints exist."""

    LICENCE_UNRESTRICTED = "licenceUnrestricted"
    """Formal permission not required to use resource."""

    LICENCE_END_USER = "licenceEndUser"
    """
    Fromal permission required for a person pr an entity to use the resource
    and that may differ from the person that orders or purchases it.
    """

    LICENCE_DISTRIBUTOR = "licenceDistributor"
    """
    Formal permission required for a person or entity to commercialize or
    distribute the resource.
    """

    PRIVATE = "private"
    """
    Protects rights of individual or organisations from observation,
    intrusion, or attention of others.
    """

    STATUTORY = "statutory"
    """Prescribed by law."""

    CONFIDENTIAL = "confidential"
    """
    Not available to the public.

    NOTE: Contains information that could be prejudicial to a commercial,
    industrial, or national interest.
    """

    SENSITIVE_BUT_UNCLASSIFIED = "sensitiveButUnclassified"
    """
    Although unclassified, requires strict controls over its distribution.
    """

    IN_CONFIDENCE = "in-confidence"
    "With trust."

CONFIDENTIAL = 'confidential' class-attribute instance-attribute

Not available to the public.

NOTE: Contains information that could be prejudicial to a commercial, industrial, or national interest.

COPYRIGHT = 'copyright' class-attribute instance-attribute

Exclusive right tot he publication, production, or sale of the rights to a literary, dramatic, musical, or artistic work, or to the use of a commercial print or label, granted by law for a specified period of time to an author, composer, artist, distributor.

INTELLECTUAL_PROPERTY_RIGHTS = 'intellectualPropertyRights' class-attribute instance-attribute

Rights to financial benefit from and control of distribution of non-tangible property that is a result of creativity.

IN_CONFIDENCE = 'in-confidence' class-attribute instance-attribute

With trust.

LICENCE = 'licence' class-attribute instance-attribute

Formal permission to do something.

LICENCE_DISTRIBUTOR = 'licenceDistributor' class-attribute instance-attribute

Formal permission required for a person or entity to commercialize or distribute the resource.

LICENCE_END_USER = 'licenceEndUser' class-attribute instance-attribute

Fromal permission required for a person pr an entity to use the resource and that may differ from the person that orders or purchases it.

LICENCE_UNRESTRICTED = 'licenceUnrestricted' class-attribute instance-attribute

Formal permission not required to use resource.

OTHER_RESTRICTIONS = 'otherRestrictions' class-attribute instance-attribute

Limitation not listed.

PATENT = 'patent' class-attribute instance-attribute

Government has granted exclusive right to make, sell, use or license an invention or discovery.

PATENT_PENDING = 'patentPending' class-attribute instance-attribute

Produced or sold information awaiting a patent.

PRIVATE = 'private' class-attribute instance-attribute

Protects rights of individual or organisations from observation, intrusion, or attention of others.

RESTRICTED = 'restricted' class-attribute instance-attribute

Withheld from general circulation or disclosure.

SENSITIVE_BUT_UNCLASSIFIED = 'sensitiveButUnclassified' class-attribute instance-attribute

Although unclassified, requires strict controls over its distribution.

STATUTORY = 'statutory' class-attribute instance-attribute

Prescribed by law.

TRADEMARK = 'trademark' class-attribute instance-attribute

A name, symbol, or other device identifying a product, officially registered and legally restricted to the use of the owner or manufacturer.

UNRESTRICTED = 'unrestricted' class-attribute instance-attribute

No constraints exist.

SecurityConstraints

Bases: Constraints

Handling restrictions imposed on the resource or metadata for national security or similar security concerns.

Source code in opengis/metadata/constraints.py
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
class SecurityConstraints(Constraints):
    """
    Handling restrictions imposed on the resource or metadata for national
    security or similar security concerns.
    """

    @property
    @abstractmethod
    def classification(self) -> ClassificationCode:
        """Name of the handling restrictions on the resource or metadata."""

    @property
    @abstractmethod
    def user_note(self) -> Optional[str]:
        """
        Explanation of the application of the legal constraints or other
        restrictions and legal prerequisites for obtaining and using the
        resource or metadata.
        """

    @property
    @abstractmethod
    def classification_system(self) -> Optional[str]:
        """Name of the classification system."""

    @property
    @abstractmethod
    def handling_description(self) -> Optional[str]:
        """
        Additional information about the restrictions on handling the resource
        or metadata.
        """

classification: ClassificationCode abstractmethod property

Name of the handling restrictions on the resource or metadata.

classification_system: Optional[str] abstractmethod property

Name of the classification system.

handling_description: Optional[str] abstractmethod property

Additional information about the restrictions on handling the resource or metadata.

user_note: Optional[str] abstractmethod property

Explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource or metadata.