lecture 0 - Introduction
Programming in geoinformatics
Autumn 2017
WHY?
- you can do IT!
- you can use IT anywhere :) (e.g. science, data visualization) (https://interaktivni.rozhlas.cz/)
- blurred boundaries – many people use GIS, GIS specialists infiltrate IT
WHY?
- ArcGIS / QGIS can't do XY → I can write a plugin!
- personal computers are programmable – take advantage of it! (https://www.zive.cz/clanky/zacnete-skutecne-vyuzivat-pocitac-programujte-ho/sc-3-a-171279/)
- I have a cool idea! Turn in into reality.
Source: zive.cz, Jakub Čížek
HOW?
2 THINGS
-
Logic
- The the problem apart – cycles (for) and conditionals (if)
HOW?
2 THINGS
-
Logic
- The the problem apart – cycles (for) and conditionals (if)
-
Google → English
- Do you have a problem? Somebody probably had it before.
- documentation, stackoverflow.com, mailing lists
HOW?
2 THINGS
-
Logic
- The the problem apart – cycles (for) and conditionals (if)
-
Google → English
- Do you have a problem? Somebody probably had it before.
- documentation, stackoverflow.com, mailing lists
-
Anything else helps
- blogs, fun projects, books, courses, meetings
HOW?
WE ARE
USED TO THIS
HOW?
WE ARE
USED TO THIS
Multiple ways:
-
for every balloon (colour 1):
-
for every pencil (colour 2):
-
if colour 1 = colour 2
- color the balloon
-
if colour 1 = colour 2
-
for every pencil (colour 2):
HOW?
WE ARE
USED TO THIS
Multiple ways:
-
for every balloon (colour 1):
-
for every pencil (colour 2):
-
if colour 1 = colour 2
- color the balloon
-
if colour 1 = colour 2
-
for every pencil (colour 2):
- for every pencil: for every balloon …
- find all [red, blue, green, …] balloons …
WHAT?
ANY LANGUAGE BASICALLY
- Python
- HTML5 + JavaScript
- C/C++
- C#, Java
- R
Python
- academical language
- heavily used in geoinformatics (ArcGIS, QGIS)
- easy to learn
- natural language-like syntax
JavaScript
Source: http://ihned.cz/mhd
MOST WIDESPREAD
- primarily client side web applications
- server side (node.js), mobile (phonegap)
-
cartography visualization
- leaflet.js
- openlayers
- Kartograph
R
STATISTICS
- data analysis
- academic environment
- statisticians
- two tests (with internet): 0–10 points each
- team project: 2–3 members, 0–20 points (5 pt. required)
- homeworks: mandatory and optional (bonus points)
What do I have to do?
CONDITIONS AND GRADING
0–17 F
18–24 E
25–28 D
29–32 C
33–36 B
37+ A
-
Team project:
- GI theme
- documented code
- protocol
- presentation
-
Absence:
-
e-mail
-
-
Homeworks:
-
mandatory ungraded
-
optional bonus points
-
What do I have to do?
ORGANIZATION
Recommended editors
Sublime Text – https://www.sublimetext.com/
Atom – https://atom.io/
PyCharm - http://www.jetbrains.com/pycharm/
Wing – https://wingware.com/
Lecture 0 - Introduction
By Šimon Leitgeb
Lecture 0 - Introduction
- 185