Learning ArcGIS Runtime SDK for .NET
eBook - ePub

Learning ArcGIS Runtime SDK for .NET

  1. 358 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning ArcGIS Runtime SDK for .NET

About this book

Learn how to build native, cross-platform mapping apps with this comprehensive and practical guide, using the MVVM pattern

About This Book

  • Enhance the user experience with the power of ArcGIS runtime SDK for.NET.
  • This clear, well segregated book has all the information you need on ArcGIS Runtime SDK. Just name it—this book has it!
  • This highly practical book empowers you to build your own custom application!
  • Get to know the inner details of ArcGIS Runtime SDK from our experts, in this book written by Ron Vincent, with 24 years' experience in the GIS industry and many in GIS training.

Who This Book Is For

This book caters to long-term users of Esri's technologies that are new to mobile development or are transitioning from older Esri technologies such as ArcGIS Engine. It is also for users who are unfamiliar with Esri or GIS and are in need of a mapping solution for either their desktop or a mobile platform, or both. The book requires knowledge of.NET.

What You Will Learn

  • Understand and implement the MVVM pattern using MVVM Light
  • Create and add layers from offline and online resources such as ArcGIS Online or ArcGIS for Server
  • Create a 2D or 3D map and decide what kind of symbology to use
  • Symbolize the layers based on the geometry
  • Search and find objects in the layers
  • Geocode an address and create a route using an address
  • Edit layer objects from online content and offline content
  • Test the application using test-driven development and then build and release the application for the intended audience

In Detail

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.

Style and approach

This comprehensive book takes a completely practical approach, where every chapter explains the important concepts and demonstrates a practical application of them in a hands-on manner.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Learning ArcGIS Runtime SDK for .NET


Table of Contents

Learning ArcGIS Runtime SDK for .NET
Credits
About the Author
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to ArcGIS Runtime
Introducing ArcGIS Runtime
Language options
A little history
Apps
Native versus web versus hybrid
Types of mapping apps
Architecture of ArcGIS Runtime
The Esri platform
SDK and API
Why the .NET version of ArcGIS Runtime?
System requirements for the ArcGIS Runtime SDK for .NET
Setting up your environment
Visual Studio
ArcGIS Runtime for .NET SDK
MVVM Light
Sample code
Let's build an app!
The old way of building an app
Under the hood
Enhancing the app
Configuring, testing, and structuring
Summary
2. The MVVM Pattern
Model-View-ViewModel
The pattern
MVVM in action (without a toolkit)
MVVM Light to the rescue
MVVM Light command parameters
Services and configuration
Displaying a message
Summary
3. Maps and Layers
MapView
Projections and coordinate systems
Esri logo
MapGrid
Scale
Overlays
Editing
WrapAround
LocationDisplay
Events
Map interactions
Map
Extent
Layers
Dynamic map service – ArcGISDynamicMapServiceLayer
Tiled map service – ArcGISTiledMapServiceLayer
Local tiled layer – ArcGISLocalTiledLayer
Feature service – FeatureLayer
Image services – ArcGISImageServiceLayer
Graphics layers – GraphicsLayer
CSV layer – CsvLayer
Bing layers – BingLayer
The Keyhole Markup Language layers – KmlLayer
Group layers – GroupLayer
Message layer – MessageLayer
Message sublayer – MessageSubLayer
Scene layer – SceneLayer
Web map service layer – WMSLayer
OpenStreetMap – OpenStreetMapLayer
Using online content
Using offline content
Local tiled layers
Map package
Runtime geodatabase
Summary
4. From 2D to 3D
Why 3D?
From 2D to 3D
Interacting with the Scene property
Viewing in 3D
Viewpoints
Surface model
Online services
Offline sources (files)
Other properties of the SceneView control
3D content
Layering the Scene properties
Controlling the Scene example
Adding the 3D content
Summary
5. Geometry and Symbology
Assigning geometry
Geometric objects
Immutability
Geometry object
MapPoint
Envelope
Multipart
Polyline
Polygon
Multipoint
Geometry builders
Units
Converting coordinates
Geometry engine
Project
Buffering
Symbology
Simple symbols
Symbol
MarkerSymbol
SimpleMarkerSymbol
PictureMarkerSymbol
TextSymbol
LineSymbol
FillSymbol
CompositeSymbol
Scene symbols
Renderers
SimpleRenderer
UniqueValueRenderer
ClassBreaksRenderer
TemporalRenderer
Military symbols
Limitations
Summary
6. Displaying Information
MVVM mouse events
Labeling
Legend
Scale bar
Overlays
Static XAML
Dynamic XAML
Showing locations
Summary
7. Finding, Querying, and Identifying Features
Tasks
Find versus Query versus Identify
Online searching
FindTask
Canceling a task
QueryTask
A quick example using QueryTask
The QueryTask options
Offline searching
Querying local layers
Spatial querying local layers
IdentifyTask
The online Identify task
The offline Identify task using MVVM Light's messenger
The Identify options
Summary
8. Geocoding and Routing
Geocoding
Locators
Candidates and scores
Useful terms
Locator tasks
Online geocoding
Offline geocoding
Finding a place
Routing
Setting up a network dataset
Routing overview
Setting up the input parameters
Stops
Impedance
Barriers
Driving directions
U-turn policy
Result options
Geometry options
Restrictions
Time windows
Calculating routes
Example routing app
Summary
9. Editing Features
Understanding the editing process
Online and offline editing
Creating a feature service
Downloading the Runtime geodatabase
Downloading a Runtime geodatabase using the ArcGIS Server REST API
Generating a Runtime geodatabase using the ArcGIS Runtime API
Generating a Runtime geodatabase from ArcGIS Desktop
Generating a Runtime geodatabase using a Geoprocessing tool
Editing features
Creating a FeatureLayer class
Editing the FeatureLayer class
Editor
Editing the configuration
Navigating while editing
Edit progress
Adding features
Selecting features
Updating features
Deleting features
Committing edits
Online
Offline
Attachments
Obtaining attachments
Attachment information
Attachment data
Editing attachments
Adding an attachment
Deleting an attachment
Updating attachments
Summary
10. Spatial Analysis
Introducing spatial analysis
Introducing geoprocessing
Preparing for geoprocessing
Online geoprocessing with ArcGIS Runtime
Geoprocessing synchronously
Geoprocessing asynchronously
Working with the output results
GPMesssage
GPFeatureRecordSetLayer
GPResultMapServiceLayer
Offline geoprocessing
Execution types
Maximum number of records
Geoprocessing tools available to ArcGIS Runtime
Summary
11. Testing and Performance
Testing
Unit testing
Unit testing ArcGIS Runtime
Unit testing with MVVM Light
Test-driven development
Code coverage
Unit testing with Windows Store
Performance
Server-side performance
Hardware
Data
ArcGIS Server configuration
Client-side performance
Introducing graphics programming
Layer rendering options
Which rendering mode?
Graphics rendering
Graphics performance testing
Client-side data access
Summary
12. Configuring, Licensing, and Deploying
Configuration
Licensing
Licensing discussion
Licensing the app
Basic-level licensing steps
Standard-level licensing steps
Using ArcGIS Online or Portal for Standard-level licensing
Attribution
Esri logo guidelines
Deployment
Deploying with the manifest file
Deploying without a manifest file
Summary
Index

Learning ArcGIS Runtime SDK for .NET

Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2016
Production reference: 1240616
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78588-545-7
www.pack...

Table of contents

  1. Learning ArcGIS Runtime SDK for .NET

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Learning ArcGIS Runtime SDK for .NET by Ron Vincent in PDF and/or ePUB format, as well as other popular books in Computer Science & Data Visualisation. We have over one million books available in our catalogue for you to explore.