[GRASS-dev] [GRASS-user] v.neighors error:region do not overlap

Markus Neteler neteler at osgeo.org
Thu Aug 6 05:08:48 PDT 2015


On Wed, Aug 5, 2015 at 4:51 PM, Anna Petrášová <kratochanna at gmail.com> wrote:
> On Wed, Aug 5, 2015 at 10:25 AM, patrick s. <patrick_gis at gmx.net> wrote:
>>
>> UPDATE:
>>
>> The error of v.neighbors does not appear when importing points only for a
>> region:  "v.in.ogr -r"
>>
>> So definitely a problem of v.neighbors.
>
>
> Looking at v.neighbors source code [1], the message seems wrong, it should
> be something like "Some input vector points are outside of computational
> region". But I don't understand why this should prevent v.neighbors from
> running. Perhaps this test could be removed?

The test got added in
https://trac.osgeo.org/grass/changeset/62746

The motivation I don't know. How about changing it from error msg to a
warning for now?

Markus

> Anna
>
> [1]
> https://trac.osgeo.org/grass/browser/grass/trunk/vector/v.neighbors/main.c#L95


More information about the grass-dev mailing list