Book Image

Learning ArcGIS Runtime SDK for .NET

By : Ron Vincent
Book Image

Learning ArcGIS Runtime SDK for .NET

By: Ron Vincent

Overview of this book

ArcGIS is a geographic information system (GIS) that enables you to work with maps and geographic information. It can be used to create and utilize maps, compile geographic data, analyze mapped information, share and discover geographic information and manage geographic information in a database. This book starts by showing you where ArcGIS Runtime fits within Esri’s overall platform strategy. You'll create an initial map using the SDK, then use it to get an understanding of the MVVM model. You'll find out about the different kinds of layers and start adding layers, and you'll learn to transform maps into a 3D scene. The next chapters will help you comprehend and extract information contained in the maps using co-ordinates and layer objects. Towards the end, you will learn to set the symbology, decide whether to use 2D or 3D, see how to implement 2D or 3D, and learn to search and find objects. You'll also get to grips with many other standard features of the Application Programming Interface (API), including create applications and finally testing, licensing, and deploying them. Once completed, you will be able to meet most of the common requirements of any mapping application for desktop or mobile platforms.
Table of Contents (19 chapters)
Learning ArcGIS Runtime SDK for .NET
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
3
Maps and Layers
12
Configuring, Licensing, and Deploying
Index

Editing features


Now that we've covered the basic concepts of how to create a Runtime geodatabase, let's discuss how this actually works in the app. In this section, we'll cover how to create a feature table; adding, updating, and deleting features; and selecting and committing your edits.

The basic workflow includes the following steps:

  1. Create the feature table. If you are using a feature service, you will access the service via its feature table. If you're using an offline service, you will access it from the Runtime geodatabase that was sync enabled.

  2. Create a FeatureLayer class from the feature table and add it to the map.

  3. Edit the layer (add, update, or delete features).

  4. Commit your edits. If you're using a feature service, apply the edits. If you're using an offline service, synchronize the edits back to the feature service.

Creating a FeatureLayer class

You've already seen code for step 1 in this list of tasks. For example, when we worked with the parking meters layer, we opened up the Runtime...