Package org.geotools.data.gen.info
Class GeneralizationInfo
Object
GeneralizationInfo
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
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralizationInfo
(String baseFeatureName, String featureName, String geomPropertyName, GeneralizationInfos parent) -
Method Summary
Modifier and TypeMethodDescriptiongetGeneralizationForDistance
(Double requestedDistance) void
setDataSourceName
(String dataSourceName) void
setDataSourceNameSpace
(String namespace) void
validate()
Validates not null instance variables
-
Constructor Details
-
GeneralizationInfo
public GeneralizationInfo(String baseFeatureName, String featureName, String geomPropertyName, GeneralizationInfos parent)
-
-
Method Details
-
getFeatureName
-
getBaseFeatureName
-
getGeomPropertyName
-
getGeneralizations
-
getGeneralizationForDistance
- 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
- Returns:
- data source name for base feature.
-
setDataSourceName
-
getDataSourceNameSpace
- Returns:
- workspace name for base feature, my be null
-
setDataSourceNameSpace
-
validate
Validates not null instance variables- Throws:
IOException
- 1)if data source, feature name, base feature name or geometry property name is null 2) if the validation of generalizations fails
-