|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.FeatureSchema
public class FeatureSchema
Metadata for a FeatureCollection: attribute names and types.
FeatureCollection,
Serialized Form| Constructor Summary | |
|---|---|
FeatureSchema()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String attributeName,
AttributeType attributeType)
Adds an attribute with the given case-sensitive name. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object other)
Returns whether the two FeatureSchemas have the same attribute names with the same types and in the same order. |
boolean |
equals(java.lang.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(java.lang.String attributeName)
Returns the zero-based index of the attribute with the given name (case-sensitive) |
java.lang.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(java.lang.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(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureSchema()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic int getAttributeIndex(java.lang.String attributeName)
java.lang.IllegalArgumentException - if attributeName is unrecognizedpublic boolean hasAttribute(java.lang.String attributeName)
attributeName - the name to look up
public int getGeometryIndex()
public java.lang.String getAttributeName(int attributeIndex)
public AttributeType getAttributeType(int attributeIndex)
public AttributeType getAttributeType(java.lang.String attributeName)
public int getAttributeCount()
public void addAttribute(java.lang.String attributeName,
AttributeType attributeType)
AssertionFailedException - if a second Geometry is being addedpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
public boolean equals(java.lang.Object other,
boolean orderMatters)
public FeatureSchema setCoordinateSystem(CoordinateSystem coordinateSystem)
public CoordinateSystem getCoordinateSystem()
setCoordinateSystem(CoordinateSystem)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||