<html>
  <head>

  </head>
  <body style="font-family: Comic Sans MS; margin-right: 4px; margin-bottom: 1px; margin-top: 4px; font-variant: normal; margin-left: 4px; font-weight: normal; line-height: normal; font-size: 12pt; font-style: normal">
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">All&#44;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">Ok&#44; now you got me thinking &#40;again&#41; on the ideas &#40;some old threads&#41; related to labeling a view. &nbsp;Things like overlay grids&#44; and such. &nbsp;But if I understand what has just been built&#44; couldn&#39;t some sort of sudo geometries that represent a view &#40;BBOX for example&#41; be used to label a view and constructs within it&#63; &nbsp;View &#40;BBOX&#41; edge label/stylings and such&#44; maybe starting with simpler alignment/justifications for edge labeling of a map view&#63; Using these feature labeling options via CGI introduce all sorts of ideas about how to use these capabilities for end user &quot;view&quot; labeling/styling&#44; that may be separate from the mapping data.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">bobb</font>    </p>
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; &quot;Lime&#44; Steve D &#40;DNR&#41;&quot; &lt;steve.lime@state.mn.us&gt; wrote:<br>    </p>
    <table style="margin-right: 0; margin-bottom: 0; margin-top: 0; margin-left: 15px; font-size: 1em" border="0" bgcolor="#f3f3f3">
      <tr>
        <td>
          <div style="padding-left: 7px; border-left: solid 1px #050505">
            <p style="margin-bottom: 0; margin-top: 0">
              Cool. I committed that patch in trunk in what will be 6.2 if folks are interested. I&#39;ll add a few other functions too &#40;see ticket &#35;3871&#41;.<br><br>Regarding other uses&#44; sure it&#39;s possible. We&#39;d need to add the GEOMTRANSFORM processing to labels and execute it before computing a label point.<br><br>I&#39;ve also thought about defining a layer-level GEOMTRANSFORM that would alter the original geometry before any processing so all classes and styles would be affected and you could query it. &#59;-&#41;<br><br>Your last idea &#40;8&#41; is a bit different. Here&#39;s you&#39;re talking about a drawing effect so we&#39;re back into styles&#44; but in this case a label&#39;s style. Issue here is that a label has two geometries - the point&#44; and the bbox&#40;es&#41; so which are you referencing with &#91;shape&#93;&#63; I&#39;m thinking that in this context we&#39;d always mean the bbox&#40;es&#41; so you could create a buffered convex hull easily and draw it under a label.<br><br>Probably should create a couple of tickets...<br><br>Steve<br><br>-----Original Message-----<br>From: Brent Fraser &#91;mailto:bfraser@geoanalytic.com&#93;<br>Sent: Thursday&#44; May 12&#44; 2011 10:08 AM<br>To: Lime&#44; Steve D &#40;DNR&#41;<br>Cc: mapserver-users@lists.osgeo.org<br>Subject: Rendering Challenges - GEOMTRANSFORM<br><br>Steve&#44;<br><br>&#160;&#160;&#32;Thanks to your patch I was able to render thick lines inside polygons<br>&#40;http://i56.tinypic.com/1z347yq.jpg&#41;.<br><br>The solution of using a STYLE with GEOMTRANSFORM got me thinking of<br>using the technique to solve some of the labeling challenges:<br><br>2. Place polygon annotation on/inside boundary line<br>&#40;http://trac.osgeo.org/mapserver/ticket/1592 point 8.&#41;<br>&#160;&#160;&#160;&#160;&#32;- label the line geometry resulting from&#160;&#32;GEOMTRANSFORM<br>&#40;buffer&#40;&#91;shape&#93;&#44; -3&#41;&#41; of the original polygon<br><br>5. Place line anno above &#40;or below&#41; when using ANGLE FOLLOW<br>&#160;&#160;&#160;&#160;&#32;- label the line geometry resulting from GEOMTRANSFORM<br>&#40;buffer&#40;&#91;shape&#93;&#44; 5&#41;&#41; of the original line<br><br>Currently the LABEL object uses the original geometry.&#160;&#32;Do you think it<br>would be possible to &#91;optionally&#63;&#93; use the GEOMTRANSFORMed geometry&#63;<br><br><br>&#160;&#160;&#32;Similarly&#44; would it be possible to have the LABEL&#39;s convex hull &#40;or a<br>buffer the character boxes&#63;&#41; used as a clipping polygons of the layer&#39;s<br>geometry to address:<br><br>8. Erase layer&#39;s geometry &#40;but not other layers&#41; under label<br>&#160;&#160;&#160;&#32;- possible syntax:&#160;&#32;GEOMTRANSFORM &#40; clip&#40; &#91;labelpoly&#93; &#41; &#41;<br><br>Your thoughts&#63;<br><br>--<br>Best Regards&#44;<br>Brent Fraser<br><br><br><br><br>_______________________________________________<br>mapserver-users mailing list<br>mapserver-users@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
            </p>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>