Skip to content

Geometry operator - offset analysis

This sample demonstrates the use of the offsetOperator. You can visually explore the changes when using different offset distances, join types and angles.

The sample uses simple polygons and polylines as input geometries. The simplifyOperator and simplifyOGCOperator provide capabilities for simplifying geometries and verifying if they are simple.

The Introduction to geometry operators guide topic offers an overview of all the SDK's capabilities for performing client-side geometric operations on points, multipoints, lines, polygons and extents.

Getting started

To use this sample, start by adjusting the offset distance slider. Experiment with both positive and negative values.

offset-distance.png

Then try the different join types while adjusting the offset distance: miter, bevel, round and square.

join-type.png

Last, you can view changes in the polyline's offset join when adjusting the angle in combination with offset distance and join type.

demo-angle.png

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.