Class JoinAttributes
java.lang.Object
org.openjump.core.attributeoperations.JoinAttributes
joins attribute values according to some spatial and statistical criterion
- Author:
- sstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeaturecopyFeature(Feature feature, FeatureSchema newSchema) Copy the input feature to a new Schema whereby the new Feature Schema must be an extended or shortened onestatic FeatureSchemacopyFeatureSchema(FeatureSchema oldSchema) Copy/clone the input featureSchema since it is not proper implemented in Jumpstatic FeatureDatasetjoinAttributes(Collection sourceFeatures, Collection targetFeatures, String attributeName, int attributeOp, int spatialRelation, double bufferRadius, TaskMonitor monitor)
-
Constructor Details
-
JoinAttributes
public JoinAttributes()
-
-
Method Details
-
joinAttributes
public static FeatureDataset joinAttributes(Collection sourceFeatures, Collection targetFeatures, String attributeName, int attributeOp, int spatialRelation, double bufferRadius, TaskMonitor monitor) - Parameters:
sourceFeatures- source featurestargetFeatures- target featuresattributeName- attribute nameattributeOp- attribute operationspatialRelation- spatial relationbufferRadius- buffer radiusmonitor- task monitor- Returns:
- a feature dataset
-
copyFeatureSchema
Copy/clone the input featureSchema since it is not proper implemented in Jump- Parameters:
oldSchema- old schema- Returns:
- a clone of oldSchema
-
copyFeature
Copy the input feature to a new Schema whereby the new Feature Schema must be an extended or shortened one- Parameters:
feature- the Feature to copynewSchema- the taget schema- Returns:
- a new Feature with newSchema as Schema and feature values
-