<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">вт, 10 июл. 2018 г. в 8:18, Pavan Deolasee <<a href="mailto:pavan.deolasee@gmail.com">pavan.deolasee@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 5, 2018 at 6:47 PM, Pavan Deolasee <span dir="ltr"><<a href="mailto:pavan.deolasee@gmail.com" target="_blank">pavan.deolasee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><br><div><br></div><div>While I look at the XL side more carefully and see if we can revert back to PG's behaviour, I still believe this is a problem that we should fix on the PostGIS side (too). AFAIK in PostgreSQL we assume that out/in functions should safely convert a value to a string and back to its in-memory representation. So keeping that guarantee for the "geography" data type seems like the right thing to do.</div><div><br></div></div></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Any feedback here? I am willing to write a patch if the community guides me in the right direction. My knowledge of PostGIS is quite limited and I am not sure if changing the text representation of the geography type is acceptable.</div></div></div></div></blockquote><div><br></div><div>Text representation of geography is given from above, <a href="https://en.wikipedia.org/wiki/Well-known_text#Well-known_binary">https://en.wikipedia.org/wiki/Well-known_text#Well-known_binary</a> </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>BTW I tried to work around this problem by patching ST_DWithin(geography, float) so that the overlap is checked inside the C function. While that fixes the problem at hand, it regresses the query planning because planner can no longer see those additional quals and switches from an index scan to a seq scan. So I'd to abandon that approach.</div></div></div></div></blockquote><div><br></div><div>What you can try is to short-circuit ST_Expand to ST_Buffer for now. It's more expensive computationally, but for most practical use cases the box it produces should be similar to that of ST_Expand, and serialized geometry should produce the same box on both sides of serialization.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Any help is highly welcome.</div><div><br></div><div>Thanks,</div><div>Pavan</div><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra">-- <br><div class="m_-4785672394830122732gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"> Pavan Deolasee <a href="http://www.2ndQuadrant.com/" target="_blank">http://www.2ndQuadrant.com/</a><br> PostgreSQL Development, 24x7 Support, Training & Services</div></div></div></div>
</div></div><div dir="ltr"><div class="gmail_extra"></div></div>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div></div>