<div dir="ltr">This makes the rectangle;<div><div>geom_from_wkt( </div><div>'POLYGON(('|| </div><div>(x( centroid( $geometry) ) + (("length" /1000)/2))||' '||(y( centroid( $geometry) ) + (("width"/1000)/2))||','||</div><div>(x( centroid( $geometry) ) + (("length" /1000)/2))||' '||(y( centroid( $geometry) ) - (("width"/1000)/2))||','||</div><div>(x( centroid( $geometry) ) - (("length" /1000)/2))||' '||(y( centroid( $geometry) ) - (("width"/1000)/2))||','||</div><div>(x( centroid( $geometry) ) - (("length" /1000)/2))||' '||(y( centroid( $geometry) ) + (("width"/1000)/2))||','||</div><div>(x( centroid( $geometry) ) + (("length" /1000)/2))||' '||(y( centroid( $geometry) ) + (("width"/1000)/2))||</div><div>'))')</div></div><div>What can I add to rotate it based on the rotation field?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 2:06 PM, Tyler Veinot <span dir="ltr"><<a href="mailto:tylerkveinot@gmail.com" target="_blank">tylerkveinot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have been experimenting with the geometry generator in the symbology engine and I got it to style line features as a buffer based on a width field. What I am trying to take a point with a length width and rotation field and draw a box with the specified length width and rotation of the point, I am not sure where to start with the code for that, does anyone have an example I can use to help me figure it out?<div>Thanks</div></div>
</blockquote></div><br></div>