[postgis-commits] svn - r2663 - trunk/regress
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Mon Jul 16 11:27:01 PDT 2007
Author: mleslie
Date: 2007-07-16 11:26:58 -0700 (Mon, 16 Jul 2007)
New Revision: 2663
Modified:
trunk/regress/sql-mm-circularstring.sql
trunk/regress/sql-mm-compoundcurve.sql
trunk/regress/sql-mm-curvepoly.sql
trunk/regress/sql-mm-multicurve.sql
trunk/regress/sql-mm-multisurface.sql
Log:
Resurrected the ST_LineToCurve regression tests, but commented them out until ST_SnapToGrid excepts curves.
Modified: trunk/regress/sql-mm-circularstring.sql
===================================================================
--- trunk/regress/sql-mm-circularstring.sql 2007-07-16 18:06:32 UTC (rev 2662)
+++ trunk/regress/sql-mm-circularstring.sql 2007-07-16 18:26:58 UTC (rev 2663)
@@ -310,6 +310,14 @@
SELECT 'envelope03', asText(snapToGrid(envelope(the_geom_3dz), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.circularstring;
SELECT 'envelope04', asText(snapToGrid(envelope(the_geom_4d), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.circularstring;
+-- TODO: ST_SnapToGrid is required to remove platform dependent precision
+-- issues. Until ST_SnapToGrid is updated to work against curves, these
+-- tests cannot be run.
+--SELECT 'ST_LineToCurve01', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_2d))) FROM public.circularstring;
+--SELECT 'ST_LineToCurve02', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dm))) FROM public.circularstring;
+--SELECT 'ST_LineToCurve03', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dz))) FROM public.circularstring;
+--SELECT 'ST_LineToCurve04', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_4d))) FROM public.circularstring;
+
-- Repeat tests with new function names.
SELECT 'astext01', ST_astext(the_geom_2d) FROM public.circularstring;
SELECT 'astext02', ST_astext(the_geom_3dm) FROM public.circularstring;
Modified: trunk/regress/sql-mm-compoundcurve.sql
===================================================================
--- trunk/regress/sql-mm-compoundcurve.sql 2007-07-16 18:06:32 UTC (rev 2662)
+++ trunk/regress/sql-mm-compoundcurve.sql 2007-07-16 18:26:58 UTC (rev 2663)
@@ -229,6 +229,14 @@
SELECT 'envelope03', asText(snapToGrid(envelope(the_geom_3dz), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.compoundcurve;
SELECT 'envelope04', asText(snapToGrid(envelope(the_geom_4d), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.compoundcurve;
+-- TODO: ST_SnapToGrid is required to remove platform dependent precision
+-- issues. Until ST_SnapToGrid is updated to work against curves, these
+-- tests cannot be run.
+--SELECT 'ST_LineToCurve', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_2d))) FROM public.compoundcurve;
+--SELECT 'ST_LineToCurve', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dm))) FROM public.compoundcurve;
+--SELECT 'ST_LineToCurve', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dz))) FROM public.compoundcurve;
+--SELECT 'ST_LineToCurve', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_4d))) FROM public.compoundcurve;
+
-- Repeat tests on new function names.
SELECT 'astext01', ST_astext(the_geom_2d) FROM public.compoundcurve;
SELECT 'astext02', ST_astext(the_geom_3dm) FROM public.compoundcurve;
Modified: trunk/regress/sql-mm-curvepoly.sql
===================================================================
--- trunk/regress/sql-mm-curvepoly.sql 2007-07-16 18:06:32 UTC (rev 2662)
+++ trunk/regress/sql-mm-curvepoly.sql 2007-07-16 18:26:58 UTC (rev 2663)
@@ -373,6 +373,14 @@
SELECT 'interiorRingN-203', asEWKT(interiorRingN(the_geom_3dz, 2)) FROM public.curvepolygon;
SELECT 'interiorRingN-204', asEWKT(interiorRingN(the_geom_4d, 2)) FROM public.curvepolygon;
+-- TODO: ST_SnapToGrid is required to remove platform dependent precision
+-- issues. Until ST_SnapToGrid is updated to work against curves, these
+-- tests cannot be run.
+--SELECT 'ST_LineToCurve01', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_2d))) FROM public.curvepolygon;
+--SELECT 'ST_LineToCurve02', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dm))) FROM public.curvepolygon;
+--SELECT 'ST_LineToCurve03', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dz))) FROM public.curvepolygon;
+--SELECT 'ST_LineToCurve04', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_4d))) FROM public.curvepolygon;
+
-- Repeat tests with new function names.
SELECT 'astext01', ST_astext(the_geom_2d) FROM public.curvepolygon;
SELECT 'astext02', ST_astext(the_geom_3dm) FROM public.curvepolygon;
Modified: trunk/regress/sql-mm-multicurve.sql
===================================================================
--- trunk/regress/sql-mm-multicurve.sql 2007-07-16 18:06:32 UTC (rev 2662)
+++ trunk/regress/sql-mm-multicurve.sql 2007-07-16 18:26:58 UTC (rev 2663)
@@ -268,6 +268,14 @@
SELECT 'geometryN-303', (asEWKT(geometryN(the_geom_3dz, 3)) is null) FROM public.multicurve;
SELECT 'geometryN-304', (asEWKT(geometryN(the_geom_4d, 3)) is null) FROM public.multicurve;
+-- TODO: ST_SnapToGrid is required to remove platform dependent precision
+-- issues. Until ST_SnapToGrid is updated to work against curves, these
+-- tests cannot be run.
+--SELECT 'ST_LineToCurve01', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_2d))) FROM public.multicurve;
+--SELECT 'ST_LineToCurve02', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dm))) FROM public.multicurve;
+--SELECT 'ST_LineToCurve03', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dz))) FROM public.multicurve;
+--SELECT 'ST_LineToCurve04', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_4d))) FROM public.multicurve;
+
-- Repeat all tests with the new function names.
SELECT 'astext01', ST_astext(the_geom_2d) FROM public.multicurve;
SELECT 'astext02', ST_astext(the_geom_3dm) FROM public.multicurve;
Modified: trunk/regress/sql-mm-multisurface.sql
===================================================================
--- trunk/regress/sql-mm-multisurface.sql 2007-07-16 18:06:32 UTC (rev 2662)
+++ trunk/regress/sql-mm-multisurface.sql 2007-07-16 18:26:58 UTC (rev 2663)
@@ -482,6 +482,14 @@
SELECT 'geometryN-303', (geometryN(the_geom_3dz, 3) is null) FROM public.multisurface;
SELECT 'geometryN-304', (geometryN(the_geom_4d, 3) is null) FROM public.multisurface;
+-- TODO: ST_SnapToGrid is required to remove platform dependent precision
+-- issues. Until ST_SnapToGrid is updated to work against curves, these
+-- tests cannot be run.
+--SELECT 'ST_LineToCurve01', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_2d))) FROM public.multisurface;
+--SELECT 'ST_LineToCurve02', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dm))) FROM public.multisurface;
+--SELECT 'ST_LineToCurve03', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_3dz))) FROM public.multisurface;
+--SELECT 'ST_LineToCurve04', asewkt(ST_LineToCurve(ST_CurveToLine(the_geom_4d))) FROM public.multisurface;
+
-- Repeat tests with new function names.
SELECT 'astext01', ST_astext(the_geom_2d) FROM public.multisurface;
SELECT 'astext02', ST_astext(the_geom_3dm) FROM public.multisurface;
More information about the postgis-commits
mailing list