[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-user
Subject:    Re: [GRASS-user] Add category for each centroid
From:       Sebastian Schubert <schubert.seb () googlemail ! com>
Date:       2011-11-06 15:07:02
Message-ID: 4EB6A296.1040606 () googlemail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On 06/11/11 11:13, Hamish wrote:
> Sebastian wrote:
>> I have a vector map with several polygons each
>> having a centroid. All polygons have the same
>> category:
>>
>>> v.db.select bb
>> cat|ART
>> 1|1
>>
>> Now, I want to have a category for each polygon
>> or each centroid. With that, I hope to be able to
>> access each polygon separately. I tried
>> everything I can find the in the manual, but
>> apparently not the correct command....
>>
>> Any idea?
> 
> 
> remove all cats, then re-apply new ones with v.category:
> 
> v.category option=del type=centroid
> v.category option=add type=centroid cat=1 step=1

Thanks for the hint!

After the commands above (and this what I missed), the categories have
to be inserted in the table:
v.to.db option=cat

Cheers
Sebastian


["signature.asc" (application/pgp-signature)]

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic