[GRASS-git] [OSGeo/grass-addons] 7f2e58: r.in.vect: new addon to import a vector map as ras...

Paulo van Breugel noreply at github.com
Wed Aug 14 13:57:55 PDT 2024


  Branch: refs/heads/grass8
  Home:   https://github.com/OSGeo/grass-addons
  Commit: 7f2e5885234d6d00ebf667cc691a9d1da2096384
      https://github.com/OSGeo/grass-addons/commit/7f2e5885234d6d00ebf667cc691a9d1da2096384
  Author: Paulo van Breugel <paulo at ecodiv.earth>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    A src/raster/r.in.vect/Makefile
    A src/raster/r.in.vect/r.in.vect.html
    A src/raster/r.in.vect/r.in.vect.py
    A src/raster/r.in.vect/r_in_vect_im01.png
    A src/raster/r.in.vect/r_in_vect_im02.png
    A src/raster/r.in.vect/r_in_vect_im03.png
    A src/raster/r.in.vect/r_in_vect_im04.png

  Log Message:
  -----------
  r.in.vect: new addon to import a vector map as raster layer (#1143)

An new addon offering an alternative to importing a vector layer and then converting the vector to raster. With the addon, the input vector file is converted to a raster layer using gdal.Rasterize. The resulting raster is imported in GRASS GIS. This can speed up the whole process considerably if one only wants to work with the raster.

If the CRS of the vector layer differs from the current mapset, it will first be reprojected using ogr2ogr. By default, the addon respects the region settings, but the user can opt to create a raster layer matching the extent of the vector map.



---------

Co-authored-by: Veronica Andreo <veroandreo at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list