What is the official ESRI solution for serving static map images (i.e. Png, jpg, etc.)?

I need to write a map service that returns a single static image of a map (png, jpg, etc.). In the old days (i.e., before Google Maps took off), this was the default since server software such as ArcIMS worked. Now these packages by default serve services with broken cards, which are usually the appropriate solution in most cases. However, in this case, my requirements are to return a single image that can be accessed at the URL.

I know that the Google Maps solution is a static map API . This works great if you create a simple map, but my map will have a polygon and dot overlays and possibly add as markers and encoded polygons within 1024 char URLs.

I have access to ArcGIS Server and you can create a map service that includes the data above, but I cannot say what is the best way to get the service to return a single image. The only thing I found in ESRI's online help was the ability to add OGC Web Map Service (WMS) features to a mapping service. You can request a map as an image , but it seems to me a bit of a hack.

Does anyone know if there is a more / more official way?

+4
source share
2 answers

If I understand what you want to do right, you can use the ArcIIS Server RESI API to do this. Using the REST API, you can request a single image from the ArcGIS Server map service and specify the bounding box, image size, image file type and many other parameters - and you will return one image of this size, type, etc.

The map service may be the one you published on your ArcGIS Server (9.3 or later). A service can be cached or dynamically. You can also use ArcGIS Online services, even to understand this. So, for example, go to the following URL:

http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer

In the "Supported Operations" section at the bottom of the page, go to "Export Map". Enter the size in the "Image Size" text box (for example, 1200, 1200) along with any other parameters and click "Export Image".

You can feel the acutal URL arguments by looking at the resulting URL for your request. Here you can get information about the parameters (for example, for the export operation): http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/export.html

Now you mentioned the creation of a web service, so for this you can programmatically just click directly on the REST API. Or, you might want to create your own service as a wrapper around these REST API calls.

Hope this helps, and I understood your question correctly.

+7
source

I just created:

Cheers, RaΓΊl

+1
source

Source: https://habr.com/ru/post/1346814/


All Articles