[Mapserver-users] terraserver WMS problem

Ed McNierney ed at topozone.com
Thu Jul 10 14:58:31 EDT 2003


This is a multi-part message in MIME format.

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

Aaron -
=20
I'm not sure why that's happening, but here's some info that might help:
=20
1. You're requesting "FORMAT=3Dpng" but that won't do anything.  The =
request should be FORMAT=3Dimage/png, but TerraServer ignores image =
format requests.  ALL DOQs are served as 24-bit JPEG images, and ALL =
DRGs are served as 24-bit PNG images through the WMS interface, although =
the capabilities document might lead you to think otherwise.
=20
2. TerraServer will always return a white image in areas where it has no =
data.  So if you have multiple TerraServer layers in your map file, =
you're going to keep stacking up more white layer in every request.
=20
3. You've attempted to deal with this with the OFFSITE statement, making =
white transparent in these layers.  I'm always a little uncomfortable =
relying on finding specific RGB values in a JPEG file (the data's not =
stored in RGB, so you can't REALLY be sure that you won't get "255 255 =
254" for white) but that seems to be working and doesn't seem to be your =
problem.
=20
4. Could there be a MapServer problem with OFFSITE and JPEG layers?  =
I've never used the two together (I avoid JPEG image sources).
=20
    - Ed
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

-----Original Message-----
From: Aaron D. Hunt [mailto:hunt at zedxinc.com]
Sent: Thursday, July 10, 2003 1:31 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] terraserver WMS problem


Does anyone know why when I add more then one utm zone layer to my map =
file, the image I get back for terraserver gets greener. There is a =
sample attached that uses two layers and the layers are down bellow.
=20
LAYER
   NAME ortho-18
   METADATA
     "wms_title" "USGS Digital Ortho-Quadrangles"
     "wms_srs"   "EPSG:26918" #NAD83 UTM zone 18N
     "wms_extent" "-78 0 -72 90"
     LYRNAME "DOQs (orthophotos)"
     LINK " =
http://terraserver.microsoft.com/about.aspx?n=3DAboutTerraServiceOverview=
"
   END
   MAXSCALE 299999
   OFFSITE 255 255 255
   GROUP "ORTHO DATA"
   STATUS ON=20
   TYPE RASTER
   CONNECTIONTYPE WMS
   CONNECTION " http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1 =
<http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1&SERVICE=3Dwms&LAYERS=
=3DDOQ&FORMAT=3Dpng&styles> =
&SERVICE=3Dwms&LAYERS=3DDOQ&FORMAT=3Dpng&styles=3D"
   PROJECTION
     "init=3Depsg:26918" #NAD83 UTM zone 18N
   END
END
=20
LAYER
   NAME ortho-17
   METADATA
     "wms_title" "USGS Digital Ortho-Quadrangles"
     "wms_srs"   "EPSG:26917" #NAD83 UTM zone 17N
     "wms_extent" "-84 0 -78 90"
     LYRNAME "DOQs (orthophotos)"
     LINK " =
http://terraserver.microsoft.com/about.aspx?n=3DAboutTerraServiceOverview=
"
   END
   MAXSCALE 299999
   OFFSITE 255 255 255
   GROUP "ORTHO DATA"
   STATUS ON=20
   TYPE RASTER
   CONNECTIONTYPE WMS
   CONNECTION " http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1 =
<http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1&SERVICE=3Dwms&LAYERS=
=3DDOQ&FORMAT=3Dpng&styles> =
&SERVICE=3Dwms&LAYERS=3DDOQ&FORMAT=3Dpng&styles=3D"
   PROJECTION
     "init=3Depsg:26917" #NAD83 UTM zone 17N
   END
END
=20
Aaron D. Hunt
Technical Manager
ZedX Inc.
Voice: 814-357-8490
Fax:    814-357-8499


------_=_NextPart_001_01C34715.41BA5906
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.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =
size=3D2>Aaron=20
-</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =
size=3D2>I'm=20
not sure why that's happening, but here's some info that might=20
help:</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =
size=3D2>1.=20
You're requesting "FORMAT=3Dpng" but that won't do anything.&nbsp; The =
request=20
should be FORMAT=3Dimage/png, but TerraServer ignores image format =
requests.&nbsp;=20
ALL DOQs are served as 24-bit JPEG images, and ALL DRGs are served as =
24-bit PNG=20
images through the WMS interface, although the capabilities document =
might lead=20
you to think otherwise.</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =
size=3D2>2.=20
TerraServer will always return a white image in areas where it has no=20
data.&nbsp; So if you have multiple TerraServer layers in your map file, =
you're=20
going to keep stacking up more white layer in every =
request.</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =
size=3D2>3.=20
You've attempted to deal with this with the OFFSITE statement, making =
white=20
transparent in these layers.&nbsp; I'm always a little uncomfortable =
relying on=20
finding specific RGB values in a JPEG file (the data's not stored in =
RGB, so you=20
can't REALLY be sure that you won't get "255 255 254" for white) but =
that seems=20
to be working and doesn't seem to be your problem.</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =
size=3D2>4.=20
Could there be a MapServer problem with OFFSITE and JPEG layers?&nbsp; =
I've=20
never used the two together (I avoid JPEG image =
sources).</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D025235218-10072003>&nbsp;&nbsp;&nbsp; <FONT =
face=3DArial=20
color=3D#0000ff size=3D2>- Ed</FONT></SPAN></DIV>
<DIV><SPAN class=3D025235218-10072003>
<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>
<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> Aaron D. Hunt=20
  [mailto:hunt at zedxinc.com]<BR><B>Sent:</B> Thursday, July 10, 2003 1:31 =

  PM<BR><B>To:</B> mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
  [Mapserver-users] terraserver WMS problem<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Does anyone know why when I add more =
then one utm=20
  zone layer to my map file, the image I get back for terraserver gets =
greener.=20
  There is a sample attached that uses two layers and the layers are =
down=20
  bellow.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp;&nbsp; NAME=20
  ortho-18<BR>&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
"wms_title"=20
  "USGS Digital Ortho-Quadrangles"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
  "wms_srs"&nbsp;&nbsp; "EPSG:26918" #NAD83 UTM zone=20
  18N<BR>&nbsp;&nbsp;&nbsp;&nbsp; "wms_extent" "-78 0 -72=20
  90"<BR>&nbsp;&nbsp;&nbsp;&nbsp; LYRNAME "DOQs=20
  (orthophotos)"<BR>&nbsp;&nbsp;&nbsp;&nbsp; LINK "<A=20
  =
href=3D"http://terraserver.microsoft.com/about.aspx?n=3DAboutTerraService=
Overview">http://terraserver.microsoft.com/about.aspx?n=3DAboutTerraServi=
ceOverview</A>"<BR>&nbsp;&nbsp;=20
  END<BR>&nbsp;&nbsp; MAXSCALE 299999<BR>&nbsp;&nbsp; OFFSITE 255 255=20
  255<BR>&nbsp;&nbsp; GROUP "ORTHO DATA"<BR>&nbsp;&nbsp; STATUS ON=20
  <BR>&nbsp;&nbsp; TYPE RASTER<BR>&nbsp;&nbsp; CONNECTIONTYPE=20
  WMS<BR>&nbsp;&nbsp; CONNECTION "<A=20
  =
href=3D"http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1&amp;SERVICE=3D=
wms&amp;LAYERS=3DDOQ&amp;FORMAT=3Dpng&amp;styles">http://terraservice.net=
/ogcmap.ashx?VERSION=3D1.1.1&amp;SERVICE=3Dwms&amp;LAYERS=3DDOQ&amp;FORMA=
T=3Dpng&amp;styles</A>=3D"<BR>&nbsp;&nbsp;=20
  PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp; "init=3Depsg:26918" #NAD83 UTM =
zone=20
  18N<BR>&nbsp;&nbsp; END<BR>END</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp;&nbsp; NAME=20
  ortho-17<BR>&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
"wms_title"=20
  "USGS Digital Ortho-Quadrangles"<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
  "wms_srs"&nbsp;&nbsp; "EPSG:26917" #NAD83 UTM zone=20
  17N<BR>&nbsp;&nbsp;&nbsp;&nbsp; "wms_extent" "-84 0 -78=20
  90"<BR>&nbsp;&nbsp;&nbsp;&nbsp; LYRNAME "DOQs=20
  (orthophotos)"<BR>&nbsp;&nbsp;&nbsp;&nbsp; LINK "<A=20
  =
href=3D"http://terraserver.microsoft.com/about.aspx?n=3DAboutTerraService=
Overview">http://terraserver.microsoft.com/about.aspx?n=3DAboutTerraServi=
ceOverview</A>"<BR>&nbsp;&nbsp;=20
  END<BR>&nbsp;&nbsp; MAXSCALE 299999<BR>&nbsp;&nbsp; OFFSITE 255 255=20
  255<BR>&nbsp;&nbsp; GROUP "ORTHO DATA"<BR>&nbsp;&nbsp; STATUS ON=20
  <BR>&nbsp;&nbsp; TYPE RASTER<BR>&nbsp;&nbsp; CONNECTIONTYPE=20
  WMS<BR>&nbsp;&nbsp; CONNECTION "<A=20
  =
href=3D"http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1&amp;SERVICE=3D=
wms&amp;LAYERS=3DDOQ&amp;FORMAT=3Dpng&amp;styles">http://terraservice.net=
/ogcmap.ashx?VERSION=3D1.1.1&amp;SERVICE=3Dwms&amp;LAYERS=3DDOQ&amp;FORMA=
T=3Dpng&amp;styles</A>=3D"<BR>&nbsp;&nbsp;=20
  PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp; "init=3Depsg:26917" #NAD83 UTM =
zone=20
  17N<BR>&nbsp;&nbsp; END<BR>END</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Aaron D. Hunt<BR>Technical =
Manager<BR>ZedX=20
  Inc.<BR>Voice: 814-357-8490<BR>Fax:&nbsp;&nbsp;&nbsp;=20
814-357-8499</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C34715.41BA5906--



More information about the mapserver-users mailing list