|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the basic inteface that defines one of the adapters between the gis features and repast features. It provides methods for setting the data and also the basic geometric operations necessary for gis processing.
| Method Summary | |
void |
addAttribute(String key,
Object value)
Add an attribute to the Fature. |
boolean |
crosses(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
boolean |
disjoint(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
Object |
getAttribute(String key)
Get the value of the Attribute with given name. |
String[] |
getAttributeNames()
Gets a list of the Attributes. |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Gets the geometry that defines this feature. |
boolean |
intersects(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
boolean |
isMulti()
Returns true if the feature is a "multi" type. |
boolean |
overlaps(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
void |
setAttributes(Hashtable attr)
Set the attributes for the feature. |
void |
setFeature(org.geotools.feature.Feature f)
Set the gis feature. |
void |
setGeometry(com.vividsolutions.jts.geom.Geometry geo)
Set the geometry that defines this feature. |
boolean |
touches(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
boolean |
within(RepastGisFeature g)
Defined in the openGis SimpleFeatureSpecification. |
| Method Detail |
public void setFeature(org.geotools.feature.Feature f)
throws Exception
f - The feature to be added
Exception - throws an exception if this is not a proper feature.public String[] getAttributeNames()
public void addAttribute(String key,
Object value)
key - value - public Object getAttribute(String key)
key -
public com.vividsolutions.jts.geom.Geometry getGeometry()
public void setGeometry(com.vividsolutions.jts.geom.Geometry geo)
throws IllegalArgumentException
geo -
IllegalArgumentExceptionpublic void setAttributes(Hashtable attr)
attr - public boolean isMulti()
public boolean intersects(RepastGisFeature g)
g -
public boolean touches(RepastGisFeature g)
g -
public boolean within(RepastGisFeature g)
g -
public boolean crosses(RepastGisFeature g)
g -
public boolean overlaps(RepastGisFeature g)
g -
public boolean disjoint(RepastGisFeature g)
g -
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||