public class AttributeMapping
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AttributeMapping.CombinedSchema  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AttributeMapping()  | 
  | 
AttributeMapping(FeatureSchema a,
                FeatureSchema b)
Constructs an AttributeMapping that will transfer all the attributes from
 two feature collections A and B. 
 | 
  | 
AttributeMapping(FeatureSchema aSchema,
                java.util.List aAttributeNames,
                java.util.List aNewAttributeNames,
                FeatureSchema bSchema,
                java.util.List bAttributeNames,
                java.util.List bNewAttributeNames)
Constructs an AttributeMapping. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
AttributeMapping.CombinedSchema | 
createSchema(java.lang.String geometryName)
Returns a new FeatureSchema with the destination attributes of the mapping
 and a spatial attribute with the given name 
 | 
protected boolean | 
isDisjoint(java.util.Collection a,
          java.util.Collection b)  | 
void | 
transferAttributes(Feature aFeature,
                  Feature bFeature,
                  Feature cFeature)
Transfers attributes (not the geometry) from two features to a third
 feature, using the mappings specified in the constructor. 
 | 
protected AttributeMapping()
public AttributeMapping(FeatureSchema a, FeatureSchema b)
a - schema for first feature collection from which to transfer attributesb - schema for second feature collection from which to transfer attributespublic AttributeMapping(FeatureSchema aSchema, java.util.List aAttributeNames, java.util.List aNewAttributeNames, FeatureSchema bSchema, java.util.List bAttributeNames, java.util.List bNewAttributeNames)
aSchema - metadata for feature-collection AaAttributeNames - non-spatial feature-collection-A attributes to transferaNewAttributeNames - corresponding names in the feature collection receiving the attributesbSchema - metadata for feature-collection BbAttributeNames - non-spatial feature-collection-B attributes to transferbNewAttributeNames - corresponding names in the feature collection receiving the attributespublic AttributeMapping.CombinedSchema createSchema(java.lang.String geometryName)
geometryName - name to assign to the spatial attributeprotected boolean isDisjoint(java.util.Collection a,
                 java.util.Collection b)
public void transferAttributes(Feature aFeature, Feature bFeature, Feature cFeature)
aFeature - a feature from feature-collection AbFeature - a feature from feature-collection B (can be null)cFeature - the feature to transfer the A and B attributes to