<div dir="ltr">Hi,<div><br></div><div>I don't know what is GWC. This mailing list is about PostGIS.</div><div><br></div><div>This looks like the overlay does not do proper reprojection and instead just takes proportion of latitude and longitude. You need to reproject all the coordinates into underlay's projection before working with linear proportions.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">сб, 13 окт. 2018 г. в 2:07, Aaron Edwards <<a href="mailto:aedwards@b3insight.com">aedwards@b3insight.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_3872517104036769446WordSection1">
<p class="MsoNormal">We are showing US States using GWC.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When the user selects a state, we show a “selected polygon” layer on top of it:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="https://b3insight.com/Content/Images/US.png" target="_blank">https://b3insight.com/Content/Images/US.png</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">As you can see from the image, the yellow Highlighted WMS layer is incorrectly rendering on top of the red GWC layer of states.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Both are the same layer in Geoserver.  The layer has two styles available: the thin red line and the thicker yellow line.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We are rendering it once with plain GWC, and once as a WMS layer (with a filter on it to only show the selected state).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Both the GWC and WMS layers are in Google Maps, which is requesting 256 x 256 tiles.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">BTW this only happens at lower zoom levels.  As you zoom in, the two line up better until they completely overlap at about zoom level 7.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks in advance.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Aaron<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa">http://patreon.com/komzpa</a></div></div>