Problem using rasterFunction Clip with print service (Export Web Map Task)

3695
3
Jump to solution
12-18-2015 05:09 AM
ArneDahlman
New Contributor III

Hello!

I Think I have found a bug in ArcGIS Server 10.3.1.

I am trying to use the rasterFunction Clip in a request to the print service (Export Web Map Task).
Everything work as expected for small clipping geometries. When the clipping geometry is bigger, no clipping is performed (blank result).
It seems that this has something to do with the size of the request rather than the size of the area.

Here is an example. I use one single polygon. The clipping polygon and the polygon in the graphicslayer are both identical. All services is non-public, so you cannot execute the requests yourself.

The failing HTTP-request:
https://dl.dropboxusercontent.com/u/50166018/clip_bug/original_POST_request.txt
Resulting image with blank clip:
https://dl.dropboxusercontent.com/u/50166018/clip_bug/original_POST_response_image.png

The print service returns no errors. In the ArcGIS Manager Log I can find the following logging for the print service:
https://dl.dropboxusercontent.com/u/50166018/clip_bug/ArcGISServer_log.PNG
There is no logging for the ImageService.

If I instead use the same polygon, but first round the coordinates down to zero decimals (Spatial reference SWEREF99TM, first decimal position equals 0.1 meter), then the request works fine. Everything in the request except the polygon is exactly the same as in the previous request. When omitting the decimals, the request body gets shorter.
Modified working request:
https://dl.dropboxusercontent.com/u/50166018/clip_bug/modified_POST_request.txt
Resulting image:
https://dl.dropboxusercontent.com/u/50166018/clip_bug/modified_POST_response_image.png

This is unfortunately no workaround. If want to print a bigger polygon the problem is not solved by reducing precision. I think the length of the json-polygon string is the problem here.

Any Ideas? Is this a known bug? How to report?

Thanks
Arne Dahlman

0 Kudos
1 Solution

Accepted Solutions
ArneDahlman
New Contributor III

Now there is a bug registered:

[BUG-000097216: When using a Clip rasterFunction in an
Export Web Map Task where the ring geometry is in a Spatial Reference of 3006
the image is not part of the output if the ring geometry is over a certain
character limit.]

View solution in original post

3 Replies
AndrewValenski
New Contributor II

Hello Arne,

I have a few questions so I can better understand the problem.

1. What version of AGS are you consuming?

2. Are these data hosted on AGS?

3. Where is the data coming from (fgdb, SQL, Oracle, Registered folders, saved to server, etc)?

4. When executing the task, are they using a GET or POST request?

5. Is this is a custom print service?

Thanks in advance, Arne!

-Andrew

0 Kudos
ArneDahlman
New Contributor III

Hi Andrew! Thank you for your reply.

1. I have tried this in both 10.3.1 and 10.4. No difference.
2. Yes. I am trying to make a clip using a ImageServer service hosted on AGS.
3. Mosaic dataset saved in a file geodatabase.
4. POST
5. I have tried using both a custom print service and the standard print service. Same result in both cases.

I have now also reported this issue to ESRI support in Sweden.

/Arne

0 Kudos
ArneDahlman
New Contributor III

Now there is a bug registered:

[BUG-000097216: When using a Clip rasterFunction in an
Export Web Map Task where the ring geometry is in a Spatial Reference of 3006
the image is not part of the output if the ring geometry is over a certain
character limit.]