|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WKBFactory
must be implemented by any class wishing to serve as a factory
for geometric objects. When an object implements this interface, it can be submitted
to the WKBParser
and it will call thoses methods with the correct values.
The author of each factory is completly free to implement any behavior, including ignoring some calls.
wkbByteOrders and wkbTypes values don't generate events because there is no point in doing so.
Similarly, there is no way to pass a generic Geometry. MultiPoints, WKBPoints and Points are colapsed in a double array.
It is the responsability of the Factory to ensure that the stream of events actually represents a correct construction.
See AbstractWKBFactory for an implementation of a "validating" WKBFactory.
Inspired by the SAX API.
Method Summary | |
void |
abortGeometryCollection()
Signals a malformed GeometryCollection . |
void |
abortLinearRing()
Signals a malformed LinearRing . |
void |
abortLineString()
Signals a malformed LineString . |
void |
abortMultiLineString()
Signals a malformed MultiLineString . |
void |
abortMultiPoint()
Signals a malformed MultiPoint . |
void |
abortMultiPolygon()
Signals a malformed MultiPolygon . |
void |
abortPoint()
Signals a malformed Point . |
void |
abortPolygon()
Signals a malformed Polygon . |
void |
abortUnit()
Signals the problematic stop of the transcription process for a Geometry . |
void |
abortWork()
Signals the problematic stop of the transcription process for a buffer of WKB data. |
boolean |
addPoints(double[] points)
points is an array of doubles reprensentings coordinates. |
boolean |
beginGeometryCollection(int count)
Signals the beginning of a new GeometryCollection . |
boolean |
beginLinearRing(int count)
Signals the beginning of a new LinearRing . |
boolean |
beginLineString(int count)
Signals the beginning of a new LineString |
boolean |
beginMultiLineString(int count)
Signals the beginning of a new MultiLineString . |
boolean |
beginMultiPoint(int count)
Signals the beginning of a new MultiPoint . |
boolean |
beginMultiPolygon(int count)
Signals the beginning of a new MultiPolygon . |
boolean |
beginPoint()
Signals the beginning of a new Point |
boolean |
beginPolygon(int count)
Signals the beginning of a new Polygon . |
void |
beginUnit(int srid)
Signals the beginning of the transcription process for a Geometry .
|
void |
beginUnit(java.lang.String[] words,
int[] values)
Signals the beginning of the transcription process for a Geometry .
|
void |
beginWork()
Signals the beginning of the transcription process for a buffer of WKB data. |
boolean |
endGeometryCollection()
Signals the end of a GeometryCollection . |
boolean |
endLinearRing()
Signals the end of a LinearRing . |
boolean |
endLineString()
Signals the end of a LineString . |
boolean |
endMultiLineString()
Signals the end of a MultiLineString . |
boolean |
endMultiPoint()
Signals the end of a MultiPoint . |
boolean |
endMultiPolygon()
Signals the end of a MultiPolygon . |
boolean |
endPoint()
Signals the end of a Point . |
boolean |
endPolygon()
Signals the end of a Polygon . |
void |
endUnit()
Signals the end of the transcription process for a Geometry . |
void |
endWork()
Signals the end of the transcription process for a buffer of WKB data. |
boolean |
newGeometryCollectionComponent()
Signals that a new component for the geometry factory is about to processed OR that all components has been used. |
Method Detail |
public void beginWork()
public void endWork()
public void abortWork()
public void beginUnit(int srid)
Geometry
.
The submitted SRID will be assigned to all the Geometries contained in this Geometry
public void beginUnit(java.lang.String[] words, int[] values)
Geometry
.
The submitted values will be available to all the Geometries contained in this Geometry
public void endUnit()
Geometry
.
public void abortUnit()
Geometry
.
public boolean beginGeometryCollection(int count)
GeometryCollection
.
count
- the number of elements in the GeometryCollection
.public boolean endGeometryCollection()
GeometryCollection
.
public void abortGeometryCollection()
GeometryCollection
. This can happen at any time,
and Factories should just skip the malformed Geometry
and maybe escalate the error.
public boolean beginLineString(int count)
LineString
.
* @param count the number of elements in the LineString
public boolean endLineString()
LineString
.
public void abortLineString()
LineString
. This can happen at any time,
and Factories should just skip the malformed
public boolean beginMultiLineString(int count)
MultiLineString
.
count
- the number of elements in the MultiLineString
.public boolean endMultiLineString()
MultiLineString
.
public void abortMultiLineString()
MultiLineString
. This can happen at any time,
and Factories should just skip the malformed Geometry
and maybe escalate the error.
public boolean beginPoint()
Point
.
* @param count the number of elements in the Point
public boolean endPoint()
Point
.
public void abortPoint()
Point
. This can happen at any time,
and Factories should just skip the malformed
public boolean beginMultiPoint(int count)
MultiPoint
.
count
- the number of elements in the MultiPoint
.public boolean endMultiPoint()
MultiPoint
.
public void abortMultiPoint()
MultiPoint
. This can happen at any time,
and Factories should just skip the malformed Geometry
and maybe escalate the error.
public boolean beginMultiPolygon(int count)
MultiPolygon
.
count
- the number of elements in the MultiPolygon
.public boolean endMultiPolygon()
MultiPolygon
.
public void abortMultiPolygon()
MultiPolygon
. This can happen at any time,
and Factories should just skip the malformed Geometry
and maybe escalate the error.
public boolean beginPolygon(int count)
Polygon
.
count
- the number of elements in the Polygon
.public boolean endPolygon()
Polygon
.
public void abortPolygon()
Polygon
. This can happen at any time,
and Factories should just skip the malformed Geometry
and maybe escalate the error.
public boolean addPoints(double[] points)
public boolean beginLinearRing(int count)
LinearRing
.
count
- the number of elements in the LinearRing
.public boolean endLinearRing()
LinearRing
.
public void abortLinearRing()
LinearRing
. This can happen at any time,
and Factories should just skip the malformed Geometry
and maybe escalate the error.
public boolean newGeometryCollectionComponent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |