<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Andy,<br>
    That might just work, I will give it a go...Will let you know how I
    get on, at the moment, I have the style saved to the database, it
    will be interesting to see how that all works!!<br>
    Regards,<br>
    <br>
    Richard.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 23/07/2015 12:36, Andrew Harfoot
      wrote:<br>
    </div>
    <blockquote cite="mid:55B0D1BD.1060303@geodata.soton.ac.uk"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Just a thought Richard, but if you
        don't need to edit the data, could you not use a join to add a
        (precalculated) rotation field on the fly, either on the DB
        side, or in QGIS?<br>
        <br>
        Cheers,<br>
        <br>
        Andy<br>
        <br>
        On 23/07/2015 09:10, Richard McDonnell wrote:<br>
      </div>
      <blockquote cite="mid:55B0A181.5090903@opw.ie" type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        Hi,<br>
        I am in need of some guidance, I am trying to create an "active
        hatch/Fill" as part of a style im working on. What I want is for
        a hatch to rotate depending on the orientation of a Polygon.<br>
        For example, here is the same entity rotated, with the hatch
        rotating.<br>
        <br>
        <img src="cid:part1.01090009.04010406@opw.ie" alt=""
          height="386" width="210"><br>
        The issue is I am working on a database, onto which I cant add
        any data (additional columns) to the tables, I would like to do
        this from within the styling.<br>
        You can use an expression to denote the angle, so I was hoping
        to do it that way.<br>
        I was looking to utilize the geometry of a bounding box, and
        calculate the angle of the diagonal, using something like<br>
        <br>
        180*atan((ymax - ymin)/(xmax - xmin))/$pi + 90<br>
        <br>
        But I am not having any luck....If there is no way at present to
        do this, Might I put it forward as a possible new feature?<br>
        <br>
        Regards,<br>
        <br>
        Richard.<br>
        <br>
        <br>
        <br>
        <!-- http://www.unicodetools.com/unicode/convert-to-html.php -->
        <div style="font-family: Arial; font-size: 8pt;"> OPW - Ag
          féachaint don am atá le teacht - Ag caomhnú ón am atá thart<br>
          OPW - Looking to the future - Caring for the past<br>
          <a moz-do-not-send="true" href="http://www.opw.ie/"><img
              moz-do-not-send="true"
              src="http://www.opw.ie/en/media/opw-email-banner.png"
              height="76" width="494"></a><br>
          Email Disclaimer: <a moz-do-not-send="true"
            href="http://www.opw.ie/en/disclaimer/">http://www.opw.ie/en/disclaimer/</a>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Qgis-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Andy Harfoot

GeoData Institute
University of Southampton
Southampton
SO17 1BJ

Tel:  +44 (0)23 8059 2719
Fax:  +44 (0)23 8059 2849

<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.geodata.soton.ac.uk">www.geodata.soton.ac.uk</a>
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>