Category Archives: ArcGis

Arcgis server proxy

ArcGIS Server Proxy – using proxy page

ArcGIS Server Proxy

Server side code that runs on application server. It intercepts traffic between ArcGIS web application client and ArcGIS server.

Why ArcGIS Server Proxy ?

  • Browser limit of URL length for GET requests (JavaScript API)
  • To use token based authentication
  • Put Business Logic in Proxy, logging etc.
  • Hide ArcGIS server details from client ( IP Address, rest interface)

How to use ArcGIS Server Proxy in web application?

  • Define the location of proxy in client application. ( object of esri/config module)
  • = "<url_to_proxy>" = false;
  • Can also set proxy-rule – If the request URL matches a rule, then the request will be routed through the proxy (object of esri/urlUtils module)
              urlPrefix: "",
              proxyUrl: "<url_to_proxy>"

What ArcGIS Server Proxy ideally should not to use for?

  • De-serialize requests of images (MapCache, dynamic layers)
  • The geometry, since it will impact performance. Get & pass a String directly.


ArcGIS ArcPy Mapping Module – Python Scripting in ArcGIS Server | arcpy.mapping

ArcGIS ArcPy

The ArcPy Mapping module is a Python scripting library that provides access to the contents of map documents (.mxd) and layer files (.lyr). With arcpy.mapping, you can create scripts that can reference map documents and layers; query and alter their properties; and print, export, or save the modified document.




It is an interface that simplifies interactions between GIS applications (clients) and ArcGIS for Server services.

What is REST?

REpresentational State Transfer, or REST, is a way for software to work when distributed across a network. When software is being run across a network, a client sends a request to a server, the server processes the request, and then the server sends a response back to the client.

A RESTful application programming interface (API) is one that’s based on HTTP and the REST guidelines. By using the REST architecture, distributed applications gain the following benefits.

  • Consistency: Clients and servers know what to expect when working in a RESTful architecture because resource names and request/response syntax follow a consistent structure.
  • Readability: REST uses formats that are easy for both people and search engines to read.
  • Efficiency: RESTful communications are compact and take advantage of cached content to reduce bandwidth requirements and wait times.

ArcGIS Rest Service example:

Anatomy of a RESTful URL

Anatomy of ArcGIS REST url


ArcGIS Request


ArcGis for Developers | ArcGis Javascript Api | Mapping Platform | References | Videos | Tutorials | Guides

ArcGis Javascript Api for Developers:


Free Training Sessions


Quick Links: