public class PolyshapeWriter extends Object implements ShapeWriter
PolyshapeReader
Modifier and Type | Class and Description |
---|---|
static class |
PolyshapeWriter.Encoder
Encodes a sequence of LatLngs into an encoded path string.
|
Modifier and Type | Field and Description |
---|---|
static char |
KEY_ARG_END |
static char |
KEY_ARG_START |
static char |
KEY_BOX |
static char |
KEY_CIRCLE |
static char |
KEY_LINE |
static char |
KEY_MULTIPOINT |
static char |
KEY_POINT |
static char |
KEY_POLYGON |
static char |
KEY_SEPERATOR |
Constructor and Description |
---|
PolyshapeWriter(SpatialContext ctx,
SpatialContextFactory factory) |
Modifier and Type | Method and Description |
---|---|
String |
getFormatName() |
String |
toString(Shape shape)
Write a shape to String
|
void |
write(PolyshapeWriter.Encoder enc,
Shape shape) |
void |
write(Writer output,
Shape shape)
Write a shape to the output writer
|
public static final char KEY_POINT
public static final char KEY_LINE
public static final char KEY_POLYGON
public static final char KEY_MULTIPOINT
public static final char KEY_CIRCLE
public static final char KEY_BOX
public static final char KEY_ARG_START
public static final char KEY_ARG_END
public static final char KEY_SEPERATOR
public PolyshapeWriter(SpatialContext ctx, SpatialContextFactory factory)
public String getFormatName()
getFormatName
in interface ShapeIO
public void write(Writer output, Shape shape) throws IOException
ShapeWriter
write
in interface ShapeWriter
IOException
public void write(PolyshapeWriter.Encoder enc, Shape shape) throws IOException
IOException
public String toString(Shape shape)
ShapeWriter
toString
in interface ShapeWriter
Copyright © 2020 LocationTech. All rights reserved.