|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_6.impl.WayGeometryBuilder
public class WayGeometryBuilder
Caches a set of node latitudes and longitudes and uses these to calculate the geometries for ways.
Field Summary | |
---|---|
protected NodeLocationStore |
locationStore
Stores the locations of nodes so that they can be used to build the way geometries. |
Constructor Summary | |
---|---|
WayGeometryBuilder(NodeLocationStoreType storeType)
Creates a new instance. |
Method Summary | |
---|---|
void |
addNodeLocation(Node node)
Adds the location of the node to the internal store. |
protected org.postgis.LineString |
createLinestring(java.util.List<org.postgis.Point> points)
Creates a linestring from a list of points. |
org.postgis.Polygon |
createWayBbox(Way way)
Builds a bounding box geometry object from the node references in the specified way. |
org.postgis.LineString |
createWayLinestring(Way way)
Builds a linestring geometry object from the node references in the specified way. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NodeLocationStore locationStore
Constructor Detail |
---|
public WayGeometryBuilder(NodeLocationStoreType storeType)
storeType
- The type of storage to use for holding node locations.Method Detail |
---|
public void addNodeLocation(Node node)
node
- The node to add.protected org.postgis.LineString createLinestring(java.util.List<org.postgis.Point> points)
points
- The points making up the line.
public org.postgis.Polygon createWayBbox(Way way)
way
- The way to create the bounding box for.
public org.postgis.LineString createWayLinestring(Way way)
way
- The way to create the linestring for.
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |