[fdo-commits] r674 - branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp

svn_fdo at osgeo.org svn_fdo at osgeo.org
Thu Jan 25 21:27:11 EST 2007


Author: brentrobinson
Date: 2007-01-25 21:27:11 -0500 (Thu, 25 Jan 2007)
New Revision: 674

Modified:
   branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
Log:
Set GeometryType to Point for Geometric Properties from XY[Z] columns

Modified: branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
===================================================================
--- branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-26 00:29:10 UTC (rev 673)
+++ branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-26 02:27:11 UTC (rev 674)
@@ -3408,42 +3408,20 @@
                 gpd->SetHasMeasure(false);
                 gpd->SetHasElevation((bool)(columnZ != NULL));
 				gpd->SetSpatialContextAssociation(L"Default");
+                FdoGeometryType geomType = FdoGeometryType_Point;
+                gpd->SetSpecificGeometryTypes( &geomType, 1 );
                 FdoSmLpPropertyP newProp = schema->CreateGeometricProperty(
                     gpd, columnX->GetName(), columnY->GetName(), columnZ == NULL ? L"" : columnZ->GetName(), true, this );
+
+                newProp->Update( gpd, FdoSchemaElementState_Unchanged, (FdoPhysicalClassMapping*) NULL, false );
                 GetProperties()->Add( newProp );
+
             }
         }
     }
 
-/*
-    // Load the indexes
-
-    FdoSmPhClassIndexReaderP pIndexReader = classReader->GetClassIndexReader();
-
-    // Prime the index readers with one read.
-    pIndexReader->ReadNext();
-
-    while ( !pIndexReader->IsEOF() ) {
-        FdoSmPhIndexPropertyReaderP pIndexPropReader = pIndexReader->GetPropertyReader();
-
-        FdoSmLpIndex* pIndex = new FdoSmLpIndex( 
-            pIndexReader,
-            this
-        );
-
-        while ( pIndexPropReader->ReadNext() ) {
-            pIndex->AddProperty( pIndexPropReader->GetAttributeName() );
-        }
-
-        mIndexes.Add(pIndex);
-        pIndex->Release();
-
-        // pIndexPropReader->ReadNext() also positions at the next index so 
-        // no need to call pIndexReader->ReadNext() here.
-    }
-
 	// Load the Schema Attribute Dictionary
-*/
+
 	FdoSmPhClassSADReaderP pSADReader = classReader->GetClassSADReader();
 	LoadSAD(pSADReader);
 



More information about the fdo-commits mailing list