[GRASS-user] SOLVED Determining number of overlapping features per location after import of shape file

Rainer M Krug r.m.krug at gmail.com
Tue Jun 24 08:25:43 EDT 2008


I forgot to mention: I did NOT get it to work with dbf and switched to
sqlite where it worked.

On Tue, Jun 24, 2008 at 2:21 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Tue, Jun 24, 2008 at 12:28 PM, Rainer M Krug <r.m.krug at gmail.com> wrote:
>> Hi
>>
>> I managed to solve it:
>
> great!
>
>>    v.in.ogr dsn=./shp/ layer=fireHistory output=fireHistory
>>    v.category input=fireHistory output=tmpFire
>>    v.db.addtable map=tmpFire table=tmpFire_2 layer=2 columns='num,int'
>>    v.to.db map=tmpFire layer=2 qlayer=1 option=query col=num
>> qcol='count(*)' type=centroid
>>
>> finally I can export it to a raster layer:
>>     v.to.rast input=tmpFire layer=2 output=mf use=attr column=num --overwrite
>>
>> Could the code on the website
>> http://grass.osgeo.org/screenshots/vector.php please be updated, as it
>> is not working under grass 6.3 and less commands are necessary?
>
> I have indicated the GRASS verison there.
>
>> Is there a WIKI to which I could upload the code?
>
> I have created a new FAQ:
> http://grass.osgeo.org/wiki/Vector_Overlapping_Areas
>
> List of FAQs:
> http://grass.osgeo.org/wiki/Category:FAQ
>
> Feel free to modify, rewrite, ... :)
>
> Markus
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa


More information about the grass-user mailing list