koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Fix OBJECTID assignment when idField not requested in outFields #74

Closed rgwozdz closed 6 years ago

rgwozdz commented 6 years ago

Use feature[idField] for OBJECTID assignment instead of result.attributes[idField]. This protects against the case where idField has been omitted by query but is needed for the OBJECTID. Add test to cover this circumstance.