<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,</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">Ok, now you got me thinking (again) on the ideas (some old threads) related to labeling a view.  Things like overlay grids, and such.  But if I understand what has just been built, couldn't some sort of sudo geometries that represent a view (BBOX for example) be used to label a view and constructs within it?  View (BBOX) edge label/stylings and such, maybe starting with simpler alignment/justifications for edge labeling of a map view? Using these feature labeling options via CGI introduce all sorts of ideas about how to use these capabilities for end user "view" labeling/styling, 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>
      >>> "Lime, Steve D (DNR)" <steve.lime@state.mn.us> 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'll add a few other functions too (see ticket #3871).<br><br>Regarding other uses, sure it's possible. We'd need to add the GEOMTRANSFORM processing to labels and execute it before computing a label point.<br><br>I'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. ;-)<br><br>Your last idea (8) is a bit different. Here's you're talking about a drawing effect so we're back into styles, but in this case a label's style. Issue here is that a label has two geometries - the point, and the bbox(es) so which are you referencing with [shape]? I'm thinking that in this context we'd always mean the bbox(es) 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 [mailto:bfraser@geoanalytic.com]<br>Sent: Thursday, May 12, 2011 10:08 AM<br>To: Lime, Steve D (DNR)<br>Cc: mapserver-users@lists.osgeo.org<br>Subject: Rendering Challenges - GEOMTRANSFORM<br><br>Steve,<br><br>   Thanks to your patch I was able to render thick lines inside polygons<br>(http://i56.tinypic.com/1z347yq.jpg).<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>(http://trac.osgeo.org/mapserver/ticket/1592 point 8.)<br>     - label the line geometry resulting from  GEOMTRANSFORM<br>(buffer([shape], -3)) of the original polygon<br><br>5. Place line anno above (or below) when using ANGLE FOLLOW<br>     - label the line geometry resulting from GEOMTRANSFORM<br>(buffer([shape], 5)) of the original line<br><br>Currently the LABEL object uses the original geometry.  Do you think it<br>would be possible to [optionally?] use the GEOMTRANSFORMed geometry?<br><br><br>   Similarly, would it be possible to have the LABEL's convex hull (or a<br>buffer the character boxes?) used as a clipping polygons of the layer's<br>geometry to address:<br><br>8. Erase layer's geometry (but not other layers) under label<br>    - possible syntax:  GEOMTRANSFORM ( clip( [labelpoly] ) )<br><br>Your thoughts?<br><br>--<br>Best Regards,<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>