40
Sending Automated Changes to SDE Eric Armstrong Gerald Marbury

Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

SendingAutomatedChangestoSDE

EricArmstrong

GeraldMarbury

Page 2: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Agenda–  Background–  AboutEricArmstrong–  AboutGeraldMarbury/GeospatialExtensions–  MilsoftESRIDataSyncTool–  Demo–  Discussion

Page 3: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

AboutEricArmstrong•  BSinComputerScience•  2.5yearsinWindMilMapSupportatMilsoftUtilitySolutions

3

Page 4: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

AboutGeraldMarbury•  MSElectricalandComputerEngineering•  7yearsatAlabamaPower/SouthernCompany•  3yearsasR&DDirectorofUtilityAutomationIntegrators•  4yearsasDirectorofSoftwareDevelopmentofPDA/Origin

GIS•  InfluentialinNRECA’sMultiSpeak®Initiative•  14yearsatGeospatialExtensions,Inc

4

Page 5: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

•  Benefits –  Milsoft’s connectivity and network editing tools –  Milsoft’s advance symbology –  Access to 100’s of the Core E&O fields –  ESRI’s advanced symbology –  ESRI’s editing tools

•  Technical Characteristics -  The data is really in a linked local model (LLM) -  Consumes a Milsoft license -  Can only be opened from a 32Bit process

-  ArcMap, ArcCatalog, ArcPy, etc -  Some field name are greater than 31 characters -  String fields are 255 characters in length

Milsoft Custom Geodatabase

Page 6: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

WhatistheMilsoftESRIDataSyncTool

•  TwoExtensions1.  ExtensiontoArcGISforServer

•  RequiresArcGISServerLicense•  Runs“Automagically”

2.  ExtensiontoArcGISforDesktop•  RunsinArcCatalogandArcMap•  Usefulforremoteconfigurationofserver•  NotAutomatic

Page 7: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ComparisonswithImportEXT•  Milsoftbackedexcellentsupport•  Nofunctionaldifference•  32Bitversus64Bit•  Allupdateswillbeavailable

Page 8: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

WhatisM.E.D.S.•  Providesone-way

integrationtothegeodatabasefrommultipleandvariousdatasources.

SQL Server

Text Files Oracle

Excel Access

ODBC OLEDB ADO.Net 3 Key APIs

GDB

XML Services

Json

ESRI

Page 9: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

3KeyDatabaseAPIs

ODBC OLEDB ADO.NET

1992 1996 2002

1000’s of providers and drivers http://www.sqlsummit.com/oledbVen.htm http://www.sqlsummit.com/ODBCVend.HTM http://www.sqlsummit.com/DataProv.HTM http://www.connectionstrings.com/

Page 10: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

“DRIVEITIN”“Ifthere’sadriverforit,thenyoucan

bringitin.”

Page 11: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

AMI

Work Orders

OMS

CIS

SCADA

AVL

EA

HowdoesM.E.D.Sfitin?

Page 12: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ImportEXT

HowdoesM.E.D.Sfitin?Oracle

SQL Server

Access

Excel

DBF

MySQL

AS400

CSV

PostGre

Outlook

SQLite

DB2 S

patial Data

Page 13: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

WhatisImportEXT

•  One-wayintegrationtogeodatabase

Page 14: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

HowdoesMEDShelp?•  “Ineedamapof………….”

–  Customerswithlowvoltageasofyesterday–  Customersthathaveblinkedexcessivelyinthelastweek.–  Mykeycustomersthatwereinanoutageinthelastmonth–  Wherearethetruckscurrently–  Canyouaddafieldfromthe“……”systemtothemap?

Page 15: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Manual steps to display non-spatial data

Internal customer would query tabular data

Export to DBF or CSV Put on Shared

Drive

Create relates & joins in GIS Export Data to

Shapefile

Produce a map Repeat!

Convert Key Field to Match

GIS

Publish Map Service

Page 16: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Steps to display non-spatial data now

Configure Import

Specification

Create Dynamic

Map

Page 17: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ToolFeaturesandConfiguration

Page 18: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ImportSpecificationorRule•  Describesanintegrationfrom

sourcedatatoadestinationtableorfeatureclass

•  Sourcedatacanbeatable,view,featureclassorrawSQL,XMLdatasource,Jsondatasource,orevenanothergeodatabase.

•  Eachisaseparate“interface”•  Canhaveasmanyasdesired

Page 19: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

CreateDestinationFields&Tables•  Automaticallycreatesmissingdestinationsfieldstomatchsource

datatypes.•  Createsthedestinationtableorfeatureclassifit’smissing.•  Cleansfieldnamesasitcreatesthem

–  AFIELDWITHSPACESbecomesA_FIELD_WITH_SPACES–  Set’saliastooriginalname.

•  HandlesfieldstoolongforSDE–  dbo_ServiceLocation_Ext:TRANS_POLENUMBERbecomes

wmextdbo_ServiceLocation_Ext__9

•  Determinesfieldlengthsbasedontheactualldata–  ThelengthofwmUplineFeederchangesfrom255to5

•  Copiessourcedomains

Page 20: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

PrimaryKeyOptions•  SupportsMultiplePrimaryKeys•  KeyMatchingOptions

–  Converttodouble–  Converttointeger–  Converttostring–  Trimstrings–  Trimspecifiedleadingcharacters–  Trimspecifiedendingcharacters–  Removenon-numericcharacters

234-023-004 = 000234023004

Page 21: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Incrementalupdates•  Inserts,UpdatesandDeletes•  Ifnospatialdata,disallowsinsertsof

featureclass•  Automaticallyconvertsfieldtypes

whileimporting–  StringtoInteger–  StringtoDouble–  StringtoBoolean–  DatetoString–  DoubletoDouble–  FormattedStringtoDate

•  DestinationClearFields–  Alternativetodelete

Page 22: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

CreatesorupdatesESRIgeometry•  Projectsfromsourceto

destinationcoordinatesystem•  SourceSpatialOptions:

–  X,Y,Zcoordinatesfields–  Latitude,Longitudefields–  OGISFields

•  WKT:WellKnownText•  WKB:WellKnownBinary

–  SQLServerGeographyfields•  RequiresSQLServer2008

–  Geocoding–  RelatedESRIfeatureclass

Page 23: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

RelatedFeatureClassExample

DestinationGeodatabaseExternalGeodatabaseExternalShapefile

SDE.ServLoc OBJECTID

Address

Location

MeterNo

SHAPE

LowVoltagePt

ReadingID

Date

Voltage

MeterNumber

SHAPE

Where V < 110

“Low Voltage” layer in dash board

AMR.Voltage ReadingID

Date

Voltage

MeterNumber

Page 24: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

AScheduleforeachRule•  Strikesevery5minutes•  AVLevery90seconds•  Metersat7pm•  Tamperingeverymonth•  Peaksevery6months•  Nameplatedataevery

quarter.

Page 25: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

DownloadandImportText,XMLandJSON

•  UNC,FTP,HTTP,HTTPS,sFTP•  Text:CSV,Tab,Pipe•  Jsondata,XMLdata

–  Flattensnestedelements

•  Supportsencryptednetworkcredentials

•  Candeleteorignorepreviousprocessedfiles

Page 26: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ConvertTablestoCodedValueDomain

•  ConvertanyTableorViewtoacodedvaluedomain

•  Oneafieldforthecodevalue•  Canchoosemultiplefieldsforthe

description.•  Canconvertabitgatetoacodedvalues

Page 27: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Periodicstatusreportviaemail•  Onkeyevents

–  ServiceStopped–  ServiceStarted–  ConfigurationChanged

•  Periodically–  Inserted–  Changed–  Deleted–  Resourcesinuse–  Exceptions–  Typicallyeveryday

Page 28: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Scheduledcompressions•  AnalyzesandCompresses

Geodatabase•  Canbescheduledor

disabled•  Rebuildsspatialindexes•  Successfulnotificationsent

viaemail

Page 29: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

RunasaScriptorScheduledTask•  HasascriptingAPI•  CreateObject•  Examples

–  VBscript–  cscript–  powershell

Page 30: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

SystemRequirements•  ArcGISSoftware

–  ArcGISforDesktop10.2through10.6–  ArcGISforServer10.2throughArcGISEnterprise10.6

•  OperatingSystem–  Windows7.1through10–  WindowsServer2000–2014–  WhateverESRIofficiallysupports

•  SupportedGeodatabases–  ArcSDE(Personal,WorkgrouporEnterprise)–  FileGDB–  PersonalGDB

Page 31: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

DemonstrationandQuestions

Page 32: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ResourcesEricArmstrong

[email protected]

[email protected]

Page 33: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Scenario1–GettingStartedLowVoltageLine

•  WhatcanIconnectto?•  ViewSource•  Createthedestinationtable•  Keys•  Userfunctions

–  Processselectedtable–  Processselectedgeo-database–  Processselectedfeaturedataset

Page 34: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

What’sPossibleUnionPower:Arealwordexample

Page 35: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ArcCatalogUse•  Administrativefunctions

–  ConfigureImportExt–  CreateSourceFieldsonDestination

•  Userfunctions–  Processselectedtable–  Processselectedgeo-database–  Processselectedfeaturedataset

Page 36: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Scenario2–SpatialData•  CustomersNamed•  Createthedestinationtable•  Userfunctions

–  Processselectedtable–  Processselectedgeo-database–  Processselectedfeaturedataset

Page 37: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ConfigurationDemo

Page 38: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ArcMapUse•  Administrativefunctions

–  None•  Userfunctions

–  Processconfiguredtables

Page 39: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

ArcMapUse•  Administrativefunctions

–  None•  Userfunctions

–  Processconfiguredtables

Page 40: Sending Automated Changes to SDE · 2018-06-18 · •Benefits – Milsoft’s connectivity and network editing tools – Milsoft’s advance symbology – Access to 100’s of the

Notes •  Introductions

•  BackgroundofTool•  FeaturesoftheTool•  ArcServerConfiguration•  WebDemo

•  DisSpatch

•  Outages•  Historical

•  Mobile•  FaultCurrentsearch•  WindMill•  HyperLinks•  Mobile