mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-06-09 19:11:39 +00:00
Only movetos and linetos have elevations, not closepaths
This commit is contained in:
parent
6315009cc1
commit
c3d06f8931
2
mvt.cpp
2
mvt.cpp
@ -468,6 +468,7 @@ bool mvt_tile::decode(std::string &message, bool &was_compressed) {
|
|||||||
std::vector<long> &elevations = layer.features[i].elevations;
|
std::vector<long> &elevations = layer.features[i].elevations;
|
||||||
if (elevations.size() != 0) {
|
if (elevations.size() != 0) {
|
||||||
for (size_t j = 0; j < geom.size(); j++) {
|
for (size_t j = 0; j < geom.size(); j++) {
|
||||||
|
if (geom[j].op == mvt_moveto || geom[j].op == mvt_lineto) {
|
||||||
if (off < elevations.size()) {
|
if (off < elevations.size()) {
|
||||||
double el;
|
double el;
|
||||||
|
|
||||||
@ -483,6 +484,7 @@ bool mvt_tile::decode(std::string &message, bool &was_compressed) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
elevations.clear();
|
elevations.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user