|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.domain.v0_6.Entity
org.openstreetmap.osmosis.core.domain.v0_6.Bound
public class Bound
A data class representing an OSM data bound element.
Constructor Summary | |
---|---|
Bound(double right,
double left,
double top,
double bottom,
java.lang.String origin)
Creates a new instance with the specified boundaries. |
|
Bound(StoreReader sr,
StoreClassRegister scr)
Creates a new instance. |
|
Bound(java.lang.String origin)
Creates a new instance which covers the entire planet. |
Method Summary | |
---|---|
int |
compareTo(Bound comparisonBound)
Compares this bound to the specified bound. |
boolean |
equals(java.lang.Object o)
|
double |
getBottom()
|
double |
getLeft()
|
java.lang.String |
getOrigin()
|
double |
getRight()
|
double |
getTop()
|
EntityType |
getType()
Returns the specific data type represented by this entity. |
Bound |
getWriteableInstance()
Returns a writeable instance of this entity. |
int |
hashCode()
|
Bound |
intersect(Bound intersectingBound)
Calculate the intersected area of this with the specified bound. |
void |
store(StoreWriter sw,
StoreClassRegister scr)
Stores all state to the specified store writer. |
java.lang.Iterable<Bound> |
toSimpleBound()
Retrieve a collection of Bound objects which collectively comprise the entirety of this Bound but individually do not cross the antimeridian and thus can be used in simple area operations. |
java.lang.String |
toString()
$. |
Bound |
union(Bound unionBound)
Calculate the union area of this with the specified bound. |
Methods inherited from class org.openstreetmap.osmosis.core.domain.v0_6.Entity |
---|
assertWriteable, compareTags, getChangesetId, getFormattedTimestamp, getId, getTags, getTimestamp, getTimestampContainer, getUser, getVersion, isReadOnly, makeReadOnly, setChangesetId, setId, setTimestamp, setTimestampContainer, setUser, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bound(java.lang.String origin)
origin
- The origin (source) of the data, typically a URIpublic Bound(double right, double left, double top, double bottom, java.lang.String origin)
right
- The longitude coordinate of the right (East) edge of the boundleft
- The longitude coordinate of the left (West) edge of the boundtop
- The latitude coordinate of the top (North) edge of the boundbottom
- The latitude coordinate of the bottom (South) edge of the boundorigin
- The origin (source) of the data, typically a URIpublic Bound(StoreReader sr, StoreClassRegister scr)
sr
- The store to read state from.scr
- Maintains the mapping between classes and their identifiers within the store.Method Detail |
---|
public void store(StoreWriter sw, StoreClassRegister scr)
store
in interface Storeable
store
in class Entity
sw
- The writer that persists data to an underlying store.scr
- Maintains the mapping between classes and their identifiers
within the store.public EntityType getType()
getType
in class Entity
public double getRight()
public double getLeft()
public double getTop()
public double getBottom()
public java.lang.String getOrigin()
public Bound intersect(Bound intersectingBound)
intersectingBound
- Bound element with which to calculate the intersection
public Bound union(Bound unionBound)
unionBound
- Bound element with which to calculate the union
public java.lang.Iterable<Bound> toSimpleBound()
public int compareTo(Bound comparisonBound)
compareTo
in interface java.lang.Comparable<Bound>
comparisonBound
- The bound to compare to.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Bound getWriteableInstance()
getWriteableInstance
in class Entity
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |