Skip to content

Commit 6fa56b3

Browse files
committed
revert to prior fix for 2.3 to make travis happy
references #3355 git-svn-id: http://svn.osgeo.org/postgis/trunk@14353 b70326c6-7e19-0410-871a-916f4a2858ee
1 parent 255139a commit 6fa56b3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

postgis/geography_measurement.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,10 +1084,17 @@ Datum geography_segmentize(PG_FUNCTION_ARGS)
10841084
/* Calculate the densified geometry */
10851085
lwgeom2 = lwgeom_segmentize_sphere(lwgeom1, max_seg_length);
10861086

1087-
/* force recalculate of box by dropping */
1087+
/*
1088+
** Set the geodetic flag so subsequent
1089+
** functions do the right thing.
1090+
*/
1091+
lwgeom_set_geodetic(lwgeom2, true);
1092+
1093+
/* Recalculate the boxes after re-setting the geodetic bit */
10881094
lwgeom_drop_bbox(lwgeom2);
1095+
lwgeom_add_bbox(lwgeom2);
10891096

1090-
g2 = gserialized_geography_from_lwgeom(lwgeom2, -1);
1097+
g2 = geography_serialize(lwgeom2);
10911098

10921099
/* Clean up */
10931100
lwgeom_free(lwgeom1);

0 commit comments

Comments
 (0)