ENGR G2900 GIS programming - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

ENGR G2900 GIS programming

Description:

New Graduate Course for Environmental Engineering/Science Students. About Your Instructor ... Impress your boss. Career opportunities for GIS programmers ... – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 7
Provided by: Jian95
Category:

less

Transcript and Presenter's Notes

Title: ENGR G2900 GIS programming


1
ENGR G2900 GIS programming
New Graduate Course for Environmental
Engineering/Science Students
  • Instructor Jianting Zhang, Ph.D.
  • Fall 2009 semester
  • Wednesday, 500-730 pm (Once a week)
  • Steinman Hall 424
  • Prerequisites ENGR 59910 or EAS330
  • For Senior Students GPAgt2.75

2
About Your Instructor
  • MS. Ph.D. in Computer Science (databases)
  • BS in Water Resources and Environments
  • MS in Physical Geography
  • Post-doc training in Ecological Informatics
  • ArcGIS user since PC-Arc/Info back to early
    1990s
  • Other GIS/Spatial database software packages
    MapInfo, GDAL, MapServer, Oracle Spatial
  • An unpublished paper on intro to GIS
  • http//www-cs.ccny.cuny.edu/jzhang/papers/A1_GIS.
    pdf

3
Why GIS Programming?
  • To perform repetitive tasks
  • To create customized GIS interfaces for special
    purposes
  • To automate complex GIS modeling
  • Have a better understanding of ArcGIS

4
Why you want to learn GIS Programming?
  • Reduce your workloads for repetitive tasks
  • Impress your boss
  • Career opportunities for GIS programmers
  • http//www.gjc.org/ (GIS Jobs Cleaning House)
  • Programming is fun!

5
How does a ArcGIS VBA Program look like?
  • Example Add a shapefile to a map
  • Dim pWorkspaceFactory As IWorkspaceFactory
  • Set pWorkspaceFactory New ShapefileWorkspaceFact
    ory
  • Dim pWorkSpace As IFeatureWorkspace
  • Set pWorkSpace pWorkspaceFactory.OpenFromFile("C
    \Source", 0)
  • Dim pClass As IFeatureClass
  • Set pClass pWorkSpace.OpenFeatureClass("USStates
    ")
  • Dim pLayer As IFeatureLayer
  • Set pLayer New FeatureLayer
  • Set pLayer.FeatureClass pClass
  • pLayer.Name pClass.AliasName
  • Dim pMxDoc As IMxDocument
  • Set pMxDoc ThisDocument
  • pMxDoc.AddLayer pLayer

6
ArcGIS Object Model
WorkspaceFactory
Workspace
FeatureClass
IMxDocument
FeatureLayer
Write a Comment
User Comments (0)
About PowerShow.com