| java.lang.Object net.refractions.udig.catalog.ui.export.FeatureWrapper
FeatureWrapper | class FeatureWrapper implements Feature(Code) | | Adapts an existing feature of one Feature type to another of a "compatible" feature type.
A compatible feature type are feature types that have the same attributes types but maybe in a different order
and the second (the type being adapted to) may have fewer attribute types.
author: Jesse |
Constructor Summary | |
public | FeatureWrapper(Feature wrapped, FeatureType featureType, Geometry[] geometries, String[] geomAttNames) New instance
Parameters: wrapped - Feature that needs to be adapted to new FeatureType Parameters: featureType - the new feature type. |
defaultGeometry | protected Geometry defaultGeometry(Code) | | |
featureType | final protected FeatureType featureType(Code) | | |
geometry | final protected Geometry[] geometry(Code) | | |
wrapped | final protected Feature wrapped(Code) | | |
FeatureWrapper | public FeatureWrapper(Feature wrapped, FeatureType featureType, Geometry[] geometries, String[] geomAttNames) throws IllegalArgumentException(Code) | | New instance
Parameters: wrapped - Feature that needs to be adapted to new FeatureType Parameters: featureType - the new feature type. Must be "compatible" with featureType of wrapped. See javadocs for class for more information Parameters: geometries - the geometries to use instead of the feature's geometries this allows the geometries to be transformed Parameters: geomAttNames - the attribute names of the geometries so we know how to put them in the attribute array. throws: IllegalAttributeException - Thrown if the default geometry does not exist |
getAttribute | final public Object getAttribute(int index)(Code) | | |
getBounds | public Envelope getBounds()(Code) | | |
getDefaultGeometry | public Geometry getDefaultGeometry()(Code) | | |
getFeatureType | public FeatureType getFeatureType()(Code) | | |
getNumberOfAttributes | public int getNumberOfAttributes()(Code) | | |
getParent | public FeatureCollection getParent()(Code) | | |
setAttribute | public void setAttribute(String xPath, Object attribute) throws IllegalAttributeException(Code) | | |
setDefaultGeometry | public void setDefaultGeometry(Geometry geometry) throws IllegalAttributeException(Code) | | |
setParent | public void setParent(FeatureCollection collection)(Code) | | |
|
|