test_grass_session.py 414 B

12345678910
  1. # Import GRASS Python bindings
  2. from grass_session import Session
  3. import grass.script as grass
  4. with Session(gisdb="/grassdata/", location="test", mapset="PERMANENT", create_opts='EPSG:25832'):
  5. print("Tests for PROJ, GDAL, PDAL, GRASS")
  6. # simple test: just scan the LAZ file
  7. grass.run_command('r.in.pdal', input="/tmp/simple.laz", output='count_1', method='n', flags="s", resolution=1, overwrite=True)