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

Parameter returnDistinctValues doesn't work #244

Open
mcasamayorpolo opened this issue Sep 12, 2022 · 1 comment
Open

Parameter returnDistinctValues doesn't work #244

mcasamayorpolo opened this issue Sep 12, 2022 · 1 comment

Comments

@mcasamayorpolo
Copy link

There is an issue with the parameter returnDistinctValues:true. If I make a query with the following parameters:

  • where: 1=1
  • returnGeometry: false
  • spatialRel: esriSpatialRelIntersects
  • outFields: city
  • returnDistinctValues: true
  • orderByFields: city
  • outSR: 102100
  • resultOffset: 0
  • resultRecordCount: 1000

The result of the query is the following:

image

As you can see the parameter returnDistinctValues doesn't work. How can I fix this issue?

Thank you in advance for your help. :)

@rgwozdz
Copy link
Member

rgwozdz commented Sep 12, 2022

As far as I know, FeatureServer doesn't currently support this parameter. You'd have to design a solution to pass the parameter on to the Winnow dependency, then PR Winnow change to convert the parameter to the appropriate SQL query against the geojson. Winnow uses AlaSQL, which does appear to support DISTINCT: https://github.com/AlaSQL/alasql/wiki/Distinct.

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

No branches or pull requests

2 participants