[Mapserver-users] printing a map with a defined scale

Ellis Robin Bundaberg Robin.Ellis at nrm.qld.gov.au
Tue Jul 29 18:22:21 EDT 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3561F.E142DD28
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I think the problem occurs because the screen resolution of the user's syst=
em is different ot that assumed to be the default by Mapserver, and is rela=
ted i think to the dots per inch used to build and display the image (I'm s=
ure somebody else can supply all the technical details). I have found that =
to overcome this for our internal tools I add the following line to the map=
 file:
=20
RESOLUTION 96
=20
>From memory of earlier discussions Mapserver assumes a resolution of 72 unl=
ess told otherwise.
=20
Rob

-----Original Message-----
From: fx gamoy [mailto:fx.gamoy at mapxplore.com]
Sent: Tuesday, 29 July 2003 8:57 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] printing a map with a defined scale


hello world,
i would like to add a print function with a defined scale. The results i ob=
tain for the moment are bad and the scale given by mapserver is not the sam=
e as the document source. The mapserver printed map image (scale =3D 1/1000=
) is smaller than for example the same printed map with mapinfo (scale=3D1/=
1000).
=20
I hope this is understandable.
thanks=20
fx



************************************************************************
The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited. =20
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network. =20
************************************************************************


------_=_NextPart_001_01C3561F.E142DD28
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">


<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff si=
ze=3D2>I=20
think the problem occurs because the screen resolution of the user's system=
 is=20
different ot that assumed to be the default by Mapserver, and is related i =
think=20
to the dots per inch used to build and display the image (I'm sure somebody=
 else=20
can supply all the technical details). I have found that to overcome this f=
or=20
our internal tools I add the following line to the map file:</FONT></SPAN><=
/DIV>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff=20
size=3D2>RESOLUTION 96</FONT></SPAN></DIV>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff si=
ze=3D2>From=20
memory of earlier discussions Mapserver assumes a resolution of 72 unless t=
old=20
otherwise.</FONT></SPAN></DIV>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D056371922-29072003><FONT face=3DArial color=3D#0000ff=20
size=3D2>Rob</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT face=3DTah=
oma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> fx gamoy=20
  [mailto:fx.gamoy at mapxplore.com]<BR><B>Sent:</B> Tuesday, 29 July 2003 8:5=
7=20
  PM<BR><B>To:</B> mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
  [Mapserver-users] printing a map with a defined scale<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>hello world,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>i would like to add a print function wit=
h a=20
  defined scale. The results i obtain for the moment are bad and the scale =
given=20
  by mapserver is not the same as the document source. The mapserver printe=
d map=20
  image (scale =3D 1/1000)&nbsp;is smaller than for example the same printe=
d map=20
  with mapinfo (scale=3D1/1000).</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I hope this is understandable.</FONT></D=
IV>
  <DIV><FONT face=3DArial size=3D2>thanks </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>fx</FONT></DIV></BLOCKQUOTE><FONT SIZE=
=3D3><BR>
<BR>
************************************************************************<BR>
The information in this e-mail together with any attachments is<BR>
intended only for the person or entity to which it is addressed<BR>
and may contain confidential and/or privileged material.<BR>
Any form of review, disclosure, modification, distribution<BR>
and/or publication of this e-mail message is prohibited.  <BR>
If you have received this message in error, you are asked to<BR>
inform the sender as quickly as possible and delete this message<BR>
and any copies of this message from your computer and/or your<BR>
computer system network.  <BR>
************************************************************************<BR>
</FONT>
</BODY></HTML>

------_=_NextPart_001_01C3561F.E142DD28--



More information about the mapserver-users mailing list