57
Analyzing / Querying GIS Data Jeremy Herring South Plains Electric Coop

Analyzing)/)Querying)GIS)Data) - Milsoft Utility Solutions/)Querying)GIS)Data)) JeremyHerring South&PlainsElectric&Coop & ... &&&&&DoCmd.rename&Mid(obj.Name,&5),&acTable,&obj.Name&

Embed Size (px)

Citation preview

Analyzing  /  Querying  GIS  Data    

Jeremy  Herring  South  Plains  Electric  Coop  

Connecting To Your Published Data

•  Mdb •  Sde

Create  Blank  DB  And  Connect  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  SDE  

Connec2ng  to  Personal  Geodatabase  

Connec2ng  to  Personal  Geodatabase  

Connec2ng  to  Personal  Geodatabase  

Connec2ng  to  Personal  Geodatabase  

Remove  Prefixes  if  Needed  Public  Sub  Remove_Prefix()      Dim  obj  As  AccessObject  Dim  dbs  As  Object      

 Set  dbs  =  Applica2on.CurrentData              'Search  for  open  AccessObject  objects  in  AllTables  collec2on.        For  Each  obj  In  dbs.AllTables                  'If  found,  remove  prefix  example  here  is  sde_                If  LeP(obj.Name,  4)  =  "sde_"  Then                          DoCmd.rename  Mid(obj.Name,  5),  acTable,  obj.Name                  End  If          Next  obj    End  Sub  

Remove  Prefixes  if  Needed  

Remove  Prefixes  if  Needed  

Remove  Prefixes  if  Needed  

Remove  Prefixes  if  Needed  

Remove  Prefixes  if  Needed  

Start  Crea2ng  Queries  

Choose  Tables  To  Be  Used  

Miles  of  Overhead  line  

Miles  of  Overhead  Result  

•  Run  for  results  

Miles  of  Underground  Line  

Miles  of  Underground  Result  

•  Run  for  results  

Total  System  Miles  of  Line  

System  Miles  Results  

•  Run  for  results  

Transmission  Miles  By  Voltage  

Transmission  Miles  by  Voltage  Results  

Switch  2  Way  Feeds  

Switch  2  Way  Feed  Results  

Devices  By  Number  Of  Consumers  Downline  Report  

Results    

Meters  by  Sub  

Meters  by  Sub  Feeder  

Results  

Create  a  Macro  

Choose  Open  Query  

Choose  a  Query  to  Open  

Macro  is  Complete  

Save  Macro  

Create  a  Form  in  Design  Mode  

Add  a  Bu\on  

Add  a  Label  

Add  a  Cap2on  to  the  Label  

Add  Total  Miles  Macro  on  Click  Event  To  Bu\on  

Remove  Bu\on  Cap2on  

View  The  Form  And  Run  The  Macro  

Save  the  Form  

More  Live  Examples  

Ques2ons