[GRASS-dev] How to check if a vector map is multi-layer?

Markus Metz markus.metz.giswork at gmail.com
Wed Oct 29 01:15:29 PDT 2014


On Wed, Oct 29, 2014 at 8:44 AM, Luca Delucchi <lucadeluge at gmail.com> wrote:
> On 28 October 2014 20:40, Markus Metz <markus.metz.giswork at gmail.com> wrote:
>
>>
>> So the question is how to handle multiple categories per feature and
>> layer instead of multiple layers per vector?
>>
>
> yes
>
>> Would it be so difficult to enable g.gui.rlisetup to handle these cases?
>>
>
> Yes, it should but we was looking for a generic method

The generic method is v.category option=print
>
>>> In order to
>>> avoid that it dies with ugly messages we want to catch such situations
>>> and exit with a proper error message...
>>
>> Alternatively, g.gui.rlisetup and the r.li.* logic could be changed to
>> accept such situations.
>>
>
> I think that r.li.* should work, the problem right now is in
> g.gui.rlisetup because "/" is a character not allowed for the name of
> new vectors.
> g.gui.rlisetup creates a new vector for any selected features and it
> add the cat as suffix for the name of the new vectors

Please try the attached patch for gui/wxpython/rlisetup.

Markus M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlisetup.patch
Type: text/x-patch
Size: 2838 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20141029/f59fb35e/attachment.bin>


More information about the grass-dev mailing list