Defining a custom projection for a WMS service
In this topic
A well-known EPSG ID, for example EPSG:4326, is always necessary in WMS services to advertise supported spatial reference systems in WMS capabilities files, or to request maps in particular projections. However, many custom spatial reference systems are not actually associated with any official EPSG ID.
ArcGIS Server WMS services allow you to define a custom projection or well-known text (WKT) representation of a projection in a WMS service. This is particularly useful if your custom spatial reference systems are not associated with an official EPSG ID. For example, publishers and consumers of WMS services can:
- Assign IDs to custom projections and advertise them through the WMS capabilities file.
- Overwrite an existing projection with a WKT string.
- Request a map in a particular projection by directly specifying the well-known text.
Using the listCustomCRS property
To define and advertise custom spatial reference systems, you'll need to add the listCustomCRS property to your WMS service. You can only do this in the ArcGIS Server Administrator Directory. For full instructions on how to access the Administrator Directory and add this property, see Available WMS service properties.
Defining a default custom projection
To define a default custom projection for your WMS service, you can assign any EPSG ID to be the well-known ID of your custom projection by appending "EPSG:<ID>=DEFAULT" to the listCustomCRS property. For example:
In this example, EPSG:200001 has been assigned to be the well-known EPSG ID for the custom projection.
Defining a custom projection using WKT
To define a custom projection for your WMS service, you can assign any EPSG ID to a well-known text (WKT) string of your custom projection by appending "EPSG:<ID>=<custom projection WKT>" to the listCustomCRS property. The EPSG:<ID> will be advertised through the capabilities file of the WMS service. You can also use this approach to overwrite the definition of an existing projection.
In the following example, EPSG:200002 has been assigned to a custom projection represented by a WKT string and also overwrites the definition of EPSG:3857 using another WKT string:
Requesting a specific projection using WKT
The following example demonstrates how to request a map from a WMS service in a specific projection by defining the WKT representation of the projection in a GetMap request.
Sample GetMap request