|
std::int64_t y = y_val->IntegerValue(); |
|
if (y < 0) { |
|
return utils::CallbackError("'y' value must not be less than zero", callback); |
|
} |
|
|
|
// in-place construction |
|
std::unique_ptr<TileObject> tile{new TileObject{static_cast<std::uint32_t>(z), |
|
static_cast<std::uint32_t>(x), |
|
static_cast<std::uint32_t>(y), |
|
buffer}}; |
Looks untidy ^. Why not using int32Value() and store z,x,y as signed int ?
/cc @mapsam
vtquery/src/vtquery.cpp
Lines 505 to 514 in 80d6515
Looks untidy ^. Why not using
int32Value()and store z,x,y as signed int ?/cc @mapsam