Hello Mike,<br><br>What kinda of software will be used to do this?<br><br>Most GIS softwares can depict line hatchings without needing it physically exists on the database. Each line of the hatch has a special meaning for you or no?<br>

<br>If so, you should consider using a proper style, that will do that without giving you headaches to create the hatches.<br><br>George<br><br><div class="gmail_quote">On Fri, Jun 3, 2011 at 3:17 PM, Michael Welter <span dir="ltr"><<a href="mailto:mike@introspect.com">mike@introspect.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I have a polygon (with interior holes) that I would like to depict on a map using diagonal lines.  I don't suppose there's a ST_ function for this  :-)<br>
<br>
Thinking out loud, I should derive the bounding box of the polygon, divide the top and right edges into equidistant points.  From the top points draw 135° vectors, and from the right points draw 225° vectors to the other side of the box.<br>


<br>
Now the hard part:  for each line, determine the point where it enters the polygon and the point where it exits.  Also, where it enters an interior hole and where it exits.<br>
<br>
The actual drawing on the map happens on a client computer (without postGIS), so the desired result from postGIS would be a list of line segments.<br>
<br>
Does anyone have any ideas on this?<br>
<br>
Thanks,<br>
Mike<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>George R. C. Silva<br><br>Desenvolvimento em GIS<br><a href="http://geoprocessamento.net" target="_blank">http://geoprocessamento.net</a><br><a href="http://blog.geoprocessamento.net" target="_blank">http://blog.geoprocessamento.net</a><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">

</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">

</div><br>
<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>