If say an x coordinate occurs in wgs84 input data like 29256264171659283709034496.
Then when we go to encode the vector tile geometry the value will overflow here.
That number will become 6123998240749790580178944.000000 after being "reprojected" from longlat to mercator (becomes smaller and proj4 does not actually have any problem with the value since it is a double)
Then it becomes 97983971851996649282863104.000000 after being multiplied by the scaling_factor (usually 16)
Then flips to -9223372036854775808 after being cast to std::int64_t
If say an
x
coordinate occurs in wgs84 input data like29256264171659283709034496
.6123998240749790580178944.000000
after being "reprojected" from longlat to mercator (becomes smaller and proj4 does not actually have any problem with the value since it is a double)97983971851996649282863104.000000
after being multiplied by the scaling_factor (usually 16)-9223372036854775808
after being cast tostd::int64_t