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