[Mapserver-users] Edges of Images

Benjamin Wragg bwragg at tpg.com.au
Mon Oct 20 15:28:14 PDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C397A9.15EDD080
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Thanks Ed. Thats not quite what I meant though. This person has asked if
is there some magical way for mapserver to show the left side of the B1
image when I'm zoomed in over the right side of the B4 image. The B1
tile is georeferenced to have a minx of -180 and the B2 tile is
georeferenced to have a maxx of +180 so in the real world these two
edges should meet. Instead a white area is displayed anywhere right of
the +180
 
 
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Ed
McNierney
Sent: Saturday, 18 October 2003 8:22 AM
To: bwragg at tpg.com.au; mapserver-users at lists.gis.umn.edu
Subject: RE: [Mapserver-users] Edges of Images



Benjamin -
 
Set the map image background to white and then use the OFFSITE 255 255
255 statement in the data layer to make all white pixels transparent
(assuming the no-data value really is exactly that value).  This will
cause areas of white that overlap another tile to disappear, and any
valid data pixels that are white will expose the white background and
show up as white.
 
    - 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 

-----Original Message-----
From: Benjamin Wragg [mailto:bwragg at tpg.com.au]
Sent: Friday, October 17, 2003 6:43 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Edges of Images


Hi,
 
I'm currently using 8 satalite image tiles of the world (referenced in
lat/longs) in Mapserver as shown below:
 

--------------------------
A1 | A2 | A3 | A4 |
--------------------------
B1 | B2 | B3 | B4 |
--------------------------
 
If I zoom into the lower right tile (B4) I can see a large white band
running top to bottom where the tile finishes just right of New Zealand.
Someone has asked me if it's possible for Mapserver to automatically
display the next logical tile (which would be B1) to stop the ugly white
band. Any ideas?
 
Cheers,
 
Benjamin Wragg
 


------=_NextPart_000_0001_01C397A9.15EDD080
Content-Type: text/html;
	charset="us-ascii"
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=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D125051622-20102003><FONT face=3DArial color=3D#0000ff =
size=3D2>Thanks=20
Ed. Thats not quite what I meant though. This person has asked if =
is there=20
<FONT face=3DArial color=3D#0000ff size=3D2></FONT>some magical way for =
mapserver to=20
show the left side of the B1 image when I'm zoomed in over the right =
side of the=20
B4 image. The B1 tile is georeferenced to have a minx of -180 and the B2 =
tile is=20
georeferenced to have a maxx of +180 so in the real world these two =
edges should=20
meet. Instead a white area is displayed anywhere right of the=20
+180</FONT></SPAN></DIV>
<DIV><SPAN class=3D125051622-20102003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D125051622-20102003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV></DIV>
<DIV><FONT face=3DTahoma size=3D2>-----Original =
Message-----<BR><B>From:</B>=20
mapserver-users-admin at lists.gis.umn.edu=20
[mailto:mapserver-users-admin at lists.gis.umn.edu] <B>On Behalf Of </B>Ed=20
McNierney<BR><B>Sent:</B> Saturday, 18 October 2003 8:22 =
AM<BR><B>To:</B>=20
bwragg at tpg.com.au; mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> =
RE:=20
[Mapserver-users] Edges of Images<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><SPAN class=3D529495022-17102003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Benjamin -</FONT></SPAN></DIV>
  <DIV><SPAN class=3D529495022-17102003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D529495022-17102003><FONT face=3DArial =
color=3D#0000ff size=3D2>Set=20
  the map image background to white and then use the OFFSITE 255 255 255 =

  statement in the data layer to make all white pixels transparent =
(assuming the=20
  no-data value really is exactly that value).  This will cause =
areas of=20
  white that overlap another tile to disappear, and any valid data =
pixels that=20
  are white will expose the white background and show up as=20
  white.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D529495022-17102003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D529495022-17102003>    <FONT =
face=3DArial=20
  color=3D#0000ff size=3D2>- Ed</FONT></SPAN></DIV>
  <DIV><SPAN class=3D529495022-17102003>
  <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> Benjamin Wragg=20
    [mailto:bwragg at tpg.com.au]<BR><B>Sent:</B> Friday, October 17, 2003 =
6:43=20
    PM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
    [Mapserver-users] Edges of Images<BR><BR></FONT></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2>Hi,</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial =
size=3D2>I'm currently=20
    using 8 satalite image tiles of the world (referenced in <SPAN=20
    class=3D484472822-17102003><FONT face=3DArial size=3D2>lat/longs) =
</FONT></SPAN>in=20
    Mapserver as shown below:</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D484472822-17102003>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2>--------------------------</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial size=3D2>A1 =
| A2 | A3 |=20
    A4 |</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2>--------------------------</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial size=3D2>B1 =
| B2 |=20
    B3 | B4 |</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2>--------------------------</FONT></SPAN></DIV></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial size=3D2>If =
I zoom into=20
    the lower right tile (B4) I can see a large white band running top =
to bottom=20
    where the tile finishes just right of New Zealand. Someone has asked =
me if=20
    it's possible for Mapserver to automatically display the next =
logical tile=20
    (which would be B1) to stop the ugly white band. Any=20
    ideas?</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2>Cheers,</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial =
size=3D2>Benjamin=20
    Wragg</FONT></SPAN></DIV>
    <DIV><SPAN class=3D484472822-17102003><FONT face=3DArial=20
    =
size=3D2></FONT></SPAN> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTM=
L>

------=_NextPart_000_0001_01C397A9.15EDD080--




More information about the MapServer-users mailing list