psfile in ps.map
Brian Culpepper
brian at cast.uark.edu
Wed Mar 15 10:57:34 EST 1995
t?Mar?15??95?12?14?49?pm at bnr.ca>
Reply-To: grassu-list at max.cecer.army.mil
NNTP-Posting-Host: ux1.cso.uiuc.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Originator: daemon at ux1.cso.uiuc.edu
>
> Hi,
> Who knows who you can position a postscript file included in your with ps.map
> script with psfile.
> My included logo postscript file is somewhere put at the top of my raster
> file defined in ps.map (the command where does not work in combination
> with psfile).
>
> Thanks,
> Okke
>
> VVVVVVVVVVVVVVVVVVVVVVUUUUUUUUUUUUUUUUUUUUUUUUBBBBBBBBBBBBBBBBBBBBBBBBBBBB
> Okke Batelaan email: batelaan at hydr1.vub.ac.be
> Laboratory of Hydrology NEW !! tel: x-32-2-6293021
> Free University Brussels NEW !! fax: x-32-2-6293022
> Pleinlaan 2
> 1050 BRUSSELS, BELGIUM
> HHHHHHHHHHYYYYYYYYYYDDDDDDDDDRRRRRRROOOOOOOOOLLLLLLLLLOOOOOOOOOGGGGGYYYYYY
>
Okke,
You will have to edit the postscript file. In this case your logo.
Search the file using vi (visual editor, etc.) to find gsave. Below that
should be the translate position of the postscript file. It is usually in point
s
but can be changed to inches, as shown below. This measurement is in map inches
and the origin, I believe, is the upper left corner of the map. You can also
change the scale of your logo from within the postscript file. I hope the
example file below will help you make sense of my instructions.:)
THIS IS THE ACTUAL FILE....
GRASS 4.1 > more CAST3X1.ps
/inch {72 mul} def
/picstr 646 string def
/plotimage
{646 210 8 [646 0 0 -210 0 210]
{currentfile picstr readhexstring pop}
image
} def
gsave
4.732 inch 0.875 inch translate
3 inch 1 inch scale
plotimage
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Hope this helped.
--
R. Brian Culpepper Research Specialist
---------------------------------------------------------------------
Center for Advanced Spatial Technologies (fax) 501 575-5218
Rm. 12 Ozark Hall 501 575-6159
University of Arkansas brian at cast.uark.edu
Fayetteville, AR 72701
=====================================================================
More information about the grass-user
mailing list