21
Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example Jo Fraley [email protected]

Jo Fraley jfraley@esri

  • Upload
    lida

  • View
    58

  • Download
    0

Embed Size (px)

DESCRIPTION

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example. Jo Fraley [email protected]. Bomb Threat Analysis Example. Agenda. Bomb Threat Stand-Off Distances Bomb Threat Example Application What it took to build - PowerPoint PPT Presentation

Citation preview

Page 1: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis ExampleJo Fraley

[email protected]

Page 2: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Bomb Threat Analysis Example

• Bomb Threat Stand-Off Distances

• Bomb Threat Example Application

• What it took to build- ArcGIS Runtime SDK for .NET

- Options for applications

- Creating packages

- Functionality

- Deploying applications

Agenda

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 3: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |Esri UC 2014 | Demo Theater |

Demo

Bomb Threat Analysis Example

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 4: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

ArcGIS Runtime SDK for .NET

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 5: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• Runtime built using C++- Exploits the capabilities of the device

• Functionality exposed to developers via an API native to the platform- Intuitive to learn

• Common functionality set and conceptual model- Eases multi platform development

ArcGIS Runtime

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 6: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Device Platforms

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Phone Tablet Desktop Embedded

Page 7: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Runtime Platforms

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

QT

OS X

Windows Store

Windows Store

JavaSE

WindowsMobile

iOS

Android

Windows Phone

Windows Phone

Mobile

Desktop

Embedded

.NET.NET

DesktopClient

DesktopClient

Page 8: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• Build native apps for the Windows Desktop platform

• Windows Presentation Foundation (WPF)

• .NET 4.5

• 64-bit and 32-bit

• Task-based Async Pattern

• Designed for MVVM

• Codebase shared with APIs for Store apps and Phone

• Full capabilities of the ArcGIS Runtime- Plus LocalServer for advanced Geoprocessing

Windows Desktop API

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 9: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• Build a map

• Edit

• Search/Query

• Geocoding and Routing

• Perform analysis

Functionality Overview

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 10: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• All local services

• All external services

• Combination of both

Options for applications

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

• Online connected • Offline disconnected

Page 11: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• Map package: MPK

• Tile package: TPK

• Geoprocessing package: GPK

• Locator package: GCPK

Local Data Sources

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 12: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Packages for local services

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 13: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Packages for local services

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 14: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Creating a local service

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

LocalMapService schoolsAndhospitals = new LocalMapService(apppath + "\\MapFeatures.mpk");

await schoolsAndhospitals.StartAsync(); ArcGISDynamicMapServiceLayer arcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer() { ID = "schoolsAndhospitals", ServiceUri = schoolsAndhospitals.UrlMapService, }; arcGISDynamicMapServiceLayer.IsVisible = false; mapView.Map.Layers.Add(arcGISDynamicMapServiceLayer);

LocalMapService schoolsAndhospitals = new LocalMapService(apppath + "\\MapFeatures.mpk");

await schoolsAndhospitals.StartAsync(); ArcGISDynamicMapServiceLayer arcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer() { ID = "schoolsAndhospitals", ServiceUri = schoolsAndhospitals.UrlMapService, }; arcGISDynamicMapServiceLayer.IsVisible = false; mapView.Map.Layers.Add(arcGISDynamicMapServiceLayer);

Page 15: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• Create geometries from existing geometries by performing operations - Buffer, Clip, Densify, Difference, Offset, Union, Intersection, Symmetric Difference,

and Simplify

• Basic relationsips- Contains, Crosses, Disjoint, Intersects, Overlaps, Touches, Within, and Equals

• Project to different spatial references

Using the Geometry Engine

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

var bufferInside = GeometryEngine.Buffer(geom, BuildingEvacDistance); var bufferInside = GeometryEngine.Buffer(geom, BuildingEvacDistance);

Page 16: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Using the QueryTask

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

ArcGISDynamicMapServiceLayer localLayer = mapView.Map.Layers["schoolsAndhospitals"] as ArcGISDynamicMapServiceLayer;

var queryTask = new QueryTask(new Uri(localLayer.ServiceUri + "/0")); var query = new Query("1=1") { ReturnGeometry = true, OutSpatialReference = mapView.SpatialReference, Geometry = outsideBuffer,};query.OutFields.AddRange(new string[] { "NAME" });

graphicSchool.Renderer = new SimpleRenderer() { Symbol = new SimpleMarkerSymbol(){ Color = Color.FromRgb(255, 0, 0), Size = 8 } };

var queryResult = await queryTask.ExecuteAsync(query); if (queryResult != null && queryResult.FeatureSet != null) { graphicSchool.Graphics.AddRange(queryResult.FeatureSet.Features); }

ArcGISDynamicMapServiceLayer localLayer = mapView.Map.Layers["schoolsAndhospitals"] as ArcGISDynamicMapServiceLayer;

var queryTask = new QueryTask(new Uri(localLayer.ServiceUri + "/0")); var query = new Query("1=1") { ReturnGeometry = true, OutSpatialReference = mapView.SpatialReference, Geometry = outsideBuffer,};query.OutFields.AddRange(new string[] { "NAME" });

graphicSchool.Renderer = new SimpleRenderer() { Symbol = new SimpleMarkerSymbol(){ Color = Color.FromRgb(255, 0, 0), Size = 8 } };

var queryResult = await queryTask.ExecuteAsync(query); if (queryResult != null && queryResult.FeatureSet != null) { graphicSchool.Graphics.AddRange(queryResult.FeatureSet.Features); }

Page 17: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Using a SceneView

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

<esri:SceneView x:Name="sceneView" Visibility="Hidden"> <esri:Scene x:Name="map" > <esri:ElevationLayer ServiceUri="http://services.arcgisonline.com/arcgis/rest/directories/cache_globe/GlobeCache/USGS_Elevation_US_20070531"/> <esri:ArcGISTiledMapServiceLayer x:Name="myService" ServiceUri="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" /> <esri:SceneLayer x:Name="myscenelayer" ServiceUri="http://burlo.esri.com/arcgis/rest/services/Hosted/sfo/SceneServer/Layers/0"/> <esri:GraphicsLayer x:Name="myPointandText"/> </esri:Scene> </esri:SceneView>

<esri:SceneView x:Name="sceneView" Visibility="Hidden"> <esri:Scene x:Name="map" > <esri:ElevationLayer ServiceUri="http://services.arcgisonline.com/arcgis/rest/directories/cache_globe/GlobeCache/USGS_Elevation_US_20070531"/> <esri:ArcGISTiledMapServiceLayer x:Name="myService" ServiceUri="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" /> <esri:SceneLayer x:Name="myscenelayer" ServiceUri="http://burlo.esri.com/arcgis/rest/services/Hosted/sfo/SceneServer/Layers/0"/> <esri:GraphicsLayer x:Name="myPointandText"/> </esri:Scene> </esri:SceneView>

Page 18: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Drawing Threat Dome

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

SphereSymbol sphere = new SphereSymbol();sphere.Color = Color.FromArgb(155, 255, 0, 0);sphere.LatLOD = 10;sphere.LonLOD = 10;sphere.Radius = (float)OutdoorEvacDistance; //in meterssphere.SpherePosition = RuntimeCoreNet.SpherePosition.Center;Graphic graphic = new Graphic { Geometry = e.Location, Symbol = sphere };

SphereSymbol sphere = new SphereSymbol();sphere.Color = Color.FromArgb(155, 255, 0, 0);sphere.LatLOD = 10;sphere.LonLOD = 10;sphere.Radius = (float)OutdoorEvacDistance; //in meterssphere.SpherePosition = RuntimeCoreNet.SpherePosition.Center;Graphic graphic = new Graphic { Geometry = e.Location, Symbol = sphere };

Page 19: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

• Developing Mobile Apps with ArcGIS Runtime SDK for Microsoft .NET Framework- Thursday, July 17, 2014, 10:15 am – 11:30 am

- Location: Room 5A

Sessions on the ArcGIS Runtime SDK for Microsoft .NET Framework

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 20: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater |

Thank you…

• Please fill out the session survey:

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Paper – pick up and put in drop box

Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example

Page 21: Jo Fraley jfraley@esri

Esri UC 2014 | Demo Theater | Using the New ArcGIS Runtime SDK for Microsoft .NET Framework for Homeland Security: A Bomb Threat Analysis Example