Extending ArcGIS 10 - Using Scripts & Add-Ins by 80k79j54

VIEWS: 0 PAGES: 23

									 Extending ArcGIS 10
Using Scripts & Add-Ins


            By
  Kevin Surbella, MA, GISP
           Presentation Overview
I.     Introduction
II.    Overview of Scripting
III.   Introduction to ArcPy
IV.    Introduction to ArcGIS 10 Add-Ins
Introduction
                  Introduction
 Education
  o   MA in Geography, Kent State University
  o   BS in Conservation, Kent State University
 Professional Experience
  o   GIS Application Developer, EMH&T (current)
  o   GIS Adjunct Instructor, Columbus State Community
      College (current)
  o   GIS Specialist, ODNR-GeoSurvey (~1 year)
  o   GIS Specialist, Davey Tree - Resource Goup (6 years)
  o   GISP certified
Overview of Scripting
         Overview of Scripting
 What is scripting?
  o   A set of computing instructions to automate a
      particular task
 Advantages of scripting?
  o   Automate repetitive task
  o   Save time and money
 Dis-advantages of scripting?
  o   Learning curve of scripting languages
Introduction to ArcPy
          Introduction to ArcPy
 What is ArcPy?
  o   GIS scripting language which performs data analysis, data
      conversion, data management, and map automation
      with Python.
  o   Successor of arcgisscripting language.
 Advantages of ArcPy?
  o   Use additional Python modules
  o   Easy to learn
 Dis-advantages of ArcPy?
  o   Cannot access all objects within ArcGIS Desktop
         Introduction to ArcPy
 Writing ArcPy scripts, where?
  o   Python Window (within ArcGIS Desktop)
  o   PythonWin, integrated development
      environment (IDE) (outside of ArcGIS Desktop)
  o   PyScripter, IDE (outside of ArcGIS Desktop)
  o   NotePad ++ or NotePad, text editors (outside of
      ArcGIS Desktop)
       Introduction to ArcPy
 Python Window
        Introduction to ArcPy
 PyScripter
           Introduction to ArcPy
 ArcPy Modules
  o   Mapping – Use to manipulate map content layers
         Add/Remove layers from map contents
         Update layer symbology
         Resource layers
         Exporting and Printing mxd layouts
  o   Spatial Analysis – Use to access spatial analysis tools
  o   Geostatistical Analyst – Use to access geostatistical
      analysis tools
 ArcPy Geoprocessing
  o   Execute existing geoprocessing tools
           Introduction to ArcPy
 Where can I find ArcPy scripts?
  o   ArcGIS Resource Center – Geoprocessing Model and
      Script tool Gallery
         http://resources.arcgis.com/gallery/file/geoprocessing
  o   GIS Forums
         GIS Stack Exchange
          http://gis.stackexchange.com/
         ESRI Forum
          http://forums.arcgis.com/
  o   Google It
  o   Model Builder
        Introduction to ArcPy
 Model Builder
Introduction to ArcPy
    Demonstration
Introduction to ArcGIS 10
        Add-Ins
           Overview of Add-Ins
 What are Add-Ins?
  o   “An extension to a software program that performs a
      custom task”, ESRI.
  o   Code language is .NET/XML using ArcObjects
  o   Successor to VBA environment
 Advantages of Add-Ins?
  o   Single compressed install file, no Component Object
      Model registration (COM)
  o   Easy to share and install
 Dis-advantages of scripting?
  o   Learning curve of programming languages
          Overview of Add-Ins
 Writing Add-In programs, where?
  o   Microsoft Visual Studio (Express, free version)
  o   For ArcGIS 10, use .NET Framework 3.5
  o   For ArcGIS 10.1, use .NET Framework 4.0
 Add-In configuration
  o   Must install Visual Studio before installing ArcGIS
      Desktop
         Overview of Add-Ins
 Microsoft Visual Studio
          Overview of Add-Ins
 Add-In types
  o   Button and tools
  o   Combo boxes
  o   Menus and context menus
  o   Multi items
  o   Toolbars
  o   Dockable windows
           Overview of Add-Ins
 Where can I find Add-Ins
  o    ArcGIS Resource Center – Geoprocessing Model
       and Script tool Gallery
       http://resources.arcgis.com/gallery/file/geopr
         ocessing
Overview Add-Ins
 Demonstration
             Help Resources
 ArcPy
 o   http://help.arcgis.com/en/arcgisdesktop/10.0/h
     elp/index.html#/What_is_ArcPy/000v000000v7
     000000/
 Add-Ins
 o   http://help.arcgis.com/en/sdk/10.0/arcobjects_
     net/ao_home.html

								
To top