Class SampleDataAccessData
Object
SampleDataAccessData
Constants and methods to create sample features for
SampleDataAccess
.
The features are similar to MappedFeature found in GeoSciML.
- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FeatureType
static final Name
static final FeatureType
The type of the sample feature.static final Name
The qualified name of the sample feature type.static final String
Namespace prefix for the sample feature type.static final String
Namespace URI for the sample feature type.static final AttributeDescriptor
static final AttributeDescriptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Feature
createMappedFeature
(String id, String bgsid, String description, String specificationDescription, Geometry shape) Create a sample feature from primitive components.Create a list of two sample features.static Geometry
readGeometry
(String wellKnownText) Convert a shape in Well-Known Text into aGeometry
.
-
Field Details
-
NAMESPACE_PREFIX
Namespace prefix for the sample feature type.- See Also:
-
NAMESPACE_URI
Namespace URI for the sample feature type.- See Also:
-
GEOLOGICUNIT_TYPE_NAME
-
GEOLOGICUNIT_TYPE
-
SPECIFICATION_DESCRIPTOR
-
SHAPE_DESCRIPTOR
-
MAPPEDFEATURE_TYPE_NAME
The qualified name of the sample feature type. -
MAPPEDFEATURE_TYPE
The type of the sample feature.
-
-
Constructor Details
-
SampleDataAccessData
public SampleDataAccessData()
-
-
Method Details
-
createMappedFeature
public static Feature createMappedFeature(String id, String bgsid, String description, String specificationDescription, Geometry shape) Create a sample feature from primitive components.- Parameters:
id
- feature idbgsid
- an alternate id (not yet used)description
- name of the featureshape
- the shape of the feature
-
createMappedFeatures
Create a list of two sample features.- Returns:
- list of sample features
-
readGeometry
Convert a shape in Well-Known Text into aGeometry
.- Parameters:
wellKnownText
- a shape in Well-Known Text- Returns:
- the corresponding geometry
-