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

Find versus Query versus Identify


The FindTask object is used to search one or more layers in a very similar fashion to how a database is searched using an SQL statement. For example, a database is searched using an SQL statement with a WHERE clause, like this:

USE MyDatabase;
GO
SELECT Name, ProductNumber, ListPrice AS Price
FROM Production.Product 
WHERE ProductLine = 'R' 
AND DaysToManufacture < 4
ORDER BY Name ASC;
GO

The FindTask constructor works with a single WHERE clause against these layers using a text literal. QueryTask, on the other hand, can use multiple fields and field types against a single layer. However, it goes beyond that with QueryTask. The QueryTask class can also be used for spatial queries. For example, you can also execute a query that states "find a parking meter that is on Baker Street and within 500 meters of a grocery store." In effect, QueryTask is a tool for doing spatial analysis. As such, this feature makes it a very powerful tool. Lastly, IdentifyTask is...