- URL:
- https://<root>/Utilities/Symbols/SymbolServer/generateImage
- Methods:
GET
- Version Introduced:
- 11.0
Description
The generate
operation returns a single symbol based on a web style item. This operation supports extracting a symbol from a 2D web style using the symbol
parameter. Both the symbol
and dictionary
parameters can be used to extract a symbol from a dictionary web style. Once submitted, this operation returns the requested image. The generate
operation can be submitted as either a GET or POST request.
Request parameters
Parameter | Details |
---|---|
(Required) | The item ID for the ArcGIS Enterprise web style. The web style must belong to the same organization the ArcGIS Server is federated to. Example:
|
(Required for 2D web styles) | The symbol name. This is the symbol style item key that is defined in the web style.
|
(Required for dictionary styles) | The attributes and configuration key and value pairs for dictionary-based styles.
|
(Optional) | The size (width and height) of the exported image in pixels. If the size is not specified, the image will be constrained by the requested symbol's size. Example:
|
(Optional) | The symbol service using a double value. A value of 1.0 implies the symbol is not scaled. Setting the value to 1.5 scales the image to 50 percent more than the image's original size. Settings the value to 0.5 reduces the image's original size by 50 percent. If both the Example
|
(Optional) | The symbol placement in the image. When set to Values: |
(Required) | The image format. The default format is Values: |
(Optional) | The device resolution of the exported image (dots per inch). If the Example
|
| The response format. The only supported response format is |
Example usage
The following is a sample request for the generate
operation that demonstrates generating a symbol from a 2D web style:
https://<machineName>.<domain>.com/webadaptor/rest/services/Utilities/Symbols/SymbolServer/generateImage?webstyle=c6292c3caf444c76b24dd67c9569b66f&symbolName=TinosPizza&dictionaryFeatures=&size=200,200&scaleFactor=2.0¢erAnchorPoint=false&imageFormat=png32&dpi=150&f=image
The following is a sample POST request for the generate
operation that demonstrates generating a symbol from a dictionary stye:
POST /webadaptor/rest/services/Utilities/Symbols/SymbolServer/generateImage HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
webstyle=c6292c3caf444c76b24dd67c9569b66f&symbolName=&dictionaryFeatures={"attributes": {"name": "Tino's Pizza","style": "pizza","price": 2}}&&size=200,200&scaleFactor=2.0¢erAnchorPoint=false&imageFormat=png32&dpi=150&f=image