[GRASS-user] extrude vector points
Moritz Lennert
mlennert at club.worldonline.be
Fri Sep 7 10:41:03 EDT 2007
On 07/09/07 16:12, Martin Landa wrote:
> Hi,
>
> ok, now a little bit simplified (table parameter)...
>
I imagine this means that you are obliged to call your key column 'cat' ?
Moritz
> # create table containing transformation parameters
> echo "create table archsites_t (cat int, zs double)" | db.execute
> # insert transformation parameters for category 1
> echo "insert into archsites_t values (1, 1000)" | db.execute
> # insert transformation parameters for category 2
> echo "insert into archsites_t values (2, 2000)" | db.execute
>
> # perform transformation
> v.transform -t input=archsites output=archsites1 column="zshift:zs"
> table="archsites_t"
>
> # drop table contaning transformation parameters
> echo "drop table archsites_t" | db.execute
>
> Martin
>
>
> 2007/9/7, Martin Landa <landa.martin at gmail.com>:
>> Hi,
>>
>> now in CVS possible also using v.transform.
>>
>> Martin
>>
>> E.g.
>>
>> # create table containing transformation parameters
>> echo "create table archsites_trans (cat int, zs double)" | db.execute
>> # insert transformation parameters for category 1
>> echo "insert into archsites_trans values (1, 1000)" | db.execute
>> # insert transformation parameters for category 2
>> echo "insert into archsites_trans values (2, 2000)" | db.execute
>> # connect table contaning transformation parameters
>> v.db.connect archsites layer=1 table=archsites_trans -o
>> # perform transformation
>> v.transform in=archsites out=archsites_t col="zshift:zs"
>> # reconnect original table
>> v.db.connect archsites layer=1 table=archsites -o
>> # drop table contaning transformation parameters
>> echo "drop table archsites_trans" | db.execute
>>
>> 2007/8/23, Luigi Ponti <lponti at infinito.it>:
>>> Dear list,
>>>
>>> Is there a way to "extrude" 2D vector points to 3D points based on
>>> attribute column values, similar to what I have read v.extrude can do
>>> with lines? I have tried to use v.extrude with points but an empty 3D
>>> vector was created.
>>>
>>> Thanks and regards,
>>>
>>> Luigi
>>>
>>> _______________________________________________
>>> grassuser mailing list
>>> grassuser at grass.itc.it
>>> http://grass.itc.it/mailman/listinfo/grassuser
>>>
>>
>> --
>> Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
>>
>
>
More information about the grass-user
mailing list