GeometryBuffer: add removeLastPoint (#702)
This commit is contained in:
@@ -256,7 +256,7 @@ public class TileDecoder implements ITileDecoder {
|
||||
|
||||
ring++;
|
||||
parseCoordSequence(jp);
|
||||
removeLastPoint();
|
||||
mMapElement.removeLastPoint();
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -265,11 +265,6 @@ public class TileDecoder implements ITileDecoder {
|
||||
}
|
||||
}
|
||||
|
||||
private void removeLastPoint() {
|
||||
mMapElement.pointNextPos -= 2;
|
||||
mMapElement.index[mMapElement.indexCurrentPos] -= 2;
|
||||
}
|
||||
|
||||
private void parseLineString(JsonParser jp) throws IOException {
|
||||
mMapElement.startLine();
|
||||
parseCoordSequence(jp);
|
||||
|
||||
Reference in New Issue
Block a user