Skip to content

Commit

Permalink
Use WKB in NaN-based regression test, references #5635
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Dec 4, 2023
1 parent e3c87df commit ac11e3b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions regress/core/split.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ select '87', ST_AsEWKT(ST_Split('SRID=4326;LINESTRING EMPTY', 'SRID=4326;POINT(0


-- https://trac.osgeo.org/postgis/ticket/5635 (split by nan input)
SELECT '#5635a', ST_Split('LINESTRING Z (1 2 NaN,3 4 10,5 6 NaN)'::geometry
,'MULTIPOINT(EMPTY,2 1,2 4, 4 5)'::geometry);
SELECT '#5635a', ST_Split(
'010200008003000000000000000000F03F0000000000000040000000000000F87F00000000000008400000000000001040000000000000244000000000000014400000000000001840000000000000F87F'::geometry
,'0104000000040000000101000000000000000000F87F000000000000F87F01010000000000000000000040000000000000F03F010100000000000000000000400000000000001040010100000000000000000010400000000000001440'::geometry);

-- https://trac.osgeo.org/postgis/ticket/5635 (split by nan blade)
SELECT '#5635b', ST_Split('LINESTRING Z (1 2 1,3 4 10,5 6 3)'::geometry
,'MULTIPOINT(1 NaN,2 1,2 4, 4 5)'::geometry);
SELECT '#5635b', ST_Split(
'010200008003000000000000000000F03F0000000000000040000000000000F03F000000000000084000000000000010400000000000002440000000000000144000000000000018400000000000000840'::geometry
,'0104000000040000000101000000000000000000F03F000000000000F87F01010000000000000000000040000000000000F03F010100000000000000000000400000000000001040010100000000000000000010400000000000001440'::geometry);
-- TODO: split line by collapsed line

0 comments on commit ac11e3b

Please sign in to comment.