<div dir="ltr"><div>ok I get it ... i use <metabuffer> within Mapcache and the missing border of my polygon get rendered in the adjacent tile :)</div><div>I though that was a problem with Mapserver, but it is just standard behaviour; it was just a matter of tiling options.</div><div>Thanks !</div><div>Johannes<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 12 Mar 2020 at 13:11, Johannes Paul <<a href="mailto:johannespaul92@gmail.com">johannespaul92@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Steve,</div><div>thanks for your answer.</div><div>Basically, I 
have the planet emerged lands that are cut-off in square polygons. These polygons are 
stored in postgis, and I use mapcache with a mapserver WMS source to 
tile the layer.</div><div>When I have a polygon ending exactly on the tile edge and the polygon does not have adjacent polygons on the top or on the left hand tile, I miss my polygon border.</div><div>As explained I made a simple test with a mapserver 
WMS request where the requested bbox would be exactly the bbox of a square polygon, and 
mapserver doesn't render top and left borders of the polygon...</div><div>Could you please tell me more about the options that could be used within mapcache or mapserver conf ?</div><div>Thanks,</div><div>Johannes</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 12 Mar 2020 at 05:08, Steve Lime <<a href="mailto:sdlime@gmail.com" target="_blank">sdlime@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">MapServer uses the center of the pixel but does compensate for models defined by other specs (e.g. WMS, which defines an extent as outer edge to outer edge. Straight CGI (mode=map) will adjust the requested extent based on the image size to ensure that square cells are being used. WMS allows for non-square cells. </div></div><div dir="auto"><br></div><div dir="auto">It’s possible you’re seeing the effect because the requested extent and image size are off just a bit. Would need a little more info to be sure.</div><div dir="auto"><br></div><div dir="auto">When tiling you can set edge buffers to deal with this sort of thing. Generally you’d choose a value to match your widest symbol. How exactly you’d deal with this depends on how you’re generating tiles (mapcache, mode=tile, etc...).</div><div dir="auto"><br></div><div dir="auto">—Steve</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 11, 2020 at 8:59 AM Johannes Paul <<a href="mailto:johannespaul92@gmail.com" target="_blank">johannespaul92@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div>I use a data source (postgis or shapefile, it doesn't matter, the behaviour is the same), that is made of a simple polygon created from a bbox, on which is applied a simple 'outlinecolor'.</div><div>When calling my URL with a bbox that is <u>exactly</u> the size of that polygon, mapserver only renders the bottom and the right hand edges; top and left hand egdes are not drawn on my output image!?</div><div>When forcing 'WIDTH 2', I do get a thin (1 pixel) outline on the top and left hand edges, and a thick (2 pixels) on the bottom and right hand edges.<br></div><div>I expect this is related to where mapserver is taking the coordinate within the pixel (center? corner?), but I'm not sure ? Any option to overcome that behaviour ?</div><div>Thanks in advance.</div><div>Johannes<br></div></div>
_______________________________________________<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="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div></div>
</blockquote></div>
</blockquote></div>