[fdo-commits] r753 - branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Feb 14 18:52:21 EST 2007


Author: brentrobinson
Date: 2007-02-14 18:52:20 -0500 (Wed, 14 Feb 2007)
New Revision: 753

Modified:
   branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoUpdateTest.cpp
Log:
Added 2nd point to linestring

Modified: branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoUpdateTest.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoUpdateTest.cpp	2007-02-14 23:30:16 UTC (rev 752)
+++ branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoUpdateTest.cpp	2007-02-14 23:52:20 UTC (rev 753)
@@ -1919,7 +1919,7 @@
         table->AddPkeyCol( fkColumn->GetName() );
 
     if ( hasGeom )
-        column = table->CreateColumnGeom( phMgr->GetDcColumnName(L"GEOMETRY"), (FdoSmPhScInfo*) NULL, true, true );
+        column = table->CreateColumnGeom( phMgr->GetDcColumnName(L"GEOMETRY"), (FdoSmPhScInfo*) NULL, true, false );
 
     column = table->CreateColumnChar( phMgr->GetDcColumnName(ValueColName()), true, 20 );
 
@@ -2014,8 +2014,8 @@
     propertyValue = FdoUpdateTest::AddNewProperty( propertyValues, phMgr->GetDcColumnName(ValueColName()) );
     propertyValue->SetValue(dataValue);
     
-    double       coordsBuffer[3];
-    int          segCount = 1;
+    double       coordsBuffer[4];
+    int          segCount = 2;
     FdoPtr<FdoFgfGeometryFactory> gf = FdoFgfGeometryFactory::GetInstance();
 
     if ( hasGeom ) {
@@ -2023,6 +2023,8 @@
 		// Use 2D to accomodate MySql
         coordsBuffer[0] = 5;
         coordsBuffer[1] = 10;
+        coordsBuffer[2] = 15;
+        coordsBuffer[3] = 20;
 
         propertyValue = FdoUpdateTest::AddNewProperty( propertyValues, phMgr->GetDcColumnName(L"GEOMETRY") );
         FdoPtr<FdoILineString> line1 = gf->CreateLineString(FdoDimensionality_XY, segCount*2, coordsBuffer);



More information about the fdo-commits mailing list