v.out.xfig (was: Re: [GRASS5] wrapper for awk?)

mlennert at ulb.ac.be mlennert at ulb.ac.be
Wed Mar 7 08:28:30 EST 2001


neteler at geog.uni-hannover.de said:
> Moritz, could you try?

> cvs up src/scripts/contrib/v.xfig

> v.out.xfig v.in.xfig

I have no v.in.xfig in the v.xfig directory, but v.out.xfig works with awk 
being in /usr/bin/awk.

I still have the problem that some of the files are not readable at all by xfig. If I see the pattern correctly it seems to be because v.out.xfig writes the coordinates in exponential format (7.67352e+11 4.57982e+11). Since xfig fails in those lines, I suppose that must be the problem.

I also have a file (with "normal" coordinates) where I get no error message and I can see the content of the file (circles made with v.bubble) in the preview window of xfig's file open window, but I don't see anything anymore once I open the file. I've tried zooming in and out to the max, but haven't found anything. 

I created a test x-y location, 10x10, with three objects. The ascii vector file contains:

ORGANIZATION: USDA Nat. Res. Cons. Serv.
DIGIT DATE:   
DIGIT NAME:   
MAP NAME:     
MAP DATE:     
MAP SCALE:    1
OTHER INFO:   
ZONE:         0
WEST EDGE:    0
EAST EDGE:    10
SOUTH EDGE:   0
NORTH EDGE:   10
MAP THRESH:   0
VERTI:
A  4
 7.06867672   4.38860972  
 4.43886097   7.38693467  
 4.48911223   2.54606365  
 7.06867672   4.3718593   
A  5
 3.70184255   3.14907873  
 3.70184255   6.18090452  
 1.62479062   6.1641541   
 1.6080402    3.06532663  
 3.70184255   3.11557789  
A  4
 3.70184255   3.11557789  
 4.50586265   3.04857621  
 4.42211055   6.19765494  
 3.68509213   6.14740369  

The file that results from v.out.xfig contains:

#FIG 3.2
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
4 0 0 100 0 0 12 0. 4 0 0 236 436 SCALE=1 W=0 E=10 S=0 N=10 \001
2 1 0 1 1 3 100 0 20 0.000 0 0 -1 0 0 4
207572 138723
349225 262967
120522 260593
206780 138723
2 1 0 1 1 3 100 0 20 0.000 0 0 -1 0 0 5
149011 297786
292247 297786
291456 395915
145054 396706
147428 297786
2 1 0 1 1 3 100 0 20 0.000 0 0 -1 0 0 4
147428 297786
144263 259801
293038 263758
290664 298578


i.e. the coordinates are much higher. I can see this drawing by zooming out very far, but is this normal behavior ?

Moritz


---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list