[Mapserver-users] .tiff resolution

Ed McNierney ed at topozone.com
Thu Feb 6 16:35:54 EST 2003


This is a multi-part message in MIME format.

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

Charlton -
=20
You need to make sure that (a) the spatial extents of the image =
displayed are the same in both cases and (b) the physical dimensions of =
the image in pixels are the same in both cases.
=20
You don't mention the spatial resolution of your image, but here's an =
example.  You can check your WLD file to see the X and Y sizes of a =
pixel.  Let's assume they're both 3 meters; in that case you need to be =
sure the EXTENT of the image in meters is 3 times the number of pixels =
displayed in each dimension.
=20
If you need more info it would help to post your MAP and WLD files.
=20
    - Ed
=20
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242=20
=20
-----Original Message-----
From: Charlton Purvis [mailto:cpurvis at asgnet.psc.sc.edu]
Sent: Thursday, February 06, 2003 4:01 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] .tiff resolution


I'd like a 72dpi .tiff to be displayed as accurately in MapServer as it =
is Photoshop.  This .tiff is a product of ArcMap.  I took a .shp and =
exported it to a map (.tiff, 72dpi).  Before I did this I set the =
extents manually.  I used these extents to fill in my MapServer extents. =
 A .wld was also a product of the ArcMap .tiff translation.  So I =
carried that over to my data directory along w/ the .tiff.
=20
So I've ended up w/ a .tiff and a .wld, but I must be missing something =
since it really doesn't look as clean from w/i MapServer as I think a =
72dpi image should.  What can I adjust?
=20
The MapServer width and height are in proportion to the extents, and I'm =
working exclusively under MapLab.  I haven't hardcoded anything under =
the min/max scale (mostly because I don't have a firm grasp on what that =
is actually doing).
=20
Any help would greatly be appreciated.
=20
=20
=20
=20
Charlton Purvis
(803) 777-4453 : voice
(803) 777-8833 : fax
cpurvis at sc.edu
=20
Advanced Solutions Group
Department of Physics and Astronomy
University of South Carolina
Columbia, SC 29208
=20

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml at 01C2CDF8.E445AC30" =
rel=3DFile-List><o:SmartTagType=20
name=3D"PostalCode"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"State"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"City"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"PlaceName"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"PlaceType"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><o:SmartTagType=20
name=3D"place"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:DrawingGridHorizontalSpacing>6 pt</w:DrawingGridHorizontalSpacing>
  =
<w:DisplayHorizontalDrawingGridEvery>2</w:DisplayHorizontalDrawingGridEve=
ry>
  =
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; =
mso-paper-source: 0; }
P.MsoNormal {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Arial; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Arial; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: Arial; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dpurple =
link=3Dblue>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2>Charlton -</FONT></SPAN></DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =
size=3D2>You=20
need to make sure that (a) the spatial extents of the image displayed =
are the=20
same in both cases and (b) the physical dimensions of the image in =
pixels are=20
the same in both cases.</FONT></SPAN></DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =
size=3D2>You=20
don't mention the spatial resolution of your image, but here's an =
example.&nbsp;=20
You can check your WLD file to see the X and Y sizes of a pixel.&nbsp; =
Let's=20
assume they're both 3 meters; in that case you need to be sure the =
EXTENT of the=20
image in meters is 3 times the number of pixels displayed in each=20
dimension.</FONT></SPAN></DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =
size=3D2>If you=20
need more info it would help to post your MAP and WLD =
files.</FONT></SPAN></DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D031193221-06022003>&nbsp;&nbsp;&nbsp; <FONT =
face=3DArial=20
color=3D#0000ff size=3D2>- Ed</FONT></SPAN></DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D031193221-06022003>
<P><FONT size=3D2>Ed McNierney<BR>President and Chief =
Mapmaker<BR>TopoZone.com /=20
Maps a la carte, Inc.<BR>73 Princeton Street, Suite 305<BR>North =
Chelmsford,=20
MA&nbsp; 01863<BR>ed at topozone.com<BR>(978) 251-4242 =
</FONT></P></SPAN></DIV>
<DIV><SPAN class=3D031193221-06022003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Charlton Purvis=20
  [mailto:cpurvis at asgnet.psc.sc.edu]<BR><B>Sent:</B> Thursday, February =
06, 2003=20
  4:01 PM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
  [Mapserver-users] .tiff resolution<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN =
style=3D"FONT-SIZE: 10pt">I&#8217;d=20
  like a 72dpi .tiff to be displayed as accurately in MapServer as it is =

  Photoshop.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>This .tiff =
is a=20
  product of ArcMap.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>I =
took a .shp=20
  and exported it to a map (.tiff, 72dpi).<SPAN style=3D"mso-spacerun: =
yes">&nbsp;=20
  </SPAN>Before I did this I set the extents manually.<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>I used these extents to fill =
in my=20
  MapServer extents.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>A =
.wld was=20
  also a product of the ArcMap .tiff translation.<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>So I carried that over to my =
data=20
  directory along w/ the .tiff.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN =
style=3D"FONT-SIZE: 10pt">So=20
  I&#8217;ve ended up w/ a .tiff and a .wld, but I must be missing =
something since it=20
  really doesn&#8217;t look as clean from w/i MapServer as I think a =
72dpi image=20
  should.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>What can I=20
  adjust?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN =
style=3D"FONT-SIZE: 10pt">The=20
  MapServer width and height are in proportion to the extents, and =
I&#8217;m working=20
  exclusively under MapLab.<SPAN style=3D"mso-spacerun: yes">&nbsp; =
</SPAN>I=20
  haven&#8217;t hardcoded anything under the min/max scale (mostly =
because I don&#8217;t=20
  have a firm grasp on what that is actually=20
doing).<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN =
style=3D"FONT-SIZE: 10pt">Any=20
  help would greatly be appreciated.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-no-proof: =
yes">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-no-proof: =
yes">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-no-proof: =
yes">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">Charlton =
Purvis</SPAN></FONT><SPAN=20
  style=3D"mso-no-proof: yes"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">(803) 777-4453 :=20
  voice</SPAN></FONT><SPAN style=3D"mso-no-proof: =
yes"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">(803) 777-8833 :=20
  fax</SPAN></FONT><SPAN style=3D"mso-no-proof: =
yes"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes"><A=20
  href=3D"mailto:cpurvis at sc.edu">cpurvis at sc.edu</A></SPAN></FONT><SPAN=20
  style=3D"mso-no-proof: yes"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; mso-no-proof: =
yes">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">Advanced Solutions=20
  Group<BR>Department of Physics and=20
  Astronomy<BR></SPAN></FONT><st1:place><st1:PlaceType><FONT =
size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: =
yes">University</SPAN></FONT></st1:PlaceType><FONT=20
  size=3D1><SPAN style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes"> of=20
  </SPAN></FONT><st1:PlaceName><FONT size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">South=20
  Carolina</SPAN></FONT></st1:PlaceName></st1:place><FONT size=3D1><SPAN =

  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: =
yes"><BR></SPAN></FONT><st1:place><st1:City><FONT=20
  size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: =
yes">Columbia</SPAN></FONT></st1:City><FONT=20
  size=3D1><SPAN style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">,=20
  </SPAN></FONT><st1:State><FONT size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: =
yes">SC</SPAN></FONT></st1:State><FONT=20
  size=3D1><SPAN style=3D"FONT-SIZE: 7.5pt; mso-no-proof: yes">=20
  </SPAN></FONT><st1:PostalCode><FONT size=3D1><SPAN=20
  style=3D"FONT-SIZE: 7.5pt; mso-no-proof: =
yes">29208</SPAN></FONT></st1:PostalCode></st1:place><o:p></o:p></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML=
>

------_=_NextPart_001_01C2CE27.BA4095FB--



More information about the mapserver-users mailing list