ST_Intersects fails as result
Fixes for 2.3
git-svn-id: http://svn.osgeo.org/postgis/trunk@14346
b70326c6-7e19-0410-871a-
916f4a2858ee
/* Calculate the densified geometry */
lwgeom2 = lwgeom_segmentize_sphere(lwgeom1, max_seg_length);
+
+ /*
+ ** Set the geodetic flag so subsequent
+ ** functions to do the right thing.
+ */
+ lwgeom_set_geodetic(lwgeom2, true);
+
+ /* Recalculate the boxes after re-setting the geodetic bit */
+ lwgeom_drop_bbox(lwgeom2);
+ lwgeom_add_bbox(lwgeom2);
+
g2 = geography_serialize(lwgeom2);
/* Clean up */