workshop on oshw
DESCRIPTION
Presentation for FOSS4G-Asia 2014, BangkokTRANSCRIPT
…
Measuring coffee holding capacity in office
…
?
� � � �
•
•
••
••••
…
●○○○
•
•
•
•
…
❖➢➢➢
❖➢➢➢➢➢
●○○○○
●○○
…
• •
•
•
••
•
•
•
DATA RECORDS FROM SENSORS
…
…
…
QGIS
We will see how to read CSV files from the Weather Station in QGIS
Python-OGR
This section shows how to code in Python-OGR the import and conversion of CSV point data into a shapefile
•••••••••
•••
………………
………………………
…
GRASS
To import in GRASS, first create a “LL”(Geographical, Lat/Lon) Location from scratch. Then follow the next slide.
Import in GRASS & export to shapefile
pyGRASS
This pyGRASS code is running from within a GRASS session, though it can be run externally too. It is following the same procedure than in GRASS command line, but adds more scripting control.
Preambule
#Run this script in the terminal as:#python oshw_pygrass.py
#For debugging, run as:#python -i oshw_pygrass.py
#PURPOSE#Import a CSV [X,Y,Z,DATA] file in GRASS GIS#Also export to shp out.
Set variables
Libraries
Set message reporting to GUI
Read CSV file from CLI argument
Import in GRASS & create a shapefile
…
Libraries
Libraries, more
Process Class initialisation
I/O
Khob Khun Na Krub