News in GRASS GIS7. Plenary talk at FOSS4G-CEE 2013, Romania


Published on

GRASS GIS, commonly referred to as GRASS (Geographic Resources Analysis Support System), is the free Geographic Information System (GIS) software with the longest record of development as FOSS4G community project. The increasing demand for a robust and modern analytical free GIS led to the start of GRASS GIS 7 development in April 2008. Since GRASS 6 more than 10,000 changes have been implemented with a series of new modules for vector network analysis, image processing, voxel analysis, time series management and improved graphical user interface ( The core system offers a new Python API and large file support for massive data analysis. Many modules have been undergone major optimization also in terms of speed. The presentation will highlight the advantages for users to migrate to the upcoming GRASS GIS 7 release.

Published in: Technology

News in GRASS GIS7. Plenary talk at FOSS4G-CEE 2013, Romania

  1. 1. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseMarkus NetelerFondazione E. Mach – CRI, Italy GRASS Development TeamFOSS4G-CEE 2013Bucharest, RomaniaNews in GRASS GIS 7
  2. 2. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS GIS 7 User interfaceDE JA PL
  3. 3. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS GIS: InteroperabilityLAS
  4. 4. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS: Project database (Location) wizardFrom GeoTIFFor SHAPE or ...And directlyimport file
  5. 5. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: New map histogram toolUsing the Wake county “elevation” map:Map will be preselectedif selected in Layer Manager
  6. 6. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: Adding a grid to the map view● Grids● Labels● Geodesic lines● Rhumblines
  7. 7. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: New Geospatial ModellerExtra bonus:export to Python scripts
  8. 8. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: New visualization tool: wxNVIZ Kratochvílová
  9. 9. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseVector geometry typesPointCentroidLineBoundaryArea (boundary + centroid)face (3D area)[kernel (3D centroid)][volumes (faces + kernel)]Geometry is true 3D when: x, y, znotinallGIS!FacesGRASS Topological 2D/3D Vector model
  10. 10. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: Topological Vector Digitizer
  11. 11. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: Topological Vector Digitizerin PostGIS 2 (under development) Martin LandaCofunded by Municipality of Trento, Italy
  12. 12. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseNews in GRASS 7s Vector TopologySpatial query exampleQuery of vector point mapsGUI: click on vector map, what is there?CLI: v.what east_north=east,north0 2 4 6 8 10 120120240360480600GRASS 6.4.2GRASS 7million pointsseconds
  13. 13. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseVector network analysis in GRASSGRASS vector network analysis
  14. 14. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseVector network analysisGeneral concept of a network graph● Arcs connected by nodes● Forward/backward costs assigned to each arc (oneway road)● Starting point(s)● Ending point(s)GRASS vector analysisCost definition examples● Distance● Travelling time● Travelling costs (fuel, train ticket, etc) shortest path fastest path cheapest pathGsoC 2013: implementation of turns support
  15. 15. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseTraveling time as costsResultNetwork analysis: traveling salesman
  16. 16. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseDistances as costsResultNetwork analysis: traveling salesman
  17. 17. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseDistances as costsResultNetwork analysis: allocate subnets… and many more algorithms... see the manual!
  18. 18. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseNew Space-Time functionality in GRASS 7
  19. 19. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: New animation tool for time series
  20. 20. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseNew Map swiping tool for multitemporal mapsPre and post disaster images of the tsunami in Japan in 2011(MODIS images taken on February 26 and March 13, 2011)
  21. 21. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: New geocoding toolImage/Map rectifierFor raster (imagery,historic scans) andvector maps
  22. 22. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7 Addons: User contributed extensions Addons repository is SVN based:User can easily obtain write access to develop new functionalityInstallation withextension managerIncreasing inflowof Python scripts
  23. 23. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseSupport for massivespatial datasetsin GRASS GIS
  24. 24. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: Support for massive datasetsWhat is massive?Massive is relative toHardware resourcesSoftware capabilitiesOperating system capabilitiesLimiting factorsRAMProcessing timeDisk spaceLargest supported file size
  25. 25. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: Support for massive datasetsCost surfaces: r.cost0 1 2 3 4 5 6 7 8 9 100120240360480600GRASS 6.4.2GRASS 7million pointssecondsOther speed figure:PCA of 30 million pixelsin 6 seconds on this smallpresentation laptop...
  26. 26. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseMain basinsNew tools for hydrological modellingDistance to the outlet
  27. 27. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseProgramming own applicationswith GRASS GIS 7
  28. 28. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS and PythonScript part:Parser part (for GUI autocreation and command line support):
  29. 29. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseNew GRASS 7 Python API
  30. 30. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseNew GRASS 7 Python API
  31. 31. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7 Programmers manual
  32. 32. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS GIS as Open Source GIS backbone:Connecting to other software packages
  33. 33. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseNew GRASS and QGIS Integration: Sextante
  34. 34. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseSEXTANTE – GRASSIntegration: ModellerNote:Partially functional ingvSIG OADE 2010,more to come in (near) future...
  35. 35. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseQGIS-Sextante – Using GRASS in QGIS via Sextante123
  36. 36. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseQGIS-Sextante – Vector dissolving exampleDissolving geometry by string column attributes:Sextante calls GRASS GIS in a virtual sessionwhich deliver the result back (here SHAPE file)
  37. 37. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: Native WPS Support
  38. 38. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS and R IntegrationGRASS 7.0.svn (nc_spm_08_grass7):~ > RR version 3.0.1 (2013-05-16) -- "Good Sport"Copyright (C) 2013 The R Foundation for Statistical ComputingPlatform: x86_64-redhat-linux-gnu (64-bit)> library(spgrass6)Loading required package: spLoading required package: XMLGRASS GIS interface loaded with GRASS version: GRASS 7.0.svn (2013)and location: nc_spm_08_grass7>> myrast <- readRAST6(c("geology", "elevation"), cat=c(TRUE, FALSE))> myvect <- readVECT6("roads")…> writeRAST6(myrast, "elev_filt", zcol="elev")...
  39. 39. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseVisualization
  40. 40. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseVisualization: GRASS data exportto for Augmented RealityGRASS GIS,Paraview, andARToolkit
  41. 41. ©2013,MarkusNeteler,Italy–CC-BY-SAlicense FEM colleague-->Personal comm.A researchers brain... From MRT scanto Voxels
  42. 42. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseA researchers brain... From MRT scanto Voxels
  43. 43. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseA researchers brain... From MRT scanto Voxels
  44. 44. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseA researchers brain... From MRT scanto Voxels
  45. 45. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: News in Image processingImproved modules:GeorectificationOrthorectificationAtmospheric correctionTerrain correctionLandsat cloud detection
  46. 46. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseOrtho-rectification of aerial imagesWhy using the DEM for imagerectification:Incorporating the DEMfixes the rectificationproblemLinear rectification (insufficient)(Problem commonly seen in Google Earth)Ortho-rectificationOK at bottomof valleyWrong inaltitudeWrong inaltitudeIncorporating the DEMfixes the rectificationproblem
  47. 47. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseGRASS 7: New bivariate ScatterplotsLANDSAT 7 2002 channels 1 and 3 of Wake county, NC
  48. 48. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseSupervised image classification for supervised classification of imagery data.Generates spectral signatures for an image by allowingthe user to outline regions of interest.
  49. 49. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseUnsupervised image classification – Segmentation# set comp. region to orthophoto but align pixels to elevation map (for speed reasons in# this demonstrational exercise – for real work please use the true resolution)g.region align=elev_lid792_1m -p# Note: the RGB bands are organized as a groupi.segment group=ortho2010_t792_subset_20cm output=ortho2010_t792_subset_20cm_segment goodness=ortho2010_t792_subset_20cm_seg_fit threshold=0.25Finally vectorize with - Identifies segments (objects) from imagery data.
  50. 50. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseWhere is the stuff?GRASS GIS Software:Free download for MS Windows, MacOSX, Linux and source code: (user contributed extensions): sample data:Rich data set of North Carolina (NC)… available as GRASS GIS location and in common GIS formats Help:Mailing lists (also in different languages):
  51. 51. ©2013,MarkusNeteler,Italy–CC-BY-SAlicenseMarkus NetelerFondazione E. Mach (FEM)Centro Ricerca e InnovazioneGIS and Remote Sensing Unit38010 S. Michele allAdige (Trento), Italyhttp://gis.cri.fmach.ithttp://www.osgeo.orgmarkus.neteler@fmach.itneteler@osgeo.orgEnjoy GRASS GIS 7!THANKS!PostGISomicshttp://grass.osgeo.org