Once you have a geometry either from one constructed with code, as shown in the previous section, or one from clicking on (selecting) it, you can now perform geometric operations to derive other geometries by using the GeometryEngine
class. What's powerful about this class is that it allows you to perform these operations in a connected and disconnected setting. It will also calculate the area or length of geometries such as polygons or polylines, respectively. With that said, there are too many options to describe, so we'll illustrate just a couple of them to give you a taste of what's possible.
The Project
method is one of the most important geometrical operations you will need from GeometryEngine
, because it allows you to convert coordinates from one coordinate system to another. Users often want to enter coordinates in one coordinate system, but the basemap or layer in which the data will be stored will be in another coordinate system. As a result, you will need...