[Mapserver-users] TIFF-Display

Olaf Knopp oknopp at kartago.de
Tue Jun 17 08:48:59 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C334DF.95BFC430
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Ed,

the TIFF is georeferenced with a TFW File. As said, scale and =
coordinates are ok and the reference map shows the correct view.

I opened a TIFF which worked with another mapserver application a few =
minutes ago with IrfanView and saved it as TIFF (without editing). After =
saving with IrfanView the map-window was white, as if mapserver was able =
to show the image, but sets all colors to white.=20
Is there an image conversion tool to produce TIFFs that mapserver can =
show?

Thanks=20
Olaf
  ----- Original Message -----=20
  From: Ed McNierney=20
  To: Olaf Knopp ; MapServer Liste=20
  Sent: Tuesday, June 17, 2003 2:35 PM
  Subject: RE: [Mapserver-users] TIFF-Display


  Olaf -

  =20

  How did you add geographic reference information to your TIFF so =
MapServer knows where it is in the world?  You need to have created =
either a GeoTIFF with the coordinate info in the TIFF itself, or a world =
file with a TFW or WLD extension to go with it.

  =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

  Phone: (978) 251-4242  Fax: (978) 251-1396

  ed at topozone.com

  =20

  -----Original Message-----
  From: Olaf Knopp [mailto:oknopp at kartago.de]=20
  Sent: Tuesday, June 17, 2003 5:31 AM
  To: MapServer Liste
  Subject: [Mapserver-users] TIFF-Display

  =20

  Hello,

  =20

  i have got a problem with the display of a tiff-image. Mapserver shows =
a white map (and produces a white .png), but navigation is possible, the =
square on the refenenz map is ok and scale/scalebar also. There is no =
difference if the tiff is black/white (1 bit) or 8 bit, it never shows =
an i get no error message from mapserver.=20

  When i use another tiff from another project it works!!

  =20

  The tiff was made with IrfanView (no compression, 256 Colors (counted =
16), 8 Bit):

  =20

  Here a part of my mapfile:

  =20

  LAYER

      NAME "Hintergrund"

      DATA "Stadtplan.tif"

      TYPE RASTER

      OFFSITE 1

      STATUS ON

  END

  =20

  Thanks for your help!

  Olaf


------=_NextPart_000_0008_01C334DF.95BFC430
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3513.900" name=3DGENERATOR>
<STYLE>@font-face {
	font-family: Courier;
}
@font-face {
	font-family: Tahoma;
}
P.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
LI.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
DIV.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN-LEFT: 0in; =
MARGIN-RIGHT: 0in
}
SPAN.EmailStyle18 {
	COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY bgColor=3Dwhite lang=3DEN-US link=3Dblue vLink=3Dpurple>
<DIV><FONT face=3DArial size=3D2>Hi Ed,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>the TIFF is georeferenced with&nbsp;a =
TFW File. As=20
said, scale and coordinates are ok and the reference map shows the =
correct=20
view.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I opened a&nbsp;TIFF which worked with =
another=20
mapserver application a few minutes ago with IrfanView and saved it as =
TIFF=20
(without editing). After saving with IrfanView&nbsp;the map-window was =
white, as=20
if mapserver&nbsp;was able to show the image, but sets all colors to =
white.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is there an image conversion tool to =
produce TIFFs=20
that mapserver can show?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Olaf</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:ed at topozone.com" title=3Ded at topozone.com>Ed =
McNierney</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
href=3D"mailto:oknopp at kartago.de"=20
  title=3Doknopp at kartago.de>Olaf Knopp</A> ; <A=20
  href=3D"mailto:mapserver-users at lists.gis.umn.edu"=20
  title=3Dmapserver-users at lists.gis.umn.edu>MapServer Liste</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, June 17, 2003 =
2:35=20
PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Mapserver-users]=20
  TIFF-Display</DIV>
  <DIV><BR></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Olaf=20
  &#8211;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">How did you =
add=20
  geographic reference information to your TIFF so MapServer knows where =
it is=20
  in the world?&nbsp; You need to have created either a GeoTIFF with the =

  coordinate info in the TIFF itself, or a world file with a TFW or WLD=20
  extension to go with it.</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

  - Ed</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <DIV>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Ed=20
  McNierney</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">President =
and Chief=20
  Mapmaker</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">TopoZone.com / Maps a=20
  la carte, Inc.</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">73 =
Princeton Street,=20
  Suite 305</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">North =
Chelmsford,=20
  MA&nbsp; 01863</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Phone: =
(978)=20
  251-4242&nbsp; Fax: (978) 251-1396</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">ed at topozone.com</SPAN></FONT></P></DIV>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DTahoma =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">-----Original=20
  Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: bold">From:</SPAN></B> =
Olaf Knopp=20
  [mailto:oknopp at kartago.de] <BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, June 17, 2003 =
5:31=20
  AM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B> MapServer=20
  Liste<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B>=20
  [Mapserver-users] TIFF-Display</SPAN></FONT></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">Hello,</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">i have got a problem =
with the=20
  display of a tiff-image. Mapserver shows a white map (and produces a =
white=20
  .png), but navigation is possible, the square&nbsp;on the refenenz =
map&nbsp;is=20
  ok and scale/scalebar also. There&nbsp;is no difference if the tiff is =

  black/white (1 bit) or 8&nbsp;bit, it never shows an i get no error =
message=20
  from mapserver.&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">When i use another tiff =
from=20
  another project it works!!</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">The tiff was made with =
IrfanView=20
  (no compression, 256 Colors (counted 16), 8 =
Bit):</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Here a part of my=20
  mapfile:</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: =
10pt">LAYER</SPAN></FONT></P>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; =
NAME=20
  "Hintergrund"</SPAN></FONT></P>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; =
DATA=20
  "Stadtplan.tif"</SPAN></FONT></P>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; =
TYPE=20
  RASTER</SPAN></FONT></P>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; =
OFFSITE=20
  1</SPAN></FONT></P>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; =
STATUS=20
  ON</SPAN></FONT></P>
  <P style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DCourier size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Courier; FONT-SIZE: =
10pt">END</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Thanks for your=20
  help!</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">Olaf</SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0008_01C334DF.95BFC430--




More information about the mapserver-users mailing list