<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Times New Roman, Times, serif"><br>
      <br>
      On 02/14/2012 06:17 PM, Stephen Woodbridge wrote:</font>
    <blockquote cite="mid:4F3A970D.6040403@swoodbridge.com" type="cite"><font
        face="Times New Roman, Times, serif">google: mapserver
        geomtransform
        <br>
        <br>
        this will let you fix the label point to the centroid of the
        object or some other positions.
      </font>
      <font face="Times New Roman, Times, serif"><br>
        <br>
        The issue is that the label point is generally calculated based
        on the geometry of the object as clipped to the view port. So
        the geometry changes based on the view clipping and this causes
        the label point to also change. the geomtransform works on the
        original data and so the label point becomes fixed.
      </font>
      <font face="Times New Roman, Times, serif"><br>
        <br>
        <br>
      </font>
    </blockquote>
    <font face="Times New Roman, Times, serif">No I can't get this to
      work, perhaps I don't understand the syntax of geomtransform. Can
      you give me an example of fixing a label to the center point of a
      rectangle, without shifting it when the rectangle crosses the
      viewport? My mapfile looks:<br>
      <br>
      connectiontype postgis<br>
      connection ""<br>
      data the_rect from bnds<br>
      labelitem rect_id<br>
      style<br>
      &nbsp; color 0 0 0<br>
      end<br>
      label<br>
      &nbsp; color 0 0 255<br>
      end<br>
      <br>
      I put a few geotransforms within the label and within the style
      objects, but the label always shifts near the margin of the
      viewport.<br>
      <br>
      Thanks,<br>
      <br>
      Jan<br>
    </font>
  </body>
</html>