I am trying to create a single hexagon raster mask. The only possible
way, currently, seems to be `v.mkgrid -h`, and then a rasterisation.

Using `v.mkgrid -h map=hexagon grid=1,1 --o`, I always get the "ERROR:
Please use a higher resolution or a larger region".

I have tried to do as the message recommends, but it does not work. Not
when increasing the resolution, nor when increasing the region.

I checked the code that tests for this in `main.c`:

```
        if (grid_info.east - grid_info.west < 3.5 * grid_info.crad) {
            G_fatal_error(_("Please use a higher resolution or a larger 
region"));
        }
        if (grid_info.north - grid_info.south < 3 * grid_info.rstep) {
            G_fatal_error(_("Please use a higher resolution or a larger 
region"));
        }
```

I guess it takes some time to understand the reasoning behind these
tests. Is it really not possible to create a single hexagon, that
touches upon the edges of the computational region?

Nikos

Attachment: signature.asc
Description: PGP signature

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to