Would it not be possible to draw the polygon as 2 different polygons (the inner polygon & the outer using the postgis functions)? You could specify a fixed offset for one or the other.<br><br>On the other hand, if you just have 1 polygon (with a single line, so no inner polygons) and you're trying to accomplish a visual effect that the inside of the polygon lies further away, i would accomplish this by drawing a thicker border.<br>
<br>Or you could possibly use the asymmetric line drawing functions that are available. <br><br>Maybe give a more concrete example of what exactly you are trying to do.<br><br><div class="gmail_quote">On 12 August 2010 22:46, Bob Basques <span dir="ltr"><<a href="mailto:Bob.Basques@ci.stpaul.mn.us">Bob.Basques@ci.stpaul.mn.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Comic Sans MS" size="3">All,</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Comic Sans MS" size="3">Wondering, would this work for INSIDE/OUTSIDE situations with regard to polygon drawing? Or is the left/right sides of the line strictly relying on the from/to aspects of how the polygon was drawn (clockwise/counterclockwise) This would be handy for off-setting to (ONLY) the inside of a polygon for example.</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Comic Sans MS" size="3">Thanks</font> </p>
<br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<font face="Comic Sans MS" size="3">bobb</font> </p><div><div></div><div class="h5">
<br> <br>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<br>
<br>
>>> Wim Vanbelle <<a href="mailto:wimvanbelle@gmail.com" target="_blank">wimvanbelle@gmail.com</a>> wrote:<br> </p>
<div style="padding-left: 7px; margin: 0pt 0pt 0pt 15px; background-color: rgb(243, 243, 243); border-left: 1px solid rgb(5, 5, 5);">
<p style="margin-bottom: 0pt; margin-top: 0pt;">
Thank you very much everyone. And especially Thomas. That was indeed what I was looking for. You saved me a lot of work!<br http-equiv="Content-Type" content="text/html; charset=UTF-8"><br>Much appreciated.<br><br>
</p>
<div class="gmail_quote">
<p style="margin-bottom: 0pt; margin-top: 0pt;">
On 12 August 2010 17:50, Fawcett, David (MPCA) </p>
<div dir="ltr">
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<<a href="mailto:David.Fawcett@state.mn.us" target="_blank">David.Fawcett@state.mn.us</a>> </p>
</div>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
wrote:<br> </p>
<blockquote class="gmail_quote" style="padding-left: 0pt; margin: 0pt; border-left: 1px solid rgb(204, 204, 204);">
<p style="margin-bottom: 0pt; margin-top: 0pt;">
Thanks Thomas<br><br>That looks nice in my test example.<br><font color="#888888"><br style="color: rgb(136, 136, 136);">David.<br style="color: rgb(136, 136, 136);"></font> </p>
<div>
<div>
<br>
</div>
<div>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<br>
-----Original Message-----<br>From: thomas bonfort [mailto:<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>]<br>Sent: Thursday, August 12, 2010 10:45 AM<br>To: Fawcett, David (MPCA)<br>
Cc: Wim Vanbelle; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>Subject: Re: [mapserver-users] Offset values from database<br><br>the -99 is a special offset value that shifts the line as you are looking for.<br>
<br>style<br>color 255 0 0<br>offset -2 -99<br>width 2<br>end<br>style<br>color 0 255 0<br>offset 2 -99<br>width 2<br>end<br><br><br>not perfect as there are artifacts on sharp angles, but worth a try.<br><br>regards,<br>
thomas<br><br>On Thu, Aug 12, 2010 at 16:56, Fawcett, David (MPCA)<br><<a href="mailto:David.Fawcett@state.mn.us" target="_blank">David.Fawcett@state.mn.us</a>> wrote:<br>> Wim,<br>><br>><br>><br>> You can do these offsets in pixel values at a class level, just not a<br>
> feature level. This pretty much does what you are describing, although it<br>> gets a little funky when the lines are diagonal and not straight.<br>><br>><br>><br>> CLASS<br>><br>> STYLE<br>><br>
> COLOR 0 0 0<br>><br>> WIDTH 2<br>><br>> END<br>><br>> STYLE<br>><br>> COLOR 255 0 0<br>><br>> WIDTH 2<br>><br>> OFFSET 10 10<br>><br>> END<br>><br>> STYLE<br>><br>> COLOR 0 255 0<br>
><br>> WIDTH 2<br>><br>> OFFSET -10 -10<br>><br>> END<br>><br>><br>><br>> END<br>><br>><br>><br>> David.<br>><br>><br>><br>> From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a><br>
> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Wim Vanbelle<br>> Sent: Thursday, August 12, 2010 9:32 AM<br>> To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
> Subject: Re: [mapserver-users] Offset values from database<br>><br>><br>><br>> Maybe this pic helps elaborate on what i'm trying to accomplish:<br>> <a href="http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png" target="_blank">http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png</a><br>
> It should be noted that the distance between the 2 (new) lines, should be a<br>> fixed value over the zoomlevels. It must not be the case that at the<br>> furthest zoomlevel the lines are further apart.<br>><br>
> I've looked all over for this, but never really found a proper solution. I<br>> tried cartographic symbol drawing, but it only draws on the same side every<br>> time. Maybe I'm just doing it wrong :).<br>
><br>> On 12 August 2010 16:28, Wim Vanbelle <<a href="mailto:wimvanbelle@gmail.com" target="_blank">wimvanbelle@gmail.com</a>> wrote:<br>><br>> Hello,<br>><br>> thanks for your feedback.<br>><br>
> The issue with this, is that the underlying linestrings (the 2 that would<br>> lie on top of eachother), have different colors :(.<br>><br>> So they have to be moved apart from one another. I have not found a way to<br>
> do this with asymmetric line drawing either, as it will always offset to the<br>> same side.<br>><br>> This is why i would need the offset value to be configurable in the<br>> database. I could select a different pixel offset for each line and they<br>
> would always appear next to eachtoher (no matter what zoomlevel).<br>><br>> I can elaborate on the problem more if I am a little too confusing !<br>><br>> On 12 August 2010 16:20, Cristiano Sumariva <<a href="mailto:sumariva@gmail.com" target="_blank">sumariva@gmail.com</a>> wrote:<br>
><br>> If it is a display problem why not try create some special symbology to<br>> overlap one line with another using different symbol strokes. So the user<br>> will se that are 2 lines overlayed.<br>><br>
> 2010/8/12 Wim Vanbelle <<a href="mailto:wimvanbelle@gmail.com" target="_blank">wimvanbelle@gmail.com</a>><br>><br>> Hi David,<br>><br>> I read that documentation before though. I was hoping it just hadn't been<br>
> updated... Is this possibly a feature for 6.0 ?<br>><br>> Are there any other ways how one could offset a feature in pixels, rather<br>> than in lat/long coords?<br>><br>> Maybe I should elaborate on the original problem a little. Consider 2 line<br>
> segments that lie above one another. The general idea is to 'offset' them a<br>> given x , y value, so they will both display next to one another, rather<br>> than on top of eachother.<br>><br>> If you would however perform this code simply on lat/long values, it would<br>
> imply, that when scaling your map at the most detailed zoom level, the lines<br>> would lie very far apart, and when zoomed out, they would appear to lie on<br>> top of eachother.<br>><br>> I find it hard to believe that I would need to pre calculate all the data in<br>
> order to obtain geometry objects for each zoom level.<br>><br>> Maybe some veterans have some good insight in this :).<br>><br>><br>><br>> On 12 August 2010 15:26, Fawcett, David (MPCA) <<a href="mailto:David.Fawcett@state.mn.us" target="_blank">David.Fawcett@state.mn.us</a>><br>
> wrote:<br>><br>> Wim,<br>><br>><br>><br>> If you don’t want me to tell you, you will likely want to look at the<br>> mapfile documentation at: <a href="http://mapserver.org/mapfile/style.html" target="_blank">http://mapserver.org/mapfile/style.html</a><br>
><br>><br>><br>> [Spoiler Alert]<br>><br>> You can’t use values from an attribute table to set the value of this<br>> property<br>><br>> [/Spoiler Alert]<br>><br>><br>><br>> David.<br>
><br>> From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a><br>> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Wim Vanbelle<br>
> Sent: Thursday, August 12, 2010 5:48 AM<br>><br>> To: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>><br>> Subject: [mapserver-users] Offset values from database<br>
><br>><br>><br>> Hi,<br>><br>> I'm trying to load offset X, Y data from the postgis database.<br>><br>> Each feature has an offset value defined there.<br>><br>> My mapfile (relevant part) looks like this:<br>
><br>> In the layer:<br>> DATA "geom_mercator from map_links using<br>> unique Id using SRID=900913"<br>><br>> STYLE<br>> WIDTH 6<br>> COLOR 0 255 0<br>> ANTIALIAS TRUE<br>> ANGLE AUTO<br>
> OFFSET [offsetX] [offsetY]<br>> END<br>><br>> Please don't tell me the offsetX, Y values cannot be read from the database.<br>> That would be a huge issue for me.<br>><br>> Thank you for your time.<br>
><br>> Best regards<br>><br>><br>><br>><br>><br>> _______________________________________________<br>> mapserver-users mailing list<br>><br>> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
><br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>><br>><br>><br>><br>><br>><br>><br>> _______________________________________________<br>
> mapserver-users mailing list<br>> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>><br><br> </p>
</div>
</div>
</blockquote>
</div>
<p style="margin-bottom: 0pt; margin-top: 0pt;">
<br>
</p>
</div>
</div></div></div>
</blockquote></div><br>