org.geotools.data.gen.info
Class GeneralizationInfo
java.lang.Object
org.geotools.data.gen.info.GeneralizationInfo
public class GeneralizationInfo
- extends java.lang.Object
Container having a base feature and 0..n generalizations
The base feature is the original feature for which generalizations were build
The feature type of the base feature is the feature type of a PregeneralizedFeature, except
geometry properties holding generalized geometries
if a generalized geometry is stored in a different feature source, this feature source must
include all non geometry properties from the baseFeatureSource
- Author:
- Christian Mueller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneralizationInfo
public GeneralizationInfo(java.lang.String baseFeatureName,
java.lang.String featureName,
java.lang.String geomPropertyName,
GeneralizationInfos parent)
getFeatureName
public java.lang.String getFeatureName()
getBaseFeatureName
public java.lang.String getBaseFeatureName()
getGeomPropertyName
public java.lang.String getGeomPropertyName()
getGeneralizations
public java.util.SortedSet<Generalization> getGeneralizations()
getGeneralizationForDistance
public Generalization getGeneralizationForDistance(java.lang.Double requestedDistance)
- Parameters:
requestedDistance
-
- Returns:
- The proper Generalization for the requested distance, null if no proper distance
found example: Given are generalizations for 10.0 and 20 0<= requestedDistance < 10
---> return null 10<= requestedDistance < 20 ---> return distance info for 10.0 20<=
requestedDistance ---> return distance info for 20.0
getDataSourceName
public java.lang.String getDataSourceName()
- Returns:
- data source name for base feature.
setDataSourceName
public void setDataSourceName(java.lang.String dataSourceName)
getDataSourceNameSpace
public java.lang.String getDataSourceNameSpace()
- Returns:
- workspace name for base feature, my be null
setDataSourceNameSpace
public void setDataSourceNameSpace(java.lang.String namespace)
validate
public void validate()
throws java.io.IOException
- Validates not null instance variables
- Throws:
java.io.IOException
- 1)if data source, feature name, base feature name or geometry property name is
null 2) if the validation of generalizations fails
Copyright © 1996-2010 Geotools. All Rights Reserved.