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.

f=geojson not returning geojson for queryFeatures

See original GitHub issue

I saw this https://github.com/Esri/arcgis-rest-js/commit/79bc776ca91ddca4685eef2cf4c8d1ed2f4a4117, but i’m not able to return geojson using the example in the docs:

require("isomorphic-fetch");
require("isomorphic-form-data");

const {queryFeatures} = require('@esri/arcgis-rest-feature-layer');

queryFeatures({
  url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3",
  where: "STATE_NAME = 'Alaska'",
  f: 'geojson',
}).then(result => {
    // result is still in arcgis json
    console.log(result);
});

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jgravoiscommented, Jun 19, 2019

the fix for this should be as easy as adding f to IQueryFeaturesOptions and the array of whitelisted custom params here.

and @COV-GIS is right. PRs are always welcome. 😄

0reactions
tomwaysoncommented, Jul 3, 2019

@dkuida those were added in #592 and will be released soon along w/ #589

Read more comments on GitHub >

github_iconTop Results From Across the Web

GeoJSON attributes are undefined - Esri Community
I have a geojson url that I am able to see features on the map. I can use a definition query towards it,...
Read more >
GeoJSONLayer | ArcGIS Maps SDK for JavaScript 4.25
Returns true if the layer is loaded from a non-spatial table in a service. Non-spatial geojson tables do not have geometry object that...
Read more >
ArcGIS Server JSON to GeoJSON does not always work
1 Answer 1 · GDAL/OGR cannot process GeoJSON results containing UNICODE characters (\uABCD style) · ArcGIS limits the amount of objects returned per...
Read more >
Edit GeoJSON with the ArcGIS API for JavaScript - odoenet
If you didn't know, the GeoJSONLayer takes a URL to a GeoJSON file and loads it in the API. Not only that, but...
Read more >
25. GeoMesa GeoJSON — GeoMesa 3.5.0 Manuals
The GeoJSON API does not use GeoTools - all data and operations are pure JSON. ... the keys define the element in the...
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