[fdo-commits] r675 - trunk/Utilities/SchemaMgr/Src/Sm/Lp
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Thu Jan 25 21:51:01 EST 2007
Author: brentrobinson
Date: 2007-01-25 21:51:00 -0500 (Thu, 25 Jan 2007)
New Revision: 675
Modified:
trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
Log:
Merged from 3.2.x branch
Modified: trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
===================================================================
--- trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp 2007-01-26 02:27:11 UTC (rev 674)
+++ trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp 2007-01-26 02:51:00 UTC (rev 675)
@@ -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