|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.spatialschema.GeometryImpl org.deegree.model.spatialschema.AggregateImpl
public abstract class AggregateImpl
default implementation of the Aggregate interface ------------------------------------------------------------
Field Summary | |
---|---|
protected java.util.ArrayList<Geometry> |
aggregate
|
Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
Fields inherited from interface org.deegree.model.spatialschema.Geometry |
---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
Constructor Summary | |
---|---|
protected |
AggregateImpl(CoordinateSystem crs)
Creates a new AggregateImpl object. |
Method Summary | |
---|---|
void |
add(Geometry gmo)
adds an Geometry to the aggregation |
boolean |
equals(java.lang.Object other)
Compares the Geometry to be equal to another Geometry. |
Geometry[] |
getAll()
returns all Geometries as array |
java.util.Iterator<Geometry> |
getIterator()
|
Geometry |
getObjectAt(int index)
returns the Geometry at the submitted index. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
int |
getSize()
|
void |
insertObjectAt(Geometry gmo,
int index)
inserts a Geometry in the aggregation. all elements with an index equal or larger index will be moved. if index is larger then getSize() - 1 or smaller then 0 or gmo equals null an exception will be thrown. |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isEmpty()
|
boolean |
isMember(Geometry gmo)
|
void |
merge(Aggregate aggregate)
merges this aggregation with another one |
void |
removeAll()
removes all Geometry from the aggregation. |
Geometry |
removeObject(Geometry gmo)
removes the submitted Geometry from the aggregation |
Geometry |
removeObjectAt(int index)
removes the Geometry at the submitted index from the aggregation. if index is larger then getSize() - 1 or smaller then 0 an exception will be thrown. |
void |
setCoordinateSystem(CoordinateSystem crs)
sets the spatial reference system |
void |
setObjectAt(Geometry gmo,
int index)
sets the submitted Geometry at the submitted index. the element at the position index will be
removed. if index is larger then getSize() - 1 or smaller then 0 or gmo equals null an exception will be thrown. |
java.lang.String |
toString()
|
void |
translate(double[] d)
translate the point by the submitted values. the dz - value will be ignored. |
Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
---|
calculateParam, clone, contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, setEmpty, setTolerance, setValid, union |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.spatialschema.Geometry |
---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateDimension, getCoordinateSystem, getDimension, getEnvelope, getTolerance, intersection, isWithinDistance, setTolerance, union |
Field Detail |
---|
protected java.util.ArrayList<Geometry> aggregate
Constructor Detail |
---|
protected AggregateImpl(CoordinateSystem crs)
crs
- Method Detail |
---|
public int getSize()
getSize
in interface Aggregate
public void merge(Aggregate aggregate) throws GeometryException
merge
in interface Aggregate
GeometryException
- a GeometryException will be thrown if the submitted isn't the same type as the recieving one.public void add(Geometry gmo)
add
in interface Aggregate
gmo
- Geometry to the aggregationpublic void insertObjectAt(Geometry gmo, int index) throws GeometryException
insertObjectAt
in interface Aggregate
gmo
- Geometry to insert.index
- position where to insert the new Geometry
GeometryException
public void setObjectAt(Geometry gmo, int index) throws GeometryException
index
will be
removed. if index is larger then getSize() - 1 or smaller then 0 or gmo equals null an exception will be thrown.
setObjectAt
in interface Aggregate
gmo
- Geometry to set.index
- position where to set the new Geometry
GeometryException
public Geometry removeObject(Geometry gmo)
removeObject
in interface Aggregate
gmo
- to remove
public Geometry removeObjectAt(int index) throws GeometryException
removeObjectAt
in interface Aggregate
GeometryException
public void removeAll()
removeAll
in interface Aggregate
public Geometry getObjectAt(int index)
getObjectAt
in interface Aggregate
index
- to get
public Geometry[] getAll()
getAll
in interface Aggregate
public boolean isMember(Geometry gmo)
isMember
in interface Aggregate
public java.util.Iterator<Geometry> getIterator()
getIterator
in interface Aggregate
public boolean isEmpty()
isEmpty
in interface Geometry
isEmpty
in class GeometryImpl
public void setCoordinateSystem(CoordinateSystem crs)
GeometryImpl
setCoordinateSystem
in class GeometryImpl
crs
- new spatial reference systempublic void translate(double[] d)
dz
- value will be ignored.
translate
in interface Geometry
translate
in class GeometryImpl
d
- vector to translate the geometry withpublic boolean equals(java.lang.Object other)
GeometryImpl
equals
in class GeometryImpl
other
- the Geometry to test for equality
public boolean intersects(Geometry gmo)
intersects
in interface Geometry
intersects
in class GeometryImpl
gmo
- the Geometry to intersect with
public java.lang.String toString()
toString
in class GeometryImpl
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org