<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">johannespaul92@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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>