Programming vs Packaged Packaged Easier if what you

  • Slides: 12
Download presentation
Programming vs. Packaged • Packaged: – Easier if what you need is available •

Programming vs. Packaged • Packaged: – Easier if what you need is available • Programming: – Takes longer, can do anything

Related Classes • • GSP 470/570: Spatial Modeling GSP Programming II: Fall 2018 CS

Related Classes • • GSP 470/570: Spatial Modeling GSP Programming II: Fall 2018 CS 325 Database Design W 3 Schools and other great web sites!

Servers Sensors Workstation Mobile

Servers Sensors Workstation Mobile

Types of Languages • Scripted – Each line of code is parsed, then executed

Types of Languages • Scripted – Each line of code is parsed, then executed – Fast to write, slow to execute – Great for data acquisition and preparation • Compiled – Entire program is compiled, then executed – Slower to write, faster to execute – Best where speed is needed • Large data prep (Li. DAR, UAV) • Simulations

Applications w/Scripting • • Excel w/VBA R, SPSS, SAS Arc. GIS, QGIS, Blue. Spray…

Applications w/Scripting • • Excel w/VBA R, SPSS, SAS Arc. GIS, QGIS, Blue. Spray… Mat. Lab Logo Stella, GME Browsers: Java. Script Others…

Scripting Languages • VBA in Excel – Easiest to prep data in Excel •

Scripting Languages • VBA in Excel – Easiest to prep data in Excel • Python – Most common for GIS – Interfaces to Sci. Py, R • R – Vector and Matrix based statistics • PHP – Was most popular for server-side-scripting • Python!

Excel VBA • File -> Options -> Customize Ribbon • Under “Customize the Ribbon”,

Excel VBA • File -> Options -> Customize Ribbon • Under “Customize the Ribbon”, check “Developer” • Developer Tab -> Visual Basic • Right Click on the menu bar and select “Debug” to show debugging tools

VBA in Excel

VBA in Excel

Compiled Languages • VB – – Windows-only Visual Studio: powerful but expensive Visual Studio

Compiled Languages • VB – – Windows-only Visual Studio: powerful but expensive Visual Studio Code? Relatively easy to write • Java – Portable – Relatively easy to write – Free • C#: Microsoft’s answer to Java • C++: Too hard to write • Fortran: Going away

Servers Sensors Workstation Mobile

Servers Sensors Workstation Mobile

Programming Languages • Servers: – – – PHP Python C++ C# Java • Mobile:

Programming Languages • Servers: – – – PHP Python C++ C# Java • Mobile: – Android: Java – Apple: x. Code • Sensors: – Python • Workstations: – – – C++ Java Python SQL (database) C# • Browsers: – HTML – CSS – Java. Script

Python GIS Libraries • Arc. GIS: lots of functions, expensive, slow • QGIS API

Python GIS Libraries • Arc. GIS: lots of functions, expensive, slow • QGIS API is really challenging • Blue. Spray: fast, limited features, documentation, testing • Geo. Pandas: Up and coming? – Lots of open source libraries – Only can get it to work with Anaconda? – Not as many features as Arc. Py but we can do anything in Python!