Package org.locationtech.spatial4j.io
Class PolyshapeWriter
java.lang.Object
org.locationtech.spatial4j.io.PolyshapeWriter
- All Implemented Interfaces:
ShapeIO,ShapeWriter
- Direct Known Subclasses:
JtsPolyshapeWriter
Wrap the 'Encoded Polyline Algorithm Format' defined in:
Google Maps API
with flags to encode various Shapes: Point, Line, Polygon, etc
For more details, see FORMATS.md
This format works well for geographic shapes (-180...+180 / -90...+90), but is not appropriate for other coordinate systems
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEncodes a sequence of LatLngs into an encoded path string. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final charstatic final char -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEY_POINT
public static final char KEY_POINT- See Also:
-
KEY_LINE
public static final char KEY_LINE- See Also:
-
KEY_POLYGON
public static final char KEY_POLYGON- See Also:
-
KEY_MULTIPOINT
public static final char KEY_MULTIPOINT- See Also:
-
KEY_CIRCLE
public static final char KEY_CIRCLE- See Also:
-
KEY_BOX
public static final char KEY_BOX- See Also:
-
KEY_ARG_START
public static final char KEY_ARG_START- See Also:
-
KEY_ARG_END
public static final char KEY_ARG_END- See Also:
-
KEY_SEPERATOR
public static final char KEY_SEPERATOR- See Also:
-
-
Constructor Details
-
PolyshapeWriter
-
-
Method Details
-
getFormatName
- Specified by:
getFormatNamein interfaceShapeIO- Returns:
- the format name
-
write
Description copied from interface:ShapeWriterWrite a shape to the output writer- Specified by:
writein interfaceShapeWriter- Throws:
IOException
-
write
- Throws:
IOException
-
toString
Description copied from interface:ShapeWriterWrite a shape to String- Specified by:
toStringin interfaceShapeWriter
-