Skip to content

Commit f2acfb4

Browse files
committed
PostGIS input: fix regression introduced by 62d3e61 when dealing with 2D-only PostGIS 1.X geometries (#4941)
1 parent 52942b2 commit f2acfb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mappostgis.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2241,7 +2241,7 @@ int msPostGISReadShape(layerObj *layer, shapeObj *shape)
22412241
w.ptr[5] = w.ptr[1];
22422242
w.ptr[6] = w.ptr[2];
22432243
w.ptr[7] = w.ptr[3];
2244-
w.ptr[8] = w.ptr[4];
2244+
w.ptr[8] = w.ptr[4] & ~(0x20);
22452245
w.ptr[4] = 1;
22462246
w.ptr += 4;
22472247
w.size -= 4;

0 commit comments

Comments
 (0)