test_grass_session.py 519 B

12345678910111213141516171819202122
  1. # Import GRASS Python bindings
  2. # https://github.com/zarch/grass-session
  3. from grass_session import Session
  4. import grass.script as gs
  5. with Session(
  6. gisdb="/grassdata/", location="test", mapset="PERMANENT", create_opts="EPSG:25832"
  7. ):
  8. print("Tests for PROJ, GDAL, PDAL, GRASS")
  9. # simple test: just scan the LAZ file
  10. gs.run_command(
  11. "r.in.pdal",
  12. input="/tmp/simple.laz",
  13. output="count_1",
  14. method="n",
  15. flags="g",
  16. resolution=1,
  17. overwrite=True,
  18. )