English

Problem: Web browser hangs when setting the projection string for the OCS parameter in the REST URL

Description

Web browser hangs when setting the projection string for the OCS parameter in the REST URL.

Cause

If a projection string is used for the OCS parameter, then double quotes prevent the map from being rendered in the browser.

Solution or Workaround

Replace double quotes with %22 in the projection string before sending the request.

For example, for a projection string such as:

PROJCS["Anguilla_1957_British_West_Indies_Grid",GEOGCS["GCS_Anguilla_1957",DATUM["D_Anguilla_1957",SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",400000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-62.0],PARAMETER["Scale_Factor",0.9995],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

Replace all " with %22:
PROJCS[%22Anguilla_1957_British_West_Indies_Grid%22,GEOGCS[%22GCS_Anguilla_1957%22,DATUM[%22D_Anguilla_1957%22,SPHEROID[%22Clarke_1880_RGS%22,6378249.145,293.465]],PRIMEM[%22Greenwich%22,0.0],UNIT[%22Degree%22,0.0174532925199433]],PROJECTION[%22Transverse_Mercator%22],PARAMETER[%22False_Easting%22,400000.0],PARAMETER[%22False_Northing%22,0.0],PARAMETER[%22Central_Meridian%22,-62.0],PARAMETER[%22Scale_Factor%22,0.9995],PARAMETER[%22Latitude_Of_Origin%22,0.0],UNIT[%22Meter%22,1.0]]


See REST v2006.1 mapping projections or REST v2006 mapping projections for information on the OCS parameter.

See Projected coordinates listed by ID for a list of projection strings.