bbox.zmax = bbox.zmin + twkb_parse_state_double(s, s->factor_z);
}
/* M */
- if ( s->has_z )
+ if ( s->has_m )
{
bbox.mmin = twkb_parse_state_double(s, s->factor_m);
bbox.mmax = bbox.mmin + twkb_parse_state_double(s, s->factor_m);
SELECT '#4055a', ST_SRID(unnest(ST_ClusterWithin(ARRAY['SRID=4326;POINT (3 7)'::geometry, 'SRID=4326;LINESTRING (3 0, 3 9)'], 0)));
SELECT '#4055b', ST_SRID(unnest(ST_ClusterIntersecting(ARRAY['SRID=4326;POINT (3 7)'::geometry, 'SRID=4326;LINESTRING (3 0, 3 9)'])));
+--#4089
+select '#4089', st_astext(st_geomfromtwkb(st_AsTWKB(st_GeometryFromText('LINESTRING Z(1 1 1, 3 3 1)'), 1, 0, 0, false, true)));
+
-- Clean up
DELETE FROM spatial_ref_sys;
#4037.4|POLYGON((0 0,2 2,2 8,0 10,10 10,8 8,8 2,10 0,0 0))
#4055a|4326
#4055b|4326
+#4089|LINESTRING Z (1 1 1,3 3 1)