public class FeatureSchema extends Object implements Cloneable, Serializable
FeatureCollection,
Serialized Form| Constructor and Description |
|---|
FeatureSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attributeName,
AttributeType attributeType)
Adds an attribute with the given case-sensitive name.
|
Object |
clone() |
boolean |
equals(Object other)
Returns whether the two FeatureSchemas have the same attribute names
with the same types and in the same order.
|
boolean |
equals(Object other,
boolean orderMatters)
Returns whether the two FeatureSchemas have the same attribute names
with the same types and (optionally) in the same order.
|
int |
getAttributeCount()
Returns the total number of spatial and non-spatial attributes in this
FeatureSchema.
|
int |
getAttributeIndex(String attributeName)
Returns the zero-based index of the attribute with the given name
(case-sensitive)
|
String |
getAttributeName(int attributeIndex)
Returns the (case-sensitive) name of the attribute at the given zero-based index.
|
AttributeType |
getAttributeType(int attributeIndex)
Returns whether the attribute at the given zero-based index is a string,
integer, double, etc.
|
AttributeType |
getAttributeType(String attributeName)
Returns whether the attribute with the given name (case-sensitive) is a string,
integer, double, etc.
|
CoordinateSystem |
getCoordinateSystem() |
int |
getGeometryIndex()
Returns the attribute index of the Geometry, or -1 if there is no
Geometry attribute
|
boolean |
hasAttribute(String attributeName)
Returns whether this FeatureSchema has an attribute with this name
|
FeatureSchema |
setCoordinateSystem(CoordinateSystem coordinateSystem)
Sets the CoordinateSystem associated with this FeatureSchema, but does
not perform any reprojection.
|
public int getAttributeIndex(String attributeName)
IllegalArgumentException - if attributeName is unrecognizedpublic boolean hasAttribute(String attributeName)
attributeName - the name to look uppublic int getGeometryIndex()
public String getAttributeName(int attributeIndex)
public AttributeType getAttributeType(int attributeIndex)
public AttributeType getAttributeType(String attributeName)
public int getAttributeCount()
public void addAttribute(String attributeName, AttributeType attributeType)
AssertionFailedException - if a second Geometry is being addedpublic boolean equals(Object other)
public boolean equals(Object other, boolean orderMatters)
public FeatureSchema setCoordinateSystem(CoordinateSystem coordinateSystem)
public CoordinateSystem getCoordinateSystem()
Copyright © 2015. All rights reserved.