|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.wkb4j.jts.FastJTSFactory
Expiremental implementation of a ligther JTSFactory. Not really worth it. NOTE: It doesn't work because of a bug in Point and Polygon handling that is fixed in the normal version. Creation date: 6 juil. 2002 23:10:29
Field Summary | |
private com.vividsolutions.jts.geom.Coordinate[] |
coordinatesBuffer
|
private com.vividsolutions.jts.geom.Geometry |
currentGeometry
|
private java.util.ArrayList |
geometries
|
private com.vividsolutions.jts.geom.LinearRing[] |
linearRingBuffer
|
private int |
linearRingPointer
|
private com.vividsolutions.jts.geom.LineString[] |
lineStringBuffer
|
private int |
lineStringPointer
|
protected static org.apache.log4j.Logger |
log
|
private com.vividsolutions.jts.geom.Point[] |
pointBuffer
Stores a array of Point objects. |
private int |
pointPointer
Points to the next free slot in the pointPointer. |
private com.vividsolutions.jts.geom.Polygon[] |
polygonBuffer
|
private int |
polygonPointer
|
private com.vividsolutions.jts.geom.PrecisionModel |
precisionModel
|
private int |
srid
|
Constructor Summary | |
FastJTSFactory()
|
|
FastJTSFactory(com.vividsolutions.jts.geom.PrecisionModel pm)
|
Method Summary | |
void |
abortGeometryCollection()
|
void |
abortLinearRing()
|
void |
abortLineString()
|
void |
abortMultiLineString()
|
void |
abortMultiPoint()
|
void |
abortMultiPolygon()
|
void |
abortPoint()
|
void |
abortPolygon()
|
void |
abortUnit()
|
void |
abortWork()
|
boolean |
addPoints(double[] points)
|
boolean |
beginGeometryCollection(int count)
|
boolean |
beginLinearRing(int count)
|
boolean |
beginLineString(int count)
|
boolean |
beginMultiLineString(int count)
|
boolean |
beginMultiPoint(int count)
Constructs a new array of Points with the supplied number of elements. |
boolean |
beginMultiPolygon(int count)
|
boolean |
beginPoint()
|
boolean |
beginPolygon(int count)
|
void |
beginUnit(java.lang.String[] words,
int[] values)
|
void |
beginWork()
|
boolean |
endGeometryCollection()
|
boolean |
endLinearRing()
|
boolean |
endLineString()
|
boolean |
endMultiLineString()
|
boolean |
endMultiPoint()
Constructs a MultiPoint using the current buffer of Points, resets the Points buffer and defines the new MultiPoint as the currentGeometry. |
boolean |
endMultiPolygon()
|
boolean |
endPoint()
Constructs a Point using the current buffer of Coordinates, resets the Coordinates buffer, add the Point to the PointBuffer and defines the new Point as the currentGeometry. |
boolean |
endPolygon()
|
void |
endUnit()
|
void |
endWork()
|
java.util.ArrayList |
getGeometries()
Returns the geometries. |
com.vividsolutions.jts.geom.PrecisionModel |
getPrecisionModel()
Returns the precisionModel. |
int |
getSrid()
Returns the srid. |
void |
setPrecisionModel(com.vividsolutions.jts.geom.PrecisionModel precisionModel)
Sets the precisionModel. |
private void |
setSrid(int srid)
Sets the srid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger log
private com.vividsolutions.jts.geom.PrecisionModel precisionModel
private com.vividsolutions.jts.geom.Coordinate[] coordinatesBuffer
private com.vividsolutions.jts.geom.LineString[] lineStringBuffer
private com.vividsolutions.jts.geom.Polygon[] polygonBuffer
private com.vividsolutions.jts.geom.LinearRing[] linearRingBuffer
private com.vividsolutions.jts.geom.Point[] pointBuffer
private volatile int lineStringPointer
private volatile int polygonPointer
private volatile int linearRingPointer
private volatile int pointPointer
private int srid
private final java.util.ArrayList geometries
private com.vividsolutions.jts.geom.Geometry currentGeometry
Constructor Detail |
public FastJTSFactory()
public FastJTSFactory(com.vividsolutions.jts.geom.PrecisionModel pm)
Method Detail |
public final void beginWork()
WKBFactory.beginWork()
public final void endWork()
WKBFactory.endWork()
public final void abortWork()
WKBFactory.abortWork()
public final void beginUnit(java.lang.String[] words, int[] values)
org.wkb4j.engine.WKBFactory#beginUnit()
public final void endUnit()
WKBFactory.endUnit()
public final void abortUnit()
WKBFactory.abortUnit()
public final boolean beginGeometryCollection(int count)
org.wkb4j.engine.WKBFactory#beginGeometryCollection()
public final boolean endGeometryCollection()
WKBFactory.endGeometryCollection()
public final void abortGeometryCollection()
WKBFactory.abortGeometryCollection()
public final boolean beginLineString(int count)
org.wkb4j.engine.WKBFactory#beginLineString()
public final boolean endLineString()
WKBFactory.endLineString()
public final void abortLineString()
WKBFactory.abortLineString()
public final boolean beginPoint()
WKBFactory.beginPoint()
public final boolean endPoint()
WKBFactory.endPoint()
public final void abortPoint()
WKBFactory.abortPoint()
public final boolean beginMultiPoint(int count)
org.wkb4j.engine.WKBFactory#beginMultiPoint()
public final boolean endMultiPoint()
WKBFactory.endMultiPoint()
public final void abortMultiPoint()
WKBFactory.abortMultiPoint()
public final boolean beginMultiLineString(int count)
org.wkb4j.engine.WKBFactory#beginMultiLineString()
public final boolean endMultiLineString()
WKBFactory.endMultiLineString()
public final void abortMultiLineString()
WKBFactory.abortMultiLineString()
public final boolean beginMultiPolygon(int count)
org.wkb4j.engine.WKBFactory#beginMultiPolygon()
public final boolean endMultiPolygon()
WKBFactory.endMultiPolygon()
public final void abortMultiPolygon()
WKBFactory.abortMultiPolygon()
public final boolean beginPolygon(int count)
org.wkb4j.engine.WKBFactory#beginPolygon()
public final boolean endPolygon()
WKBFactory.endPolygon()
public final void abortPolygon()
WKBFactory.abortPolygon()
public final boolean beginLinearRing(int count)
org.wkb4j.engine.WKBFactory#beginLinearRing()
public final boolean endLinearRing()
WKBFactory.endLinearRing()
public final void abortLinearRing()
WKBFactory.abortLinearRing()
public final boolean addPoints(double[] points)
WKBFactory.addPoints(double[])
public final com.vividsolutions.jts.geom.PrecisionModel getPrecisionModel()
public final void setPrecisionModel(com.vividsolutions.jts.geom.PrecisionModel precisionModel)
precisionModel
- The precisionModel to setpublic final java.util.ArrayList getGeometries()
public final int getSrid()
private void setSrid(int srid)
srid
- The srid to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |