On Fri, Jun 24, 2011 at 6:49 PM, Roger Bivand <Roger.Bivand@nhh.no> wrote:

> On Fri, 24 Jun 2011, Rainer M Krug wrote:
>
>  Hi
>>
>> Is it possible to import a 3D vector from GRASS into R, so that all three
>> dimensions are available?
>>
>> I have 3D lines in GRASS which which I have to do some calculations from
>> the z-values.
>>
>
> Hi,
>
> I don't think so. The code in rgdal does not accept any third dimension in
> lines or polygons, but may accept Z for points - the same applies to code
> for reading vector objects in maptools from shapefiles. Can you use
> v.to.points -v first to generate points? I think that you'd need to copy the
> input entity label or FID if possible to retain information on which point
> belongs to which line. This can also be reconstituted from the lengths
> starting at 0 in the second layer created by v.to.points.
>

Hi Roger,

thanks a lot. I'll follow it up with another question more focussed on my
problem - maybe I don't even have to export it.

Thanks,

Rainer

>
> Hope this helps,
>
> Roger
>
>
>> Cheers,
>>
>> Rainer
>>
>>
>>
> --
> Roger Bivand
> Department of Economics, NHH Norwegian School of Economics,
> Helleveien 30, N-5045 Bergen, Norway.
> voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand@nhh.no
>
>


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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

	[[alternative HTML version deleted]]

