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 org.locationtech.spatial4j.io.PolyshapeWriter
PolyshapeWriter.Encoder
-
Field Summary
FieldsFields inherited from class org.locationtech.spatial4j.io.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 void
write
(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Coordinate[] coord) protected void
write
(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.CoordinateSequence coordseq) void
write
(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Geometry geom) protected void
write
(PolyshapeWriter.Encoder output, org.locationtech.jts.geom.Polygon p) void
write
(PolyshapeWriter.Encoder enc, Shape shape) Methods inherited from class org.locationtech.spatial4j.io.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:
write
in classPolyshapeWriter
- Throws:
IOException
-