Class JtsPolyshapeWriter
java.lang.Object
org.locationtech.spatial4j.io.PolyshapeWriter
org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
- All Implemented Interfaces:
ShapeIO, ShapeWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class PolyshapeWriter
PolyshapeWriter.Encoder -
Field Summary
FieldsFields inherited from class PolyshapeWriter
KEY_ARG_END, KEY_ARG_START, KEY_BOX, KEY_CIRCLE, KEY_LINE, KEY_MULTIPOINT, KEY_POINT, KEY_POLYGON, KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwrite(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Coordinate[] coord) protected voidwrite(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.CoordinateSequence coordseq) voidwrite(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Geometry geom) protected voidwrite(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Polygon p) voidwrite(PolyshapeWriter.Encoder enc, Shape shape) Methods inherited from class PolyshapeWriter
getFormatName, toString, write
-
Field Details
-
ctx
-
-
Constructor Details
-
JtsPolyshapeWriter
-
-
Method Details
-
write
protected void write(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.CoordinateSequence coordseq) throws IOException - Throws:
IOException
-
write
protected void write(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Coordinate[] coord) throws IOException - Throws:
IOException
-
write
protected void write(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Polygon p) throws IOException - Throws:
IOException
-
write
public void write(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Geometry geom) throws IOException - Throws:
IOException
-
write
- Overrides:
writein classPolyshapeWriter- Throws:
IOException
-