org.geotools.data
Class SampleDataAccessData

Object
  extended by SampleDataAccessData

public class SampleDataAccessData
extends Object

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
static FeatureType GEOLOGICUNIT_TYPE
           
static Name GEOLOGICUNIT_TYPE_NAME
           
static FeatureType MAPPEDFEATURE_TYPE
          The type of the sample feature.
static Name MAPPEDFEATURE_TYPE_NAME
          The qualified name of the sample feature type.
static String NAMESPACE_PREFIX
          Namespace prefix for the sample feature type.
static String NAMESPACE_URI
          Namespace URI for the sample feature type.
static AttributeDescriptor SHAPE_DESCRIPTOR
           
static AttributeDescriptor SPECIFICATION_DESCRIPTOR
           
 
Constructor Summary
SampleDataAccessData()
           
 
Method Summary
static Feature createMappedFeature(String id, String bgsid, String description, String specificationDescription, Geometry shape)
          Create a sample feature from primitive components.
static List<Feature> createMappedFeatures()
          Create a list of two sample features.
static Geometry readGeometry(String wellKnownText)
          Convert a shape in Well-Known Text into a Geometry.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE_PREFIX

public static final String NAMESPACE_PREFIX
Namespace prefix for the sample feature type.

See Also:
Constant Field Values

NAMESPACE_URI

public static final String NAMESPACE_URI
Namespace URI for the sample feature type.

See Also:
Constant Field Values

GEOLOGICUNIT_TYPE_NAME

public static final Name GEOLOGICUNIT_TYPE_NAME

GEOLOGICUNIT_TYPE

public static final FeatureType GEOLOGICUNIT_TYPE

SPECIFICATION_DESCRIPTOR

public static final AttributeDescriptor SPECIFICATION_DESCRIPTOR

SHAPE_DESCRIPTOR

public static final AttributeDescriptor SHAPE_DESCRIPTOR

MAPPEDFEATURE_TYPE_NAME

public static final Name MAPPEDFEATURE_TYPE_NAME
The qualified name of the sample feature type.


MAPPEDFEATURE_TYPE

public static final FeatureType MAPPEDFEATURE_TYPE
The type of the sample feature.

Constructor Detail

SampleDataAccessData

public SampleDataAccessData()
Method Detail

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 id
bgsid - an alternate id (not yet used)
description - name of the feature
shape - the shape of the feature
Returns:

createMappedFeatures

public static List<Feature> createMappedFeatures()
Create a list of two sample features.

Returns:
list of sample features

readGeometry

public static Geometry readGeometry(String wellKnownText)
Convert a shape in Well-Known Text into a Geometry.

Parameters:
wellKnownText - a shape in Well-Known Text
Returns:
the corresponding geometry


Copyright © 1996-2014 Geotools. All Rights Reserved.