Buffer Geometry (server) Activity

Description

Creates buffer polygons at a specified distance around the input geometries.

Usage

You may need to buffer around a geometry. A common scenario to use a Buffer Geometry (server) activity is to first buffer around a feature. Then use a Query Layer activity with the buffered geometry as an input to find out what is near the feature.

Offline Support

In order for this activity to work when the device is offline, the application must run in the Geocortex Mobile App Framework.

Geocortex Mobile App Framework provides limited support for the following input:

Inputs

Url

Required

Type: String

The URL of the ArcGIS geometry service.

For example, https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer.

Geometry

Required

Type: esri.Geometry (3.x, 4.x)* | esri.Geometry[] (3.x, 4.x)*

The geometries to buffer.

Distance

Required

Type: Number | Number[]

The distances the input geometries are buffered.

Unit

Optional

Type: "meters" | "feet" | "kilometers" | "miles" | "nautical-miles" | "yards" | String

The units for calculating each buffer distance. If units are not specified, they are inferred from Buffer Spatial Reference. If Buffer Spatial Reference is not specified, units are derived from the features being buffered.

Buffer Spatial Reference

Optional

Type: Number | String | esri.SpatialReference (3.x, 4.x)*

The spatial reference in which the geometries are buffered.

If Buffer Spatial Reference is not specified, the geometries are buffered in the spatial reference specified by Out Spatial Reference.

If Out Spatial Reference is also not specified, they are buffered in the spatial reference of the features.

Out Spatial Reference

Optional

Type: Number | String | esri.SpatialReference (3.x, 4.x)*

The spatial reference for the returned geometries.

If Out Spatial Reference is not specified, the geometries are output in the spatial reference specified by Buffer Spatial Reference.

If Buffer Spatial Reference is also not specified, they are in the spatial reference of the features.

Geodesic

Optional

Type: Boolean

If the input geometries are in geographic coordinate system, set geodesic to true in order to generate a buffer polygon using a geodesic distance. Requires ArcGIS Server 10.1+.

Union

Optional

Type: Boolean

If true, all geometries buffered at a given distance are unioned into a single (possibly multipart) polygon, and the unioned geometry is placed in the output array. The default is false.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Outputs

geometry

Type: esri.Polygon (3.x, 4.x)*

The first buffer result.

results

Type: esri.Polygon[] (3.x, 4.x)*

The buffer results.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

See Also...

Buffer a Geometry

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.10