[GRASS-dev] ps.map: scale wrong and no output
Maciej Sieczka
tutey at o2.pl
Wed Nov 15 15:54:01 EST 2006
Hi,
ps.map calculates the scale wrong.
In a following region:
$ g.region -g
n=5603200
s=5572300
w=3661900
e=3709600
nsres=100
ewres=100
rows=309
cols=477
a following ps.map syntax:
---
raster dol
paper a0
end
end
---
leads to the calculated scale is wrong:
$ ps.map input=ps.txt out=dol.ps
PS-PAINT: scale set to 1 :
189563909041466328239248756598074334180039196672.
PS-PAINT: reading raster file <dol in PERMANENT> ...
PS-PAINT: PostScript file "dol2.ps" successfully written.
... and the file is corrupted.
Interestingly, each another run calculates a different scale, eg.:
1 : 142326034786662069525054397244000749605886099456
1 : 117895386731897106408980263771204349942212591616
1 : 130987549471569116744136784814156140792334254080
If I define the paper manually, like:
height 46.77
width 33.07
left 1
right 1
bottom 1
top 1
All is OK, the calculated scale is 1:37000.
Maciek
More information about the grass-dev
mailing list