Closed kymok closed 1 year ago
Thanks for reporting. Your guess about the integer overflow was correct and I fixed it in citygml4j. Please use the edge
Docker image (instead of latest
) for testing the fix.
I've tested the conversion and now it seems to be working correctly. Thank you for your quick response!
Good to hear, thanks. Closing this issue now. Feel free to re-open if this issue still exists.
Problem
citygml-tools
does not convert to CityJSON integer coordinate correctly.Steps to reproduce
Input file:
Convert command:
This command gives following result.
As per CityJSON spec, input should be equal to output coordinates * scale + translate. However, it's not the case here.
Output coords * scale - input coords gives following result. Seems like an integer overflow problem because 2.14748365e+9 is the integer max.