koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

OBJECTID queries #114

Closed rgwozdz closed 5 years ago

rgwozdz commented 5 years ago

In cases where providers do not define an idField and koop generates the OBJECTID property by default, requests with where parameters that include the OBJECTID will return zero features. This happens because the alasql library applies the WHERE clause to the data before the esriFy function that creates the OBJECTID. Since OBJECTIDs don't exist at that point, zero features are selected.

When no idField is set, and the where includes OBJECTID we need to strip that part of the where before it heads off to alasql.