org.geotools.data
Class SampleDataAccessData

java.lang.Object
  extended by org.geotools.data.SampleDataAccessData

public class SampleDataAccessData
extends java.lang.Object

Constants and methods to create sample features for SampleDataAccess.

The features are similar to MappedFeature found in GeoSciML.

Since:
2.6
Version:
$Id: SampleDataAccessData.java 32619 2009-03-10 05:53:43Z bencaradocdavies $
Author:
Ben Caradoc-Davies, CSIRO Exploration and Mining

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

Field Detail

NAMESPACE_PREFIX

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

See Also:
Constant Field Values

NAMESPACE_URI

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

See Also:
Constant Field Values

GEOLOGICUNIT_TYPE_NAME

public static final org.opengis.feature.type.Name GEOLOGICUNIT_TYPE_NAME

GEOLOGICUNIT_TYPE

public static final org.opengis.feature.type.FeatureType GEOLOGICUNIT_TYPE

SPECIFICATION_DESCRIPTOR

public static final org.opengis.feature.type.AttributeDescriptor SPECIFICATION_DESCRIPTOR

SHAPE_DESCRIPTOR

public static final org.opengis.feature.type.AttributeDescriptor SHAPE_DESCRIPTOR

MAPPEDFEATURE_TYPE_NAME

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


MAPPEDFEATURE_TYPE

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

Constructor Detail

SampleDataAccessData

public SampleDataAccessData()
Method Detail

createMappedFeature

public static org.opengis.feature.Feature createMappedFeature(java.lang.String id,
                                                              java.lang.String bgsid,
                                                              java.lang.String description,
                                                              java.lang.String specificationDescription,
                                                              com.vividsolutions.jts.geom.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 java.util.List<org.opengis.feature.Feature> createMappedFeatures()
Create a list of two sample features.

Returns:
list of sample features

readGeometry

public static com.vividsolutions.jts.geom.Geometry readGeometry(java.lang.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-2010 Geotools. All Rights Reserved.