[GRASSLIST:8864] RE: table of x, y and z points
Tiago Salgueiro
1010664 at isep.ipp.pt
Thu Nov 3 14:51:29 EST 2005
> > I have for example the following text file called teste:
>
>> x y z
>> 1 2 3
>> 2 3 2
>> 4 5 1
>> 3 1 2
>
>> I tried
>> $ v.in.ascii -z input=/home/teste fs=tab skip=1 and nothing happens.
>> Is the command correct?
>
>> Tiago Salgueiro
>
> ===============================
>
> A couple of reasons why it didn't work:
>
> You didn't specify an output filename for the output parameter. All
> parameters marked as required have to be completed.
>
> Your x and y coordinates don't correspond to real-world coordinates, so
> you
> would be unable to visualize your results even if the command was
> successful, unless you were working in an XY Location with no projection
> or
> coordinate system being used.
>
> Try filling in more of the parameters for v.in.ascii:
>
> $v.in.ascii -z input=/home/teste output=teste_out format=point fs=tab
> skip=1
> columns='x double precision, y double precision, z double precision, cat
> int' \
> x=1 y=2 z=3 cat=0
>
> Only use the -z flag if you want to create a 3D vector (for visualization
> in
> NVIZ). Otherwise, omit the -z flag and change the z= parameter to '0'. One
> other thing I noticed is that the spacing between your x-y columns and y-z
> columns are not equal. Make sure the columns are spaced equally.
>
> ~ Eric.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Eric Patton
>
> Technologist, Geo-Spatial Data Services
> Geological Survey of Canada (Atlantic)
> Natural Resources Canada
> Bedford Institute of Oceanography
> Dartmouth, Nova Scotia, Canada B2Y 4A2
>
> Postal address: P.O. Box 1006
> Courier address: 1 Challenger Drive
>
> Telephone: (902)426-7732
> Facsimile: (902)426-4104
> E-mail: epatton at NRCan.gc.ca
>
>
>
Like you said I try the following:
$v.in.ascii -z input=/home/tiago/teste output=teste_out format=point
fs=tab skip=1 columns='x double precision, y double precision, z double
precision, cat int' \ x=1 y=2 z=3 cat=0
with teste file like this:
x y z
1 1 1
2 2 2
3 3 3
4 4 2
5 5 1
GRASS just didn't made anything. Do you have some idea about what is wrong?
Thanks again!
_____________________
Cumprimentos/Best Regards,
Tiago Salgueiro
Nº1010664
More information about the grass-user
mailing list