Docsity

Customisation - GIS and Mapping - Lecture Slides, Slides of Geology

Partial preview of the text

Download Customisation - GIS and Mapping - Lecture Slides and more Slides Geology in PDF only on Docsity!

Customisation

  • The GUI in most GIS applications is sufficient for most needs. However, situations arise where you want either to: - Modify the interface, or - Add new functionality
  • We will focus on ArcGIS, but similar principles apply to other systems.

GUI Changes

  • Modifying the interface can be achieved without any programming.
  • Basically involves adding, deleting or moving objects in the GUI using drag and drop operations.
  • The changes are initiated from the Tools | Customize menu.
  • We will look at examples in the practical class.

Internal Changes

  • ArcGIS can be modified in several ways:
    • Visual Basic for Applications (VBA) macro. The macro can either be run from the built-in Visual Basic Editor (VBE) - which provides an Integrated Development Environment (IDE), or attached to a button on the desktop.
    • Scripting languages such as VBScript, JScript or Python can be used to create a geoprocessing script. The script could either be a new tool or several tools linked together to automate a workflow as a geoprocessing model.

External Programs

  • ArcObject functionality can also be incorporated into your own programs in an external environment.
  • Any COM-compliant or .NET-compliant high level programming language, such as Visual Basic, Visual C++ or Python may be used.
  • Programs require a licence.

Visual Basic for Applications

  • We will use some VBA macros in the practical class, so it may be helpful to say something about VB.
  • A block of code that can perform a specific task is referred to as a procedure. A collection of procedures is known as a module and a collection of modules is referred to as a project.
  • Procedures may be private or public. A private procedure can only be called or used by another procedure in the same module; public procedures are available to procedures in other modules in the same project.