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 JtsSpatialContextctx-
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 voidwrite(PolyshapeWriter.Encoder output, Coordinate[] coord)protected voidwrite(PolyshapeWriter.Encoder output, CoordinateSequence coordseq)voidwrite(PolyshapeWriter.Encoder output, Geometry geom)protected voidwrite(PolyshapeWriter.Encoder output, Polygon p)voidwrite(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, CoordinateSequence coordseq) throws IOException
- Throws:
IOException
-
write
protected void write(PolyshapeWriter.Encoder output, Coordinate[] coord) throws IOException
- Throws:
IOException
-
write
protected void write(PolyshapeWriter.Encoder output, Polygon p) throws IOException
- Throws:
IOException
-
write
public void write(PolyshapeWriter.Encoder output, Geometry geom) throws IOException
- Throws:
IOException
-
write
public void write(PolyshapeWriter.Encoder enc, Shape shape) throws IOException
- Overrides:
writein classPolyshapeWriter- Throws:
IOException
-
-