Class JtsPolyshapeWriter
- java.lang.Object
-
- org.locationtech.spatial4j.io.PolyshapeWriter
-
- org.locationtech.spatial4j.io.jts.JtsPolyshapeWriter
-
- All Implemented Interfaces:
ShapeIO
,ShapeWriter
public class JtsPolyshapeWriter extends PolyshapeWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.spatial4j.io.PolyshapeWriter
PolyshapeWriter.Encoder
-
-
Field Summary
Fields Modifier and Type Field Description protected JtsSpatialContext
ctx
-
Fields 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 Constructor Description JtsPolyshapeWriter(JtsSpatialContext ctx, SpatialContextFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
ctx
protected final JtsSpatialContext ctx
-
-
Constructor Detail
-
JtsPolyshapeWriter
public JtsPolyshapeWriter(JtsSpatialContext ctx, SpatialContextFactory factory)
-
-
Method Detail
-
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
public void write(PolyshapeWriter.Encoder enc, Shape shape) throws IOException
- Overrides:
write
in classPolyshapeWriter
- Throws:
IOException
-
-