<div style="font-family: Arial, sans-serif; font-size: 14px;">I could use some help on figuring out if this is a PostGIS bug or a problem with my vector tile query. </div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I'm trying to generate a vector tile layer of a linestring consisting of four points (you could use more than four points but this is just a simplified example). Here is the linestring in geojson (<span><a href="https://gist.github.com/mhkeller/9a65553c28d5063b45817b7d996b59c3" rel="noreferrer nofollow noopener" target="_blank">https://gist.github.com/mhkeller/9a65553c28d5063b45817b7d996b59c3</a></span>)</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">The second and the fourth points are the same, so the line doubles back on itself. When I use this query (<span><a href="https://gist.github.com/mhkeller/05d7eafc43966a2b3b5b2d41784b300b" rel="noreferrer nofollow noopener" target="_blank">https://gist.github.com/mhkeller/05d7eafc43966a2b3b5b2d41784b300b</a></span>) in a tile server, the third point in the line string is missing. <br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I've made a full but simple reproduction here: <span><a href="https://github.com/mhkeller/postgis-line-repro" rel="noreferrer nofollow noopener" target="_blank">https://github.com/mhkeller/postgis-line-repro</a></span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I also tried using the <span>dirt-simple-postgis-http-api</span> (<span><a href="https://github.com/tobinbradley/dirt-simple-postgis-http-api" rel="noreferrer nofollow noopener" target="_blank">https://github.com/tobinbradley/dirt-simple-postgis-http-api</a></span>) instead of the one I wrote and I get the same result.<br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">However, if I generate the tiles using geojson2mvt (<span><a href="https://github.com/NYCPlanning/labs-geojson2mvt" rel="noreferrer nofollow noopener" target="_blank">https://github.com/NYCPlanning/labs-geojson2mvt</a></span>), the line renders correctly. A stack exchange user reported that generating the tiles with MapTiler also renders the line correctly (<span><span><a href="https://gis.stackexchange.com/questions/471851/missing-line-segment-when-serving-a-vector-tile-from-postgis#comment772175_471851" rel="noreferrer nofollow noopener" target="_blank">https://gis.stackexchange.com/questions/471851/missing-line-segment-when-serving-a-vector-tile-from-postgis#comment772175_471851</a></span></span>).</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Is this a PostGIS bug or is there something I can change on my end? Thanks for any insight.<br></div>
<div style="font-family: Arial, sans-serif; font-size: 14px;" class="protonmail_signature_block protonmail_signature_block-empty">
    <div class="protonmail_signature_block-user protonmail_signature_block-empty">

            </div>

            <div class="protonmail_signature_block-proton protonmail_signature_block-empty">

            </div>
</div>