Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I Cannot decode geobuf with COORD_PRECISION different from 6 #126

Open
valluzzi opened this issue Mar 18, 2022 · 0 comments
Open

I Cannot decode geobuf with COORD_PRECISION different from 6 #126

valluzzi opened this issue Mar 18, 2022 · 0 comments

Comments

@valluzzi
Copy link

I'm using python geobuf for encoding and javascript geobuf for decoding.
All goes well while the coordinates decimal precision is unchanged and while features are encoded in EPSG:4326 (WGS84) where numbers are tiny ( < 180)

Using other reference systems like EPSG:32632 where numbers are bigger (like 4000000) pygeobuf crashes because with precision =6 it goes in number overflow. (but this is a pygeobuf problem). So I have to change precision in encoding to avoid crash and also to be more performant. Unfortunately in javascript geobuf, I have no options to do this. For sure, I can modify the source code but this is not the right way to do things also because I using npm to install it. I think a "precision argument" could be added in encoding like py geobuff.
In my opinion this information could be added in geobuf protocol to avoid the decoder to knows in advance. But this is another story.
Thankyou! I love geobuf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant