[Mapserver-users] terraserver WMS problem
Ed McNierney
ed at topozone.com
Thu Jul 10 11:58:31 PDT 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> </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> </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. The =
request=20
should be FORMAT=3Dimage/png, but TerraServer ignores image format =
requests. =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> </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. 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> </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. 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> </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? =
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> </DIV>
<DIV><SPAN class=3D025235218-10072003> <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 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> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ortho-18<BR> METADATA<BR> =
"wms_title"=20
"USGS Digital Ortho-Quadrangles"<BR> =20
"wms_srs" "EPSG:26918" #NAD83 UTM zone=20
18N<BR> "wms_extent" "-78 0 -72=20
90"<BR> LYRNAME "DOQs=20
(orthophotos)"<BR> 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> =20
END<BR> MAXSCALE 299999<BR> OFFSITE 255 255=20
255<BR> GROUP "ORTHO DATA"<BR> STATUS ON=20
<BR> TYPE RASTER<BR> CONNECTIONTYPE=20
WMS<BR> CONNECTION "<A=20
=
href=3D"http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1&SERVICE=3D=
wms&LAYERS=3DDOQ&FORMAT=3Dpng&styles">http://terraservice.net=
/ogcmap.ashx?VERSION=3D1.1.1&SERVICE=3Dwms&LAYERS=3DDOQ&FORMA=
T=3Dpng&styles</A>=3D"<BR> =20
PROJECTION<BR> "init=3Depsg:26918" #NAD83 UTM =
zone=20
18N<BR> END<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ortho-17<BR> METADATA<BR> =
"wms_title"=20
"USGS Digital Ortho-Quadrangles"<BR> =20
"wms_srs" "EPSG:26917" #NAD83 UTM zone=20
17N<BR> "wms_extent" "-84 0 -78=20
90"<BR> LYRNAME "DOQs=20
(orthophotos)"<BR> 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> =20
END<BR> MAXSCALE 299999<BR> OFFSITE 255 255=20
255<BR> GROUP "ORTHO DATA"<BR> STATUS ON=20
<BR> TYPE RASTER<BR> CONNECTIONTYPE=20
WMS<BR> CONNECTION "<A=20
=
href=3D"http://terraservice.net/ogcmap.ashx?VERSION=3D1.1.1&SERVICE=3D=
wms&LAYERS=3DDOQ&FORMAT=3Dpng&styles">http://terraservice.net=
/ogcmap.ashx?VERSION=3D1.1.1&SERVICE=3Dwms&LAYERS=3DDOQ&FORMA=
T=3Dpng&styles</A>=3D"<BR> =20
PROJECTION<BR> "init=3Depsg:26917" #NAD83 UTM =
zone=20
17N<BR> END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Aaron D. Hunt<BR>Technical =
Manager<BR>ZedX=20
Inc.<BR>Voice: 814-357-8490<BR>Fax: =20
814-357-8499</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C34715.41BA5906--
More information about the MapServer-users
mailing list