<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:294260864;
        mso-list-type:hybrid;
        mso-list-template-ids:1030003452 -360954052 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:5;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Matteo!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I think the FDO tool box would enable you to copy shp to sdf .
See <a href="http://fdotoolbox.googlecode.com/">http://fdotoolbox.googlecode.com/</a>&nbsp;
There is also .NET code there to look into.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But in order to give you a very brief introduction to get going
with .NET FDO&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In order to start you would generally reference OSGeo.Fdo.dll
and OSGeo.Fdo.Common.dll (and then add as you need other ones)<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You can get the list of available provider from </span><span
style='font-size:10.0pt;font-family:"Courier New"'>OSGeo.FDO.ClientServices.<span
style='color:#2B91AF'>FeatureAccessManager</span>.GetProviderRegistry()</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You will need to get the connection manager from &nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in'><span style='font-size:10.0pt;
font-family:"Courier New"'><br>
OSGeo.FDO.<span style='color:#2B91AF'>IconnectionManager </span>mConnMgr=OSGeo.FDO.ClientServices.<span
style='color:#2B91AF'>FeatureAccessManager</span>.GetConnectionManager();<br>
<br>
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:10.0pt;font-family:"Courier New"'>Once
you know the provider you want to create a connection for, you call CreateConnection
on the ConnectionManager for the specific provider named. <br>
<br>
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>OSGeo.FDO.Connections.<span
style='color:#2B91AF'>Iconnection </span>mProvConn = mConnMgr.CreateConnection(&#8220;OSGeo.SDF.3.3&#8221;);
<br>
<br>
<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1;
text-autospace:none'><![if !supportLists]><span style='font-size:10.0pt;
font-family:"Calibri","sans-serif"'><span style='mso-list:Ignore'>-<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:10.0pt;font-family:"Courier New"'>From
the connection, you can get the connection Info object which has the list of
connection parameters. This varies depending on the provider.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
OSGeo.FDO.Connections.<span style='color:#2B91AF'>IConnectionInfo</span>
connInfo = mProvConn.ConnectionInfo;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>OSGeo.FDO.Connections.<span
style='color:#2B91AF'>IConnectionPropertyDictionary</span> connPropDict =
connInfo.ConnectionProperties;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>connPropDict.SetProperty(&#8220;File&#8221;,
&#8220;myfile&#8221;);<br>
<br>
<o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Once you are done setting the connection parameters, open the connection<br>
<br>
<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in'><span style='font-size:10.0pt;
font-family:"Courier New"'>mProvConn.Open();<br>
<br>
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style='font-size:10.0pt;font-family:"Courier New"'>From
that point on, you can create commands to described the schema</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
OSGeo.FDO.Commands.Schema.<span style='color:#2B91AF'>IDescribeSchema</span>
schemaCmd<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>mProvConn.CreateCommand(OSGeo.FDO.Commands.<span
style='color:#2B91AF'>CommandType</span>.CommandType_DescribeSchema);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>OSGeo.FDO.Schema.<span
style='color:#2B91AF'>FeatureSchemaCollection</span> schemaCol =
schemaCmd.Execute();<br>
<br>
<o:p></o:p></span></p>

<p class=MsoListParagraph style='margin-left:1.0in;text-indent:-.25in;
mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-size:11.0pt;
font-family:"Courier New";color:#1F497D'><span style='mso-list:Ignore'>o<span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp; </span></span></span><![endif]><span
style='font-size:10.0pt;font-family:"Courier New"'>Or select/update/delete the
data or to retrieve the schema.<br>
<br>
</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OSGeo.FDO.Commands.Feature.<span style='color:#2B91AF'>ISelect</span> selCmd = (OSGeo.FDO.Commands.Feature.<span
style='color:#2B91AF'>ISelect</span>)(OSGeo.FDO.Commands.Feature.<span
style='color:#2B91AF'>ISelectAggregates</span>)mProvConn.CreateCommand(OSGeo.FDO.Commands.<span
style='color:#2B91AF'>CommandType</span>.CommandType_Select);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
selCmd.SetFeatureClassName(<span style='color:#A31515'>&quot;myclass&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OSGeo.FDO.Commands.Feature.<span style='color:#2B91AF'>IReader</span> myReader
= selCmd.Execute();<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>while</span> (myReader.ReadNext())<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <span style='color:blue'>string</span> aStr = myReader.GetString(<span
style='color:#A31515'>&quot;some_property&quot;</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.25in;text-autospace:none'><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.75in'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hope this can get you started.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Robert<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
fdo-users-bounces@lists.osgeo.org [mailto:fdo-users-bounces@lists.osgeo.org] <b>On
Behalf Of </b>Matteo<br>
<b>Sent:</b> Tuesday, December 02, 2008 1:17 PM<br>
<b>To:</b> fdo-users@lists.osgeo.org<br>
<b>Subject:</b> [fdo-users] .net and fdo<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi all, I would to create an application (vb.net or c#) that
convert shp file to sdf 3. I'm new in fdo tecnology and I don't know the basic
step for develep with FDO. For example: 1) How dll i must be reference in my
.net project? 2) What is the connection string to connect to a shp file? I
don't find some examples Regards Matteo <o:p></o:p></p>

<div class=MsoNormal>

<hr size=2 width=300 style='width:225.0pt' align=left>

</div>

<p class=MsoNormal>View this message in context: <a
href="http://n2.nabble.com/.net-and-fdo-tp1605124p1605124.html">.net and fdo</a><br>
Sent from the <a href="http://n2.nabble.com/FDO-Users-f737950.html">FDO Users
mailing list archive</a> at Nabble.com.<o:p></o:p></p>

</div>

</body>

</html>