GeometryBuffer: add removeLastPoint (#702)

This commit is contained in:
Gustl22
2019-03-19 14:40:45 +01:00
committed by Emux
parent 4e37ae26c9
commit fb8e6dab20
5 changed files with 48 additions and 18 deletions

View File

@@ -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);