<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Yes, the idea works, but the differences in hue are too small to be
    useful in practice. And furthermore, they also show up for border
    lines between adjoining polygons. I just want to highlight polygons
    that completely overlap. I'm afraid I have to go the PostGIS/GEOS
    way.<br>
    <br>
    Even o, would an XOR brush not be a nice addition to the STYLE
    object? You could create all kinds of moiré fill patterns.<br>
    <br>
<a class="moz-txt-link-freetext" href="http://www.google.nl/search?q=moire&hl=en&client=firefox-a&hs=lGh&tbo=u&rls=org.mozilla:en-GB:official&tbm=isch&source=univ&sa=X&ei=C1UCUez4C9KX0QXV9IDoDw&ved=0CFMQsAQ&biw=1600&bih=809">http://www.google.nl/search?q=moire&hl=en&client=firefox-a&hs=lGh&tbo=u&rls=org.mozilla:en-GB:official&tbm=isch&source=univ&sa=X&ei=C1UCUez4C9KX0QXV9IDoDw&ved=0CFMQsAQ&biw=1600&bih=809</a><br>
    <br>
    Jan<br>
    <br>
    On 1/24/2013 6:36 PM, Lime, Steve D (DNR) wrote:
    <blockquote
cite="mid:C549F0496453D842B4DD71AC8188DDC53BDB7C@055-CH1MPN1-042.055d.mgd.msft.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You
            could try drawing the features with the same base color but
            with opacity set. The more times the same area is rendered
            you’d get a different hue.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Steve<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>]
                <b>On Behalf Of </b>Jan Hartmann<br>
                <b>Sent:</b> Thursday, January 24, 2013 11:00 AM<br>
                <b>To:</b> Stephen Woodbridge<br>
                <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
                <b>Subject:</b> Re: [mapserver-users] Displaying
                overlapping linestrings<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">On 01/24/2013 05:35 PM, Stephen
            Woodbridge wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">On 1/24/2013 11:13 AM, Jan Hartmann
            wrote: <br>
            <br>
            <o:p></o:p></p>
          <p class="MsoNormal">Does anyone know a trick to do this: <br>
            <br>
            I'm making geographical indexes for the map series in our
            map library. <br>
            Each map sheets is displayed as a polygonal linestring,
            based on its <br>
            corner coordinates. Lots of sheets have exactly the same
            boundaries, so <br>
            it's not clear where a polygon indicates just one map sheet
            of several. <br>
            It's easy, of course, to write a PostGIS query to return a
            different <br>
            color code when map boundaries exactly coincide, but I was
            wondering <br>
            whether something like that could be done by mapserver on
            its own, like <br>
            XOR-ing a line with what is already there. Any ideas? <o:p></o:p></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
            Hi Jan, <br>
            <br>
            For polygons you could use a small negative buffer to shrink
            the polygon slightly. You can do this in postgis, and you
            might be able to do it with mapserver if geos is compiled
            in. See:
            <br>
            <br>
            <a moz-do-not-send="true"
              href="http://mapserver.org/development/rfc/ms-rfc-48.html">http://mapserver.org/development/rfc/ms-rfc-48.html</a>
            <o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal">No, that is not what I meant. I'm looking
          for a trick for mapserver to color a linestring differently
          when drawing over a linestring that it has already drawn in a
          previous layer. In computer graphics you can do this by using
          an XOR brush. Essentially, the screen frame buffer functions
          as a sort of memory. I don not want to use PostGIS or GOS, too
          complex. I doubt if this can be done by MapServer, but you
          never know.<br>
          <br>
          Jan  <o:p></o:p></p>
      </div>
    </blockquote>
  </body>
</html>