Thursday 24 September 2015

rest - What are the consequences of setting the SupportedImageReturnTypes to MIME in ArcGIS Server


I am currently exploring using the ExportMap function on the rest endpoint of a Cached Map Service.( I want to export only some layer within a Mapservice).


I have found that if you change the SupportedImageReturnTypes to MIME of a mxd based mapservice, you can export sublayers of a cached mapservice. (As an aside, you can't do this, if it is a msd based mapservice; even if you change SupportedImageReturnTypes from MIME+url to MIME, the exported image has all the layers. I think it directly returns the cached image.)


The ArcGIS Server help mentions that this setting




...Specifies whether images will be returned as MIME data or written to disk (MIME + URL). If you choose URL, you must have a server directory specified for the configuration.



I have tested this out and saw that if the setting was set to MIME+url, then a single temp png file is created in the output director, but it changes as the user pans the map & is deleted within a few seconds.


This is different from the cache, which remains on disk.


I am wondering if it is a good idea to set the setting to MIME, or would it have some consequence on performance.


Does anyone have any experience with this setting?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...