org.geotools.data.gml
Class GMLDataStore

java.lang.Object
  extended byorg.geotools.data.AbstractDataStore
      extended byorg.geotools.data.gml.GMLDataStore
All Implemented Interfaces:
DataStore

public class GMLDataStore
extends AbstractDataStore

(DataStore class for handling a directory of GML files. Each file should have the extension .gml or .xml and contain the data of one layer (one file - one layer).) ...CURRENTLY this is just one dir - one layer... The datastore is "Read Only" as it should only be used to open GML files in Geoserver. There are better techniques to write GML file than the one used in this class to read the data.

Author:
adanselm, dzwiers TODO Check for a cleaner way to do

Field Summary
protected  java.io.File directory
           
 
Fields inherited from class org.geotools.data.AbstractDataStore
isWriteable, listenerManager, LOGGER
 
Constructor Summary
GMLDataStore(java.net.URI udir)
           
 
Method Summary
protected  FeatureReader getFeatureReader(java.lang.String typeName)
          Subclass must implement.
 FeatureType getSchema(java.lang.String typeName)
          Retrive schema information for typeName
 java.lang.String[] getTypeNames()
          Convience method for retriving all the names from the Catalog Entires
 
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, toString, wait, wait, wait
 

Field Detail

directory

protected java.io.File directory
Constructor Detail

GMLDataStore

public GMLDataStore(java.net.URI udir)
Method Detail

getTypeNames

public java.lang.String[] getTypeNames()
                                throws java.io.IOException
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
Throws:
java.io.IOException

getSchema

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

Specified by:
getSchema in interface DataStore
Specified by:
getSchema in class AbstractDataStore
Throws:
java.io.IOException

getFeatureReader

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

Specified by:
getFeatureReader in class AbstractDataStore
Parameters:
typeName -
Returns:
FeatureReader over contents of typeName
Throws:
java.io.IOException


Copyright © GeoTools. All Rights Reserved.