org.geotools.demo.export
Class ExportParameters

java.lang.Object
  extended byorg.geotools.demo.export.ExportParameters

public class ExportParameters
extends java.lang.Object

DOCUMENT ME!

Version:
$Id: ExportParameters.java 17699 2006-01-22 22:42:41Z desruisseaux $
Author:
Gabriel Roldan, Axios Engineering

Constructor Summary
ExportParameters()
           
 
Method Summary
 FeatureSource createExportSource()
          Builds and returns a FeatureSource for the given export options.
 DataStore getDestDataStore()
          DOCUMENT ME!
 FeatureSource getFeatureSource()
          DOCUMENT ME!
 java.lang.String getNewTypeName()
          DOCUMENT ME!
 org.opengis.referencing.crs.CoordinateReferenceSystem getOverrideCRS()
          DOCUMENT ME!
 org.opengis.referencing.crs.CoordinateReferenceSystem getReprojectCRS()
          DOCUMENT ME!
 boolean hasEnoughInfo()
          Evaluates if the fields holded are enough to make the export.
 void setDestDataStore(DataStore destDataStore)
          DOCUMENT ME!
 void setFeatureSource(FeatureSource featureSource)
          DOCUMENT ME!
 void setNewTypeName(java.lang.String newTypeName)
          DOCUMENT ME!
 void setOverrideCRS(org.opengis.referencing.crs.CoordinateReferenceSystem overrideCRS)
          DOCUMENT ME!
 void setReprojectCRS(org.opengis.referencing.crs.CoordinateReferenceSystem reprojectCRS)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportParameters

public ExportParameters()
Method Detail

hasEnoughInfo

public boolean hasEnoughInfo()
Evaluates if the fields holded are enough to make the export.

Returns:
DOCUMENT ME!

createExportSource

public FeatureSource createExportSource()
                                 throws java.lang.IllegalStateException,
                                        SchemaException
Builds and returns a FeatureSource for the given export options.

If needed, the returned FeatureSource will be a wrapper for exposing the needed schema/query

Returns:
Throws:
java.lang.IllegalStateException - if:
1- Some of the mandatory parameters (featureSource and destDataStore) has not been setted.
2- The feature source does not defines a CRS and reprojectCRS has been specified but not an overrideCRS.
SchemaException - if the new schema can't be created from the original one
java.lang.IllegalArgumentException - DOCUMENT ME!

getDestDataStore

public DataStore getDestDataStore()
DOCUMENT ME!

Returns:
Returns the destDataStore.

setDestDataStore

public void setDestDataStore(DataStore destDataStore)
DOCUMENT ME!

Parameters:
destDataStore - The destDataStore to set.

getFeatureSource

public FeatureSource getFeatureSource()
DOCUMENT ME!

Returns:
Returns the featureSource.

setFeatureSource

public void setFeatureSource(FeatureSource featureSource)
DOCUMENT ME!

Parameters:
featureSource - The featureSource to set.

getNewTypeName

public java.lang.String getNewTypeName()
DOCUMENT ME!

Returns:
Returns the newTypeName.

setNewTypeName

public void setNewTypeName(java.lang.String newTypeName)
DOCUMENT ME!

Parameters:
newTypeName - The newTypeName to set.

getReprojectCRS

public org.opengis.referencing.crs.CoordinateReferenceSystem getReprojectCRS()
DOCUMENT ME!

Returns:
Returns the outCRS.

setReprojectCRS

public void setReprojectCRS(org.opengis.referencing.crs.CoordinateReferenceSystem reprojectCRS)
DOCUMENT ME!

Parameters:
reprojectCRS - The outCRS to set.

getOverrideCRS

public org.opengis.referencing.crs.CoordinateReferenceSystem getOverrideCRS()
DOCUMENT ME!

Returns:
Returns the outCRS.

setOverrideCRS

public void setOverrideCRS(org.opengis.referencing.crs.CoordinateReferenceSystem overrideCRS)
DOCUMENT ME!

Parameters:
overrideCRS - The outCRS to set.


Copyright © GeoTools. All Rights Reserved.