org.geotools.data.vpf
Class VPFLibrary

java.lang.Object
  extended byorg.geotools.data.AbstractDataStore
      extended byorg.geotools.data.vpf.VPFLibrary
All Implemented Interfaces:
DataStore, FileConstants, VPFLibraryIfc

public class VPFLibrary
extends AbstractDataStore
implements FileConstants, VPFLibraryIfc


Field Summary
 
Fields inherited from class org.geotools.data.AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Fields inherited from interface org.geotools.data.vpf.ifc.FileConstants
AREA_BOUMDING_RECTANGLE_TABLE, AREA_FEATURE_TABLE, AREA_JOIN_TABLE, AREA_THEMATIC_INDEX, CHARACTER_VALUE_DESCRIPTION_TABLE, COLUMN_MANDATORY, COLUMN_MANDATORY_AT_LEVEL_0, COLUMN_MANDATORY_AT_LEVEL_1, COLUMN_MANDATORY_AT_LEVEL_2, COLUMN_MANDATORY_AT_LEVEL_3, COLUMN_MANDATORY_IF_TILES, COLUMN_OPTIONAL, COLUMN_OPTIONAL_FP, COMPLEX_BOUNDING_RECTANGLE_TABLE, COMPLEX_FEATURE_TABLE, COMPLEX_JOIN_TABLE, COMPLEX_THEMATIC_INDEX, CONNECTED_NODE_PRIMITIVE, CONNECTED_NODE_SPATIAL_INDEX, COVERAGE_ATTRIBUTE_TABLE, DATA_QUALITY_COVERAGE, DATA_QUALITY_TABLE, DATABASE_HEADER_TABLE, DIAGNOSITC_POINT_TABLE, DIR_DQ, DIR_GAZETTE, DIR_LIBREF, DIR_TILEREF, EDGE_BOUNDING_RECTANGLE, EDGE_PRIMITIVE, EDGE_SPATIAL_INDEX, ENTITY_NODE_PRIMITIVE, ENTITY_NODE_SPATIAL_INDEX, EXT_ABR, EXT_AFT, EXT_AJT, EXT_ATI, EXT_CBR, EXT_CFT, EXT_CJT, EXT_CTI, EXT_DOC, EXT_DPT, EXT_FIT, EXT_FTI, EXT_JTI, EXT_LBR, EXT_LFT, EXT_LJT, EXT_LTI, EXT_PBR, EXT_PFT, EXT_PJT, EXT_PTI, EXT_RAT, EXT_RPT, EXT_TFT, EXT_TTI, FACE_BOUNDING_RECTANGLE, FACE_PRIMITIVE, FACE_SPATIAL_INDEX, FEATURE_CLASS_ATTRIBUTE_TABLE, FEATURE_CLASS_SCHEMA_TABLE, FEATURE_INDEX_TABLE, FEATURE_THEMATIC_INDEX, GEOGRAPHIC_REFERENCE_TABLE, INTEGER_VALUE_DESCRIPTION_TABLE, JOIN_THEMATIC_INDEX, KEY_NON_UNIQUE, KEY_PRIMARY, KEY_UNIQUE, LIBRARY_ATTTIBUTE_TABLE, LIBRARY_HEADER_TABLE, LIBRARY_REFERENCE_COVERAGE, LINE_BOUNDING_RECTANGLE_TABLE, LINE_FEATURE_TABLE, LINE_JOIN_TABLE, LINE_THEMATIC_INDEX, NAMES_REFERENCE_COVERAGE, NARRATIVE_TABLE, POINT_BOUNDING_RECTANGLE_TABLE, POINT_FEATURE_TABLE, POINT_JOIN_TABLE, POINT_THEMATIC_INDEX, REGISTRATION_POINT_TABLE, RELATED_ATTRIBUTE_TABLE, RING_TABLE, TABLE_CAT, TABLE_CHAR, TABLE_CND, TABLE_CSI, TABLE_DHT, TABLE_DQT, TABLE_EBR, TABLE_EDG, TABLE_END, TABLE_ESI, TABLE_FAC, TABLE_FBR, TABLE_FCA, TABLE_FCS, TABLE_FSI, TABLE_GRT, TABLE_INT, TABLE_LAT, TABLE_LHT, TABLE_NSI, TABLE_RNG, TABLE_TSI, TABLE_TXT, TEXT_FEATURE_TABLE, TEXT_PRIMITIVE, TEXT_SPATIAL_INDEX, TEXT_THEMATIC_TABLE, TILE_REFERENCE_COVERAGE, VPF_ELEMENT_SEPARATOR, VPF_FIELD_SEPARATOR, VPF_RECORD_SEPARATOR
 
Fields inherited from interface org.geotools.data.vpf.ifc.VPFLibraryIfc
FIELD_LIB_NAME, FIELD_TILE_ID, FIELD_TILE_NAME, FIELD_XMAX, FIELD_XMIN, FIELD_YMAX, FIELD_YMIN
 
Constructor Summary
VPFLibrary(Feature libraryFeature, java.io.File dir)
          Complete constructor
VPFLibrary(java.io.File dir)
          Constructor that adds a namespace to the File only constructor.
VPFLibrary(java.io.File dir, java.net.URI namespace)
          Constructor which defaults the containing database to null and looks up the first (and presumably only) entry in the library attribute table
 
Method Summary
 org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
          Returns the coordinate reference system appropriate for this library.
 java.util.List getCoverages()
          Returns the coverages contained by the library
protected  FeatureReader getFeatureReader(java.lang.String typeName)
          Subclass must implement.
 FeatureType getSchema(java.lang.String typeName)
          Retrive schema information for typeName
 java.util.Map getTileMap()
          Returns a map containing the tiles used by this library.
 java.lang.String[] getTypeNames()
          Convience method for retriving all the names from the Catalog Entires
 double getXmax()
          Getter for property xmax.
 double getXmin()
          Getter for property xmin.
 double getYmax()
          Getter for property ymax.
 double getYmin()
          Getter for property ymin.
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.data.AbstractDataStore
createFeatureWriter, createLockingManager, createMetadata, createSchema, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getUnsupportedFilter, getView, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VPFLibrary

public VPFLibrary(Feature libraryFeature,
                  java.io.File dir)
           throws java.io.IOException,
                  SchemaException
Complete constructor

Parameters:
libraryFeature - a feature from the library attribute table
dir - the containing directory
Throws:
java.io.IOException
SchemaException - For problems making one of the feature classes as a FeatureType.

VPFLibrary

public VPFLibrary(java.io.File dir)
           throws java.io.IOException,
                  SchemaException
Constructor that adds a namespace to the File only constructor. If using another constructor then use #setNamespace(URI)

Parameters:
dir - the containing directory
Throws:
java.io.IOException
SchemaException - for problems making a featureType.

VPFLibrary

public VPFLibrary(java.io.File dir,
                  java.net.URI namespace)
           throws java.io.IOException,
                  SchemaException
Constructor which defaults the containing database to null and looks up the first (and presumably only) entry in the library attribute table

Parameters:
dir - the containing directory
namespace - the namespace to create features with.
Throws:
java.io.IOException
SchemaException - For problems making one of the feature classes as a FeatureType.
Method Detail

getCoverages

public java.util.List getCoverages()
Returns the coverages contained by the library

Returns:
a List value which contains VPFCoverage objects

getXmax

public double getXmax()
Getter for property xmax.

Returns:
Value of property xmax.

getXmin

public double getXmin()
Getter for property xmin.

Returns:
Value of property xmin.

getYmax

public double getYmax()
Getter for property ymax.

Returns:
Value of property ymax.

getYmin

public double getYmin()
Getter for property ymin.

Returns:
Value of property ymin.

toString

public java.lang.String toString()

getTileMap

public java.util.Map getTileMap()
Returns a map containing the tiles used by this library. The map has string keys and and string values.

Returns:
a Map value

getTypeNames

public java.lang.String[] getTypeNames()
Description copied from class: AbstractDataStore
Convience method for retriving all the names from the Catalog Entires

Specified by:
getTypeNames in interface DataStore
Specified by:
getTypeNames in class AbstractDataStore

getSchema

public FeatureType getSchema(java.lang.String typeName)
Description copied from class: AbstractDataStore
Retrive schema information for typeName

Specified by:
getSchema in interface DataStore
Specified by:
getSchema in class AbstractDataStore

getFeatureReader

protected FeatureReader getFeatureReader(java.lang.String typeName)
Description copied from class: AbstractDataStore
Subclass must implement.

Specified by:
getFeatureReader in class AbstractDataStore
Parameters:
typeName -
Returns:
FeatureReader over contents of typeName

getCoordinateReferenceSystem

public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
Returns the coordinate reference system appropriate for this library. If the coordinate reference system cannot be determined null will be returned.



Copyright © GeoTools. All Rights Reserved.