-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support for ESRI ProtocolBuffer format #38
Comments
There are not currently any plans for supporting the pbf format, however, I think that would be incredibly useful. We would certainly be open to any pull requests that would implement this functionality. I would be interested in taking a stab at it, but I don't know when I would find the time to do so. @philnagel would you have any interest in helping with this as well? I definitely think this would be great feature to support. |
I agree, this would be a great addition to this package. I do not have any experience with ESRI's PBF format. Although I was able to compile a basic parser based on ESRI's published spec for this, it did not seem like everything was necessarily working as smoothly as it should. |
I don't have any experience with protobuf either, but I had a little play and was able to decode some FeatureCollections The geometries are structurally quite different and require decoding from a quantized form & scaling to return coordinates in the query CRS
Docs are pretty thin but I found some helpful notes in this issue and will have a crack at decoding the PBF back to a typical geometry |
Each coordinate pair is relative to the pair preceding it within groups of
For output:
Where
Once unpacked the coordinates need to be scaled & translated:
There's a bit of work to implement all of the various ESRI geometry types but writing a parser which returns functionally equivalent objects to Edit: There's a partial JS implementation of just that here: https://github.com/rowanwins/arcgis-pbf-parser |
This library is a dream to work with, thanks for making this available.
I was wondering if there is any plan to support ESRI's PBF format to provide an option other than JSON for the underlying data retrieval (or interest in a PR for this)?
Some ArcGIS REST endpoints seem to have issues (consistent HTTP 500 errors) generating JSON/geoJSON for very large features but seem capable of returning these features in the more efficient PBF format. For example, some features in this layer are not possible to reliably retrieve using JSON.
The text was updated successfully, but these errors were encountered: