<div>Thanks Dan,<br>Returning correct extents solved the issue. Thanks for the pointer.</div>
<div>Piet<br> </div>
<div><span class="gmail_quote">On 9/12/07, <b class="gmail_sendername">Dan Stoica</b> <<a href="mailto:dan.stoica@autodesk.com">dan.stoica@autodesk.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> Also, I can't get geometry to show up (Q2 in my original email)<br><br>This might have something to do with the dataset extents:
<br>- does your provider implement SpatialExtents() aggregate function?<br>- Did you try Map's "Zoom to extents" command?<br><br>Dan.<br><br><br>-----Original Message-----<br>From: <a href="mailto:fdo-users-bounces@lists.osgeo.org">
fdo-users-bounces@lists.osgeo.org</a><br>[mailto:<a href="mailto:fdo-users-bounces@lists.osgeo.org">fdo-users-bounces@lists.osgeo.org</a>] On Behalf Of Piet Bibber<br>Sent: Wednesday, September 12, 2007 5:36 AM<br>To: <a href="mailto:fdo-users@lists.osgeo.org">
fdo-users@lists.osgeo.org</a><br>Subject: [fdo-users] RE: New FDO Provider and using it in Map 3D<br><br><br>Thanks Robert indeed.<br>I got the dialog working already. More than I expected. nice.<br>Still, the little icon on the left of the Provider in the Data Connect
<br>dialog shows the Provider as a database. How do I chance that?<br><br>Also, I can't get geometry to show up (Q2 in my original email),<br>although I<br>think I do return valid geometry in the GetGeometry function of the
<br>Reader.<br><br>Thanks so much!<br>Piet<br><br><br><br>gregboone wrote:<br>><br>> Thanks Robert! This will help the community at large.<br>><br>> Greg<br>><br>> -----Original Message-----<br>> From:
<a href="mailto:fdo-users-bounces@lists.osgeo.org">fdo-users-bounces@lists.osgeo.org</a><br>> [mailto:<a href="mailto:fdo-users-bounces@lists.osgeo.org">fdo-users-bounces@lists.osgeo.org</a>] On Behalf Of Robert Fortin
<br>> Sent: Tuesday, September 11, 2007 5:51 PM<br>> To: FDO Users Mail List<br>> Subject: RE: [fdo-users] New FDO Provider and using it in Map 3D<br>><br>> Hi Piet!<br>><br>> You could have expected the Map FDO Data Connect Dialog to look for
<br>the<br>> properties IsPropertyFileName or IsPropertyFilePath from the<br>> IPropertyDictionary interface to figure out if a connection property<br>is<br>> a file or a path and, base on that, show proper control to select
<br>either<br>> a file or a path. But it is not the case! The default dialog that<br>you<br>> see doesn't make use of those properties.<br>><br>> BUT There is a solution to your problem: define a custom connection
<br>> control specific to your provider that would show into the Data<br>connect<br>> dialog. It is documented in the document help/sdk.dev.net.gis.chm<br>under<br>> Map install path. Look for Data Connect and follow the instructions.
<br>><br>> To help you get started, I have attached a sample that work with the<br>SDF<br>> provider renamed to OSGeo.MYSDF.3.2. Just update the reference to the<br>> FDO, Autodesk and Map dlls and build it. Then put the dll under
<br>> <Map>/Plugins/DataConnect. Edit the providers.xml file and change or<br>> create a copy of the SDF info and change the name to<br>> <Name>OSGeo.MYSDF.3.2</Name>.<br>><br>> After that, when you start Map, a special UI will let you pick the
<br>name<br>> of an SDF file by selecting the MYSDF provider.<br>><br>> Hope it helps.<br>><br>> RF<br>><br>> -----Original Message-----<br>> From: <a href="mailto:fdo-users-bounces@lists.osgeo.org">
fdo-users-bounces@lists.osgeo.org</a><br>> [mailto:<a href="mailto:fdo-users-bounces@lists.osgeo.org">fdo-users-bounces@lists.osgeo.org</a>] On Behalf Of Piet Bibber<br>> Sent: Tuesday, September 11, 2007 5:20 AM<br>
> To: <a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br>> Subject: [fdo-users] New FDO Provider and using it in Map 3D<br>><br>><br>> I have just created a new FDO Provider (supporting Nen1878) and
<br>> struggling with 2 items:<br>><br>> 1) the icon in the 'data connect'-dialog indicates a database, yet the<br>> GetProviderDatastoreType returns FdoProviderDatastoreType_File<br>> 1a) what do I need to implement to get the browse for file and browse
<br>> for directory buttons?<br>><br>> 2) The Geometry column shows a 0 (zero) for Geometric Types, albeit I<br>> return a 'FdoGeometryType_Point' primitive in CreateCachedGeometry<br>> (called by 'virtual FdoByteArray* GetGeometry (FdoString*
<br>identifier)')<br>><br>> extract:<br>> FdoGeometryType fdoGeomType = FdoGeometryType_Point;<br>> FdoInt32 dimensionality = FdoDimensionality_XY;<br>> FdoInt32 numPointOrds = 2; // Always 2. (No Z or M)
<br>> FdoInt32 numPositions = 1;<br>><br>> fgfByteArray->Clear();<br>><br>> fgfByteArray = FdoByteArray::Append(fgfByteArray, sizeof(fdoGeomType),<br>> (FdoByte *) &fdoGeomType);<br>><br>
> DoublePoint dp(0.,0.);<br>><br>> numBytesForOrdinates = numPointOrds * sizeof(double) * 1; fgfByteArray<br>=<br>> FdoByteArray::Append(fgfByteArray,<br>> sizeof(dimensionality),<br>> (FdoByte *) &dimensionality );
<br>> fgfByteArray = FdoByteArray::Append(fgfByteArray,<br>numBytesForOrdinates,<br>><br>> (FdoByte *)&dp );<br>><br>><br>> Q1: When is the Geometric Type set? During schema creation or when<br>> passing the geometry (I think the latter)
<br>><br>> Thanks up front<br>> // Piet<br>> --<br>> View this message in context:<br>><br><a href="http://www.nabble.com/New-FDO-Provider-and-using-it-in-Map-3D-tf4421295s">http://www.nabble.com/New-FDO-Provider-and-using-it-in-Map-3D-tf4421295s
</a><br>> 18162.html#a12610933<br>> Sent from the fdo-users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>><br>> _______________________________________________<br>> fdo-users mailing list
<br>> <a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br>><br>><br>
> _______________________________________________<br>> fdo-users mailing list<br>> <a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/fdo-users">
http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br>><br>><br><br>--<br>View this message in context:<br><a href="http://www.nabble.com/New-FDO-Provider-and-using-it-in-Map-3D-tf4421295s">http://www.nabble.com/New-FDO-Provider-and-using-it-in-Map-3D-tf4421295s
</a><br>18162.html#a12632087<br>Sent from the fdo-users mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>fdo-users mailing list<br><a href="mailto:fdo-users@lists.osgeo.org">
fdo-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br>_______________________________________________<br>fdo-users mailing list
<br><a href="mailto:fdo-users@lists.osgeo.org">fdo-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/fdo-users">http://lists.osgeo.org/mailman/listinfo/fdo-users</a><br></blockquote></div><br>