]> granicus.if.org Git - postgis/commitdiff
Move ST_ClosestPointOfApproach tests under temporal.sql
authorSandro Santilli <strk@keybit.net>
Thu, 4 Jun 2015 21:03:53 +0000 (21:03 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 4 Jun 2015 21:03:53 +0000 (21:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13622 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_lrs.sql
regress/regress_lrs_expected
regress/temporal.sql
regress/temporal_expected

index 05c044d88ca2669190c51f8509a369f6c31a7812..ca78b4f66d84761100c25015bc2bba82126b25bb 100644 (file)
@@ -63,29 +63,6 @@ select 'line_substring_12', ST_AsText(ST_LineSubstring('LINESTRING(0 0 10, 1 1 5
 select 'line_interpolate_point', ST_AsText(ST_LineInterpolatePoint('LINESTRING(0 0, 1 1)', 0));
 select 'line_interpolate_point', ST_AsText(ST_LineInterpolatePoint('LINESTRING(0 0 10, 1 1 5)', 0.5));
 
---
---- ST_PointOfClosestApproach
---
-
--- Converging
-select 'pca1', ST_ClosestPointOfApproach(
-  'LINESTRINGZM(0 0 0 0, 10 10 10 10)',
-  'LINESTRINGZM(0 0 0 1, 10 10 10 10)');
--- Following
-select 'pca2', ST_ClosestPointOfApproach(
-  'LINESTRINGZM(0 0 0 0, 10 10 10 10)',
-  'LINESTRINGZM(0 0 0 5, 10 10 10 15)');
--- Crossing
-select 'pca3', ST_ClosestPointOfApproach(
-  'LINESTRINGZM(0 0 0 0, 0 0 0 10)',
-  'LINESTRINGZM(-30 0 5 4, 10 0 5 6)');
--- Ticket #3136
-WITH inp as ( SELECT
- 'LINESTRING M (0 0 80000002,1 0 80000003)'::geometry g1,
- 'LINESTRING M (2 2 80000000,1 1 80000001,0 0 80000002)'::geometry g2 )
-SELECT 'pca#3136',
-ST_ClosestPointOfApproach(g2,g1), ST_ClosestPointOfApproach(g1,g2)
-FROM inp;
 
 --
 -- ST_AddMeasure
index 59ebf4bdbfd5b17b854aaf7139e4a3802879b7df..54ae3ff7f6fac202b20ff6aafd59a7346a69e429 100644 (file)
@@ -34,10 +34,6 @@ line_substring_11|POINT(0 0)
 line_substring_12|POINT Z (0.5 0.5 7.5)
 line_interpolate_point|POINT(0 0)
 line_interpolate_point|POINT Z (0.5 0.5 7.5)
-pca1|10
-pca2|5
-pca3|5.5
-pca#3136|80000002|80000002
 addMeasure1|LINESTRING M (0 0 10,2 0 15,4 0 20)
 addMeasure2|LINESTRING M (0 0 10,9 0 19,10 0 20)
 interpolatePoint1|2
index 07549bdf2acafabe994943c79c782770d5c6425b..b61642716a8cdb6ba11a29cf56c5055ea309df33 100644 (file)
@@ -1,3 +1,9 @@
+----------------------------------------
+--
+-- ST_IsValidTrajectory
+--
+----------------------------------------
+
 SELECT 'invalidTrajectory1', ST_IsValidTrajectory('POINTM(0 0 0)'::geometry);
 SELECT 'invalidTrajectory2', ST_IsValidTrajectory('LINESTRINGZ(0 0 0,1 1 1)'::geometry);
 SELECT 'invalidTrajectory3', ST_IsValidTrajectory('LINESTRINGM(0 0 0,1 1 0)'::geometry);
@@ -7,3 +13,29 @@ SELECT 'invalidTrajectory8', ST_IsValidTrajectory('LINESTRINGM(0 0 0,1 1 1,1 1 2
 SELECT 'validTrajectory1', ST_IsValidTrajectory('LINESTRINGM(0 0 0,1 1 1)'::geometry);
 SELECT 'validTrajectory2', ST_IsValidTrajectory('LINESTRINGM EMPTY'::geometry);
 SELECT 'validTrajectory3', ST_IsValidTrajectory('LINESTRINGM(0 0 0,1 1 1,1 1 2)'::geometry);
+
+----------------------------------------
+--
+-- ST_PointOfClosestApproach
+--
+----------------------------------------
+
+-- Converging
+select 'pca1', ST_ClosestPointOfApproach(
+  'LINESTRINGZM(0 0 0 0, 10 10 10 10)',
+  'LINESTRINGZM(0 0 0 1, 10 10 10 10)');
+-- Following
+select 'pca2', ST_ClosestPointOfApproach(
+  'LINESTRINGZM(0 0 0 0, 10 10 10 10)',
+  'LINESTRINGZM(0 0 0 5, 10 10 10 15)');
+-- Crossing
+select 'pca3', ST_ClosestPointOfApproach(
+  'LINESTRINGZM(0 0 0 0, 0 0 0 10)',
+  'LINESTRINGZM(-30 0 5 4, 10 0 5 6)');
+-- Ticket #3136
+WITH inp as ( SELECT
+ 'LINESTRING M (0 0 80000002,1 0 80000003)'::geometry g1,
+ 'LINESTRING M (2 2 80000000,1 1 80000001,0 0 80000002)'::geometry g2 )
+SELECT 'pca#3136',
+ST_ClosestPointOfApproach(g2,g1), ST_ClosestPointOfApproach(g1,g2)
+FROM inp;
index acb418b9da278739284219a329b5dbb06189605a..03036cf4848cc2c6d4a5378f97af6fe045b20300 100644 (file)
@@ -11,3 +11,7 @@ invalidTrajectory8|f
 validTrajectory1|t
 validTrajectory2|t
 validTrajectory3|t
+pca1|10
+pca2|5
+pca3|5.5
+pca#3136|80000002|80000002