Package org.locationtech.spatial4j.io
Class PolyshapeWriter.Encoder
- java.lang.Object
-
- org.locationtech.spatial4j.io.PolyshapeWriter.Encoder
-
- Enclosing class:
- PolyshapeWriter
public static class PolyshapeWriter.Encoder extends Object
Encodes a sequence of LatLngs into an encoded path string. from Apache 2.0 licensed: https://github.com/googlemaps/android-maps-utils/blob/master/library/src/com/google/maps/android/PolyUtil.java
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
seperator()
void
startRing()
void
write(char event)
void
write(double latitude, double longitude)
void
writeArg(double value)
-
-
-
Constructor Detail
-
Encoder
public Encoder(Writer writer)
-
-
Method Detail
-
seperator
public void seperator() throws IOException
- Throws:
IOException
-
startRing
public void startRing() throws IOException
- Throws:
IOException
-
write
public void write(char event) throws IOException
- Throws:
IOException
-
writeArg
public void writeArg(double value) throws IOException
- Throws:
IOException
-
write
public void write(double latitude, double longitude) throws IOException
- Throws:
IOException
-
-