[GRASS-user] points to lines
Jorge Echeverri
jorge.echeverri at Stein.de
Fri Mar 9 10:06:35 EST 2007
Thanks for your comments.
I rewrote my file like this:
"X_COORDINATE","Y_COORDINATE"
L 2 1
3400630.04 5718486.603
3400639.238 5718515.776
1 1
L 2 1
3400639.238 5718515.776
3400648.641 5718546.057
1 2
L 2 1
3400648.641 5718546.057
3400665.041 5718562.99
1 3
L 2 1
3400665.041 5718562.99
3400625.996 5718597.349
1 4
Then I perform the import:
GRASS 6.2.1 (luenenxy):~ > v.in.ascii
input=/home/jorge/GrassGIS/luenenxy/jorge/koord1.csv out=koord_grass
format=standard --overwrite skip=1 cat=0 fs='space'
WARNUNG: Die Vektorkarte 'koord_grass' existiert bereits und wird
überschrieben.
Error reading ascii file:
[ ]
Erzeuge Topologie ...
4 primitives registriert
Building areas: 100%
0 Flächen erstellt
0 Inselflächen erstellt
Füge Inselflächen hinzu:
Füge Zentroide hinzu: 100%
Die Topologie wurde erstellt.
Anzahl von Knoten : 5
Anzahl von Primitives : 4
Anzahl von Punkten : 0
Anzahl von Linien : 4
Anzahl von Boundaries : 0
Anzahl von Zentroiden : 0
Anzahl von Flächen : 0
Anzahl von Inseln : 0
GRASS 6.2.1 (luenenxy):~ >
It seems to recognise the entities in the file but what does this error
message means ???
Error reading ascii file:
[ ] ???
Thanks in advace,
Jorge
Am Donnerstag, den 08.03.2007, 23:17 +0100 schrieb Moritz Lennert:
> On 08/03/07 18:00, Jorge Echeverri wrote:
> > Hi,
> >
> > I have to admit that I am an absolute beginner in GRASS.
> >
> > I need to import vector data from a text-file with this format:
> > x-begin,y-begin,x-end,y-end
> >
> > Any suggestion?
>
> v.in.ascii
>
> You will have to transform your data (e.g. with awk) to fit the standard
> format. Something like this (untested) should work:
>
> awk -F"," 'BEGIN{i=0} {i++;print "L 2 1";print $1,$2,i;i++;print
> $3,$4,i;print "1"}' YourFile | v.in.ascii -n format=standard
> out=YourMapName fs=" "
>
> See the v.in.ascii man page for details.
>
> Moritz
--
Jorge Echeverri, BSc Civ. Eng.
S & P CONSULT GMBH
Technologiequartier
Konrad-Zuse-Str. 6
D-44801 Bochum, Germany
Geschäftsführer: Dipl.-Ing. Robert Stein
Registergericht: Amtsgericht Bochum HRB 10769
Phone: +49(0) 234 51 67 193
Fax: +49(0) 234 51 67 109
Email: jorge.echeverri at stein.de
Internet: www.stein.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20070309/345405cd/attachment.html
More information about the grass-user
mailing list