question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for PBF response from Feature Service?

See original GitHub issue

In the docs for arcgis-rest-feature-layer it says that the f parameter can take a value of "pbf" to return protobuf, but that this requires the use of rawResponse: true, and that you have to parse the resulting binary yourself. This community discussion thread from last year has people asking for the corresponding protocol description file (.proto) but it doesn’t sound like it’s been released.

I haven’t worked with protobuf extensively but my understanding was that you start with a schema in .proto format, pass it to a code generator like this one, then it gives you a helper class that can deserialize messages at runtime. Without knowing the format, I don’t think the guidance to “parse it yourself” is actually possible.

Can Esri either add native support for the pbf transport to arcgis-rest-feature-layer, or at least release an official schema file so we can parse the response ourselves?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jbartleycommented, May 8, 2020

@thw0rted plan is to release this on github like you describe. Will ping you once we have it out.

2reactions
jbartleycommented, Mar 25, 2021

@thw0rted we finally got it out. Sorry it took so long.

https://github.com/Esri/arcgis-pbf

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: Properly change the format of queries - Esri Community
1) > Feature Service's > Layer config params, such as SupportedQueryFormats: JSON, GeoJSON, PBF. It looks like PBF is preferred to be used...
Read more >
Query (Feature Service/Layer)—ArcGIS REST APIs
Feature services now support the protocol buffer (pbf) query format. This format is supported on feature service layers published from ArcGIS Pro that...
Read more >
Converting ArcGIS / ESRI PBF to GeoJSON
The PBF format is supported by some feature service operations in ArcGIS Enterprise 10.7 as well as hosted feature layers in ArcGIS Online....
Read more >
arcgis-pbf-parser - npm
The decode method returns an object containing the featureCollection, and a boolean specifying if there were too many features and so you need ......
Read more >
WMS Server — MapServer 8.0.0 documentation
Major features related to the WMS 1.3.0 support ... WFS, and WCS in MapServer (in that order) until one of the services respond...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found