Package org.apache.sis.internal.storage
Class ResourceLineage
java.lang.Object
org.apache.sis.internal.storage.ResourceLineage
Metadata about a resource which is a single source of another resource.
This is an experimental class which may be revisited in any future version.
- Since:
- 1.3
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.opengis.util.InternationalString
Description of the level of the source data, ornull
if none.private org.opengis.referencing.ReferenceSystem
She spatial reference system used by the source data, ornull
if none.private org.opengis.metadata.identification.Resolution
Spatial resolution expressed as a scale factor, an angle or a level of detail.private DefaultScope
The type and extent of the source, ornull
if none.private org.opengis.metadata.citation.Citation
Recommended reference to be used for the source data, ornull
. -
Constructor Summary
ConstructorsConstructorDescriptionResourceLineage
(org.opengis.metadata.Metadata source) Collects information about a source of the derived resource for which to provide lineage. -
Method Summary
Modifier and TypeMethodDescription(package private) final DefaultSource
build()
Creates an ISO 19115 metadata object from the information collected in this class.private static org.opengis.metadata.maintenance.ScopeCode
getScopeLevel
(org.opengis.metadata.Metadata source) Returns the type (coverage, feature, …) of the source to be stored in the "level" attribute of the scope.(package private) final boolean
isEmpty()
Returnsfalse
if this object has at least one non-null value.
-
Field Details
-
description
private org.opengis.util.InternationalString descriptionDescription of the level of the source data, ornull
if none. Current implementation uses the first non-null title of a citation. -
sourceCitation
private org.opengis.metadata.citation.Citation sourceCitationRecommended reference to be used for the source data, ornull
. Current implementation uses the first citation provided byMetadata.getIdentificationInfo()
. -
scope
The type and extent of the source, ornull
if none. Current implementation uses the resource scope declared in source metadata, together with the source extents. -
referenceSystem
private org.opengis.referencing.ReferenceSystem referenceSystemShe spatial reference system used by the source data, ornull
if none. Current implementation uses the first reference system declared by metadata. -
resolution
private org.opengis.metadata.identification.Resolution resolutionSpatial resolution expressed as a scale factor, an angle or a level of detail. Current implementation uses the first resolution found in identification information.
-
-
Constructor Details
-
ResourceLineage
ResourceLineage(org.opengis.metadata.Metadata source) Collects information about a source of the derived resource for which to provide lineage.- Parameters:
source
- metadata of a source of the derived resource for which to provide lineage.
-
-
Method Details
-
isEmpty
final boolean isEmpty()Returnsfalse
if this object has at least one non-null value. -
getScopeLevel
private static org.opengis.metadata.maintenance.ScopeCode getScopeLevel(org.opengis.metadata.Metadata source) Returns the type (coverage, feature, …) of the source to be stored in the "level" attribute of the scope.- Returns:
- scope level (coverage, feature, …), or
null
if none.
-
build
Creates an ISO 19115 metadata object from the information collected in this class.
-