Hi Sven<br><br>I had exactly the same problem :) <br><br>If labelcaching is on, the labels are rendered at the end or the map drawing, so they always end up on top.<br>you can turn label cache off for that particular layer.  But this will mean that you will end up with labels running into each other on your map (as the contour labels will not be aware of other labels).<br>
<br>I solved my issue buy just not showing contour labels for the 10m contours.  (I do not show the 0m contour line or label)<br>This solved the issue for the ocean but not for lakes and other water bodies.<br><br>What would be really nice is a script that can 'tweak' DEM based on map data.  something that changes the DEM to ensure contours follow shorelines, and that the bottom of a valley follows creeks.  But I just dream of such a tool.<br>
<br>Happy mapping<br><br clear="all">Matt  :)<br><br>
<br><br><div class="gmail_quote">On Sun, Jul 8, 2012 at 4:36 AM, Sven Geggus <span dir="ltr"><<a href="mailto:lists@fuchsschwanzdomain.de" target="_blank">lists@fuchsschwanzdomain.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have a mapfile which contains amongst other a labeled contour layer.<br>
However these are not very acurate because they are derived from<br>
SRTM. For this reason I render the ocean polygon layer above the contour<br>
layer.<br>
<br>
This works fine for the contours but does not seem to work for the<br>
contour labels.<br>
<br>
So the question is how to make the polygon layer opaque for labels.<br>
<br>
Here are the relevant parts of my mapfile:<br>
<br>
LAYER<br>
  TYPE LINE<br>
  NAME contours<br>
  PROCESSING "LABEL_NO_CLIP=ON"<br>
  ...<br>
      STYLE<br>
         WIDTH 1.0<br>
         COLOR "#BE9E9E"<br>
       END<br>
       LABEL<br>
         ANGLE FOLLOW<br>
         REPEATDISTANCE 450<br>
         TYPE TRUETYPE FONT sc PARTIALS FALSE OUTLINEWIDTH 0<br>
         SIZE 8<br>
         COLOR "#996666"<br>
       END<br>
    END<br>
END<br>
<br>
LAYER<br>
  TYPE POLYGON<br>
  PROCESSING     "APPROXIMATION_SCALE=FULL"<br>
  name ocean<br>
  ...<br>
  CLASS<br>
   STYLE<br>
    COLOR "#579ae3"<br>
   END<br>
  END # of class<br>
END<br>
<br>
<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Sven<br>
<br>
--<br>
"The only thing we have to fear is fear itself" (Franklin D. Roosevelt)<br>
<br>
<br>
/me is giggls@ircnet, <a href="http://sven.gegg.us/" target="_blank">http://sven.gegg.us/</a> on the Web<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></span></blockquote></div><br>