I am testing koop.js to use some custom data (basically geojson source) in ArcGIS Pro through koop.js.
So far it is working pretty great. Thanks.
I ran into one problem which is
"When the spatial reference is other than 4326, it seems reprojection in koop.js seems to be failing."
The symptoms
It looks like ArcGIS Pro send the request to koop.js with the following info.
(This is California State Plane III but the SR does not matter it seems to happen with all the SRs)
WARNING: [object Object] is not a valid spatial reference; defaulting to none
WARNING: spatial reference "[object Object]" could not be normalized. Defaulting to EPSG:4326.
I am testing koop.js to use some custom data (basically geojson source) in ArcGIS Pro through koop.js. So far it is working pretty great. Thanks.
I ran into one problem which is "When the spatial reference is other than 4326, it seems reprojection in koop.js seems to be failing."
The symptoms
It looks like ArcGIS Pro send the request to koop.js with the following info. (This is California State Plane III but the SR does not matter it seems to happen with all the SRs)
The with WARNINGS as follows.
Possible cause and solution
Quick debug seems to indicate that only the validation seems to be failing. https://github.com/koopjs/winnow/blob/master/lib/normalize-query-options/spatial-reference.js#L19
It seems only the validation is failing. The projection works perfectly, if simply the validation is bypassed or the input is stringified.
Joi validation may have to updated or the input has to be serialized?
Thanks.