- URL:
- https://<imageservice-url>/mapToImage
- Methods:
GET- Required Capability:
- Catalog
- Version Introduced:
- 11.2
Description
The map operation converts the geometry on a map space to an image space.
Request parameters
| Parameter | Details |
|---|---|
| Specifies the |
| The input geometry. The structure of the geometry is the same as the structure of the JSON geometry objects returned by the ArcGIS REST API. In addition to the JSON structures, for envelopes and points, you can specify the geometry with a comma-separated syntax. Syntax Examples |
| The type of geometry specified by the Values: |
(optional) | Supports a Syntax |
|
The response format. The default response format is Values: |
Example usage
The following is a sample request URL for the map operation that will convert a multipoint in the map space to the image space with a raster of 3:
https://myserver/ArcGIS/rest/services/BrewertonTank_cloud/ImageServer/mapToImage?geometry={"points":[[407323.19,4787427.54],[407323.19,4787478.54]]}&geometryType=esriGeometryMultipoint&inSR=&rasterId=3&f=htmlThe following is a sample request URL for the map operation that will convert a polygon in the map space to the image space with a raster of 2:
https://myserver/ArcGIS/rest/services/BrewertonTank_cloud/ImageServer/mapToImage?geometry={"rings":[[[407323.19,4787427.54],[407323.19,4787478.54],[407324.19,4787427.54],[407323.19,4787478.54]]]}&geometryType=esriGeometryPolygon&inSR=&rasterId=2&f=htmlJSON Response syntax
Point syntax
{
"x": <x>,
"y": <y>,
"z": <z>,
"spatialReference": {
<spatialReference>
}
}Multipoint syntax
{
"hasZ": <true|false>,
"points": [
[
<x1>,
<y1>,
<z1>
],
[
<x2>,
<y2>,
<z2>
]
],
"spatialReference": {
<spatialReference>
}
}Polyline syntax
{
"hasZ": <true|false>,
"paths": [
[
[<x11>, <y11>, <z11>],
[<x1N>, <y1N>, <z1N>]
],
[
[<xk1>, <yk1>, <zk1>],
[<xkM>, <ykM>, <zkM>]
]
],
"spatialReference": {<spatialReference>}
}Polygon syntax
{
"hasZ": <true | false>,
"rings": [
[
[<x11>, <y11>, <z11>],
[<x1N>, <y1N>, <z1N>]
],
[
[<xk1>, <yk1>, <zk1>],
[<xkM>, <ykM>, <zkM>]
]
],
"spatialReference": {<spatialReference>}
}JSON Response example
Example one
{
"hasZ": true,
"rings": [
[
[
2023.646434180443,
-1857.2131409192998,
88.08833
],
[
1754.46942976375,
-1295.9305158252814,
88.08833
],
[
2055.4897163412415,
-1850.3282377299251,
88.08833
],
[
1754.46942976375,
-1295.9305158252814,
88.08833
],
[
2023.646434180443,
-1857.2131409192998,
88.08833
]
]
]
}Example two
{
"hasZ": true,
"points": [
[
2023.646434180443,
-1857.2131409192998,
88.08833
],
[
1754.46942976375,
-1295.9305158252814,
88.08833
]
]
}