diff --git a/foss4gna2024.html b/foss4gna2024.html index 280506b..d36a293 100644 --- a/foss4gna2024.html +++ b/foss4gna2024.html @@ -165,11 +165,11 @@
r.horizon: + Output for multiple points, distances, and many other improvements
+ + + + by Anna Petrasova, funded by NSF Award #2322073, granted to Natrx, Inc. +(format="json")
in multiple tools (v.db.select, t.rast.list, …)
- r.info elevation format=json
+ v.db.select roadsmajor format=json
+ + With better integration in Python: +
- {
- "north": 228500,
- "south": 215000,
- "nsres": 10,
- "east": 645000,
- "west": 630000,
- "ewres": 10,
- "rows": 1350,
- "cols": 1500,
- "cells": 2025000,
- "datatype": "FCELL",
- "ncats": 255,
- "min": 55.578792572021484,
- "max": 156.32986450195312,
- "map": "elevation",
- ...
- }
+ import json
+ import grass.script as gs
+
+ data = gs.parse_command("v.db.select", map="roadsmajor", format="json")
+ for row in data["records"]:
+ print(row["ROAD_NAME"])
- JSON output format support (format="json")
in multiple tools
- (e.g., r.report, r.info, v.db.select, t.rast.list, etc.)
More coming in 8.5 + (r.report, r.info, …)
- by Kriti Birda, Corey White, Vaclav Petras and others + by Anna Petrasova, Vaclav Petras, Huidae Cho, Kriti Birda, Corey White, and othersr.horizon: - Output for multiple points, distances, and many other improvements
- - - - by Anna Petrasova, funded by NSF Award #2322073, granted to Natrx, Inc. ---tmp-project
with --exec
--tmp-location
is now --tmp-project
+ grass --tmp-project EPSG:3358 --exec \
+ r.viewshed input=elevation \
+ output=viewshed coordinates=642964,222890
+
+ --tmp-location
continues to work
grass.script
Python package:
grass.jupyter
Python package:
@@ -406,22 +410,30 @@
grass.jupyter.SeriesMap
class for animating series of vectors or rasters. See grass.jupyter.SeriesMap doc.ipyleaflet
integration to create a map in ipyleaflet and add GRASS data in a single line
- series = gj.SeriesMap(height = 500)
- series.add_rasters(["elevation_shade", "geology", "soils"])
- series.add_vectors(["streams", "streets", "viewpoints"])
- series.d_barscale()
- series.show()
+ m = InteractiveMap(map_backend="ipyleaflet")
+ m.add_vector("streams")
+ m.add_raster("elevation")
+ m.show()
+
+ s = gj.SeriesMap(height = 500)
+ s.add_rasters(["elevation_shade", "geology", "soils"])
+ s.add_vectors(["streams", "streets", "viewpoints"])
+ s.d_barscale()
+ s.show()
+
+
+ by Caitlin Haedrich, Riya Saxena, Anna Petrasova
+
--exec
grass /grassdata/nc_spm/work1 --exec \ - r.viewshed input=elevation \ - output=viewshed coordinates=642964,222890 -
--json
r.viewshed \ - input=elevation \ - output=viewshed \ - coordinates=642964,222890 \ - --json --
- Still available as before, but… -
- -