Class JoinAttributes

java.lang.Object
org.openjump.core.attributeoperations.JoinAttributes

public class JoinAttributes extends Object
joins attribute values according to some spatial and statistical criterion
Author:
sstein
  • 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 features
      targetFeatures - target features
      attributeName - attribute name
      attributeOp - attribute operation
      spatialRelation - spatial relation
      bufferRadius - buffer radius
      monitor - task monitor
      Returns:
      a feature dataset
    • copyFeatureSchema

      public static FeatureSchema copyFeatureSchema(FeatureSchema oldSchema)
      Copy/clone the input featureSchema since it is not proper implemented in Jump
      Parameters:
      oldSchema - old schema
      Returns:
      a clone of oldSchema
    • copyFeature

      public static Feature copyFeature(Feature feature, FeatureSchema newSchema)
      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 copy
      newSchema - the taget schema
      Returns:
      a new Feature with newSchema as Schema and feature values