Leaflet gpTask: The coordinates or measures are out of bounds. - env:outSR problem?

746
2
10-04-2017 06:39 AM
A_S_
by
New Contributor II

Hello, I'm having problems with my geoprocess "SelectLayerByAttribute". It always works for the first selection, but fails for second, third, or fourth one (don't know on what the behaviour depends) with the following error message The coordinates or measures are out of bounds.

I set up the output spatial reference system with 

gpTask.setParam('env:outSR', 4326)

like it was discussed in my former question: Different spatial reference issue with Geoprocessing in leaflet

because all my Server data is in ETRS_1989 and my Leaflet web map based on EPSG 4326.

I've found the same discussed problem here: coordinate system - Geoprocessing return not showing on map? - Geographic Information Systems Stack ... 

but the suggested solution not using the above code snippet and transforming all server data to EPSG 4326 is not the best solution for me.

 

Is there another possible way preventing the error?

0 Kudos
2 Replies
JohnGravois
Frequent Contributor

as i mentioned last time, if you can publish a simplified public GP service (perhaps with dummy data) and share the exact steps required to reproduce the error, it'd be really helpful.

0 Kudos
A_S_
by
New Contributor II

As mentioned also before I'm not allowed publishing a public GP service.

At the moment I'm using the following workaround:

GP service with paramter settings this.task.setParam('env:outSR', 102329);

and than transformation of my data into EPSG:4326 with project "proj4leaflet.js" from Github.

0 Kudos