[fdo-users] New FDO Provider and using it in Map 3D

Piet Bibber piet.bibber at gmail.com
Tue Sep 11 05:20:29 EDT 2007


I have just created a new FDO Provider (supporting Nen1878) and struggling
with 2 items:

1) the icon in the 'data connect'-dialog indicates a database, yet the
GetProviderDatastoreType returns FdoProviderDatastoreType_File
1a) what do I need to implement to get the browse for file and browse for
directory buttons?

2) The Geometry column shows a 0 (zero) for Geometric Types, albeit I return
a 'FdoGeometryType_Point' primitive in CreateCachedGeometry (called by
'virtual FdoByteArray* GetGeometry (FdoString* identifier)')

extract:
FdoGeometryType fdoGeomType  = FdoGeometryType_Point;
FdoInt32        dimensionality = FdoDimensionality_XY;
FdoInt32        numPointOrds = 2; // Always 2. (No Z or M)
FdoInt32        numPositions = 1;

fgfByteArray->Clear();

fgfByteArray = FdoByteArray::Append(fgfByteArray, sizeof(fdoGeomType),
(FdoByte *) &fdoGeomType);

DoublePoint dp(0.,0.);

numBytesForOrdinates = numPointOrds * sizeof(double) * 1; 
fgfByteArray = FdoByteArray::Append(fgfByteArray, sizeof(dimensionality),
(FdoByte *) &dimensionality );
fgfByteArray = FdoByteArray::Append(fgfByteArray, numBytesForOrdinates,  
(FdoByte *)&dp );


Q1: When is the Geometric Type set? During schema creation or when passing
the geometry (I think the latter)

Thanks up front
// Piet
-- 
View this message in context: http://www.nabble.com/New-FDO-Provider-and-using-it-in-Map-3D-tf4421295s18162.html#a12610933
Sent from the fdo-users mailing list archive at Nabble.com.



More information about the fdo-users mailing list