[postgis-commits] svn - r3840 - trunk/regress

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Mar 10 13:15:22 PDT 2009


Author: colivier
Date: 2009-03-10 13:15:22 -0700 (Tue, 10 Mar 2009)
New Revision: 3840

Modified:
   trunk/regress/gml.sql
   trunk/regress/gml_expected
Log:
update GML unit test according to AsGML option related to CRS output option

Modified: trunk/regress/gml.sql
===================================================================
--- trunk/regress/gml.sql	2009-03-10 19:37:47 UTC (rev 3839)
+++ trunk/regress/gml.sql	2009-03-10 20:15:22 UTC (rev 3840)
@@ -29,7 +29,10 @@
 SELECT 'version_03', ST_AsGML(21, GeomFromEWKT('SRID=4326;POINT(1 1)'));
 SELECT 'version_04', ST_AsGML(-4, GeomFromEWKT('SRID=4326;POINT(1 1)'));
 
-
+-- Option
+SELECT 'option_01', ST_AsGML(2, GeomFromEWKT('SRID=4326;POINT(1 1)'), 0, 0);
+SELECT 'option_02', ST_AsGML(3, GeomFromEWKT('SRID=4326;POINT(1 1)'), 0, 1);
+  
 --
 -- Line
 --

Modified: trunk/regress/gml_expected
===================================================================
--- trunk/regress/gml_expected	2009-03-10 19:37:47 UTC (rev 3839)
+++ trunk/regress/gml_expected	2009-03-10 20:15:22 UTC (rev 3840)
@@ -8,6 +8,8 @@
 version_02|<gml:Point srsName="EPSG:4326"><gml:pos>1 1</gml:pos></gml:Point>
 ERROR:  Only GML 2 and GML 3 are supported
 ERROR:  Only GML 2 and GML 3 are supported
+option_01|<gml:Point srsName="EPSG:4326"><gml:coordinates>1,1</gml:coordinates></gml:Point>
+option_02|<gml:Point srsName="urn:ogc:def:crs:EPSG:4326"><gml:pos>1 1</gml:pos></gml:Point>
 line_01|<gml:LineString><gml:coordinates>3429562.6,5799490.68 3429750.99,5799199.87 3429825.45,5799078.39 3429901.8,5798961.45 3429995.54,5798822.93 3430072.89,5798719.46 3430216,5798558.95 3430272.08,5798489.33 3430393.87,5798328.51 3430463.53,5798251.11 3430532.22,5798190.16 3430591.24,5798149.53 3430667.67,5798108.9 3430723.78,5798088.58 3430797.33,5798067.95 3430857.34,5798056.34 3430912.52,5798051.5 3430961.89,5798048.59 3431052.88,5798053.43 3431159.36,5798059.24 3431218.41,5798061.18 3431366.56,5798056.09 3431474.07,5798044.47 3431568.02,5798028.97 3431644.53,5798012.51</gml:coordinates></gml:LineString>
 line_02|<gml:Curve><gml:segments><gml:LineStringSegment><gml:posList>3429562.6 5799490.68 3429750.99 5799199.87 3429825.45 5799078.39 3429901.8 5798961.45 3429995.54 5798822.93 3430072.89 5798719.46 3430216 5798558.95 3430272.08 5798489.33 3430393.87 5798328.51 3430463.53 5798251.11 3430532.22 5798190.16 3430591.24 5798149.53 3430667.67 5798108.9 3430723.78 5798088.58 3430797.33 5798067.95 3430857.34 5798056.34 3430912.52 5798051.5 3430961.89 5798048.59 3431052.88 5798053.43 3431159.36 5798059.24 3431218.41 5798061.18 3431366.56 5798056.09 3431474.07 5798044.47 3431568.02 5798028.97 3431644.53 5798012.51</gml:posList></gml:LineStringSegment></gml:segments></gml:Curve>
 line_03|<gml:LineString><gml:coordinates>3429563,5799491 3429751,5799200 3429825,5799078 3429902,5798961 3429996,5798823 3430073,5798719 3430216,5798559 3430272,5798489 3430394,5798329 3430464,5798251 3430532,5798190 3430591,5798150 3430668,5798109 3430724,5798089 3430797,5798068 3430857,5798056 3430913,5798052 3430962,5798049 3431053,5798053 3431159,5798059 3431218,5798061 3431367,5798056 3431474,5798044 3431568,5798029 3431645,5798013</gml:coordinates></gml:LineString>



More information about the postgis-commits mailing list