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