<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
To convert data to SDF, you must use the FDO libraries.<br>
I think the FDO toolbox can do this for you, and if not, it's open
source, so you can use it as a starting point:<br>
<a class="moz-txt-link-freetext" href="http://code.google.com/p/fdotoolbox">http://code.google.com/p/fdotoolbox</a><br>
<br>
By "Set the coordinate system", do you mean coordinate system override?<br>
If so, you can look at how Maestro does this:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/ResourceEditors/CoordinateSystemOverride.cs#L256">http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/ResourceEditors/CoordinateSystemOverride.cs#L256</a><br>
<br>
I'm not quite sure how SHP files work, but I think you have to add the
.dbf to the featuresource as well,<br>
ea. add these lines:<br>
<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">using</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
(System.IO.</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">FileStream</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
fss = System.IO.</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">File</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">.OpenRead(</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"C:\\Hydrant.dbf"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">))<o:p></o:p></span>
<br>
<span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;
con.SetResourceData(resId, </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"ShapeFile.DBF"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">,
</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">ResourceDataType</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">.File,
fss);</span><br>
<br>
And the SHP provider should pick it up. Repeat for any extra files you
want (ea. index files, etc.)<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Greenhough, Jamie skrev:
<blockquote
 cite="mid:0FB387BEC450E54795983A68276C727C687A1C@SCVANEX5.sierrasys.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
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:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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:1361855732;
        mso-list-type:hybrid;
        mso-list-template-ids:-315713146 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@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]-->
  <div class="Section1">
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks
Kenneth(!!),<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I&#8217;ve
implemented your code
snippet, and it now looks like this:<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">string</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
username =
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"Author1"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">string</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
password =
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"Author1"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">string</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
locale = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"EN"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">string</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
url = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);"><a class="moz-txt-link-rfc2396E" href="http://mapguideserver/MapGuide">"http://mapguideserver/MapGuide"</a></span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
System.</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">Uri</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
uri = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">new</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
System.</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">Uri</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">(url);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">ServerConnectionI</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
con = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">new</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">HttpServerConnection</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">(uri,
username, password, locale, </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">false</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">);<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">FeatureSource</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
fs = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">new</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">FeatureSource</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">();<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
fs.Provider = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"OSGeo.SHP.3.3"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
fs.Parameter = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">new</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">NameValuePairTypeCollection</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">();<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
fs.Parameter[</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"DefaultFileLocation"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">]
= </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"%MG_DATA_FILE_PATH%ShapeFile.SHP"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">string</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
resId = </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"Library://MYNEWTESTSHAPE.FeatureSource"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">;<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
con.SaveResourceAs(fs, resId);<o:p></o:p></span></p>
  <p class="MsoNormal" style=""><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">using</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
(System.IO.</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">FileStream</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">
fss = System.IO.</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">File</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">.OpenRead(</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"C:\\Hydrant.shp"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">))<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
con.SetResourceData(resId, </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(163, 21, 21);">"ShapeFile.SHP"</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">,
  </span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(43, 145, 175);">ResourceDataType</span><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;">.File,
fss);<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: windowtext;"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">&#8230; and
that works. <o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Now I&#8217;m
looking at and thinking
about how to:<o:p></o:p></span></p>
  <p class="MsoListParagraph"
 style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span
 style="font-family: &quot;Courier New&quot;; color: rgb(31, 73, 125);"><span
 style="">o<span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;
  </span></span></span><!--[endif]--><b><span
 style="color: rgb(31, 73, 125);">Convert to SDF feature
source.<o:p></o:p></span></b></p>
  <p class="MsoListParagraph"
 style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span
 style="font-family: &quot;Courier New&quot;; color: rgb(31, 73, 125);"><span
 style="">o<span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;
  </span></span></span><!--[endif]--><b><span
 style="color: rgb(31, 73, 125);">Set the
coordinate system.<o:p></o:p></span></b></p>
  <p class="MsoListParagraph"
 style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span
 style="font-family: &quot;Courier New&quot;; color: rgb(31, 73, 125);"><span
 style="">o<span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;
  </span></span></span><!--[endif]--><b><span
 style="color: rgb(31, 73, 125);">Import/save the
attribute data from *.dbf file.<o:p></o:p></span></b></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><br>
So I&#8217;m looking for more direction/information on uploading shp files to
a
managed mapguide server. Anyone?<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Thanks<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">From:</span></b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Kenneth
Skovhede, GEOGRAF A/S<br>
  <b>Sent:</b> Friday, October 17, 2008 1:00 AM<br>
  <b>To:</b> MapGuide Users Mail List<br>
  <b>Subject:</b> Re: [mapguide-users] DWGLoadProcedure<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal">As DWG is a proprietary format, I belive it will
be
difficult to do this with only open-source software.<br>
Supposedly, you can use FME to do it, and I think there is some
organisation
that has a 'open-source' like library for reading DWG data.<br>
  <br>
There are no methods for dealing with DWG in Maestro or the Maestro
API, for
the above reasons.<br>
  <br>
As for SHP, it is fairly easy to do this:<br>
  <tt><span style="font-size: 10pt;">IServerConnection con = new
HttpServerConnection(url,
username, password, locale, false);</span></tt><span
 style="font-size: 10pt; font-family: &quot;Courier New&quot;;"><br>
  <tt>FeatureSource fs = new FeatureSource();</tt><br>
  <tt>fs.Provider = "OSGeo.SHP.3.3"; //Adjust if you are not using FDO
3.3</tt><br>
  <tt>fs.Parameter = new NameValueCollection();</tt><br>
  <tt>fs.Parameter["DefaultFileLocation"] =
"%MG_DATA_FILE_PATH%ShapeFile.SHP";
//Can use absolute path here</tt><br>
  <tt>string resId = "Library://MyShpFile.FeatureSource";</tt><br>
  <tt>con.SaveResourceAs(fs, resId);</tt><br>
  <tt>using(System.IO.FileStream fs =
System.IO.File.OpenRead("C:\\myshapefile.shp"))</tt><br>
  <tt>&nbsp;&nbsp;&nbsp; con.SetResourceData(resId, "ShapeFile.SHP",
ResourceDataType.File,
fs);</tt></span><br>
  <br>
The above code will create a managed copy of your shape data.<br>
If you want an unmanaged copy, just change "DefaultFileLocation" to
the absolute path, and remove the "SetResourceData" call.<br>
  <br>
  <br>
  <o:p></o:p></p>
  <pre>Regards, Kenneth Skovhede, GEOGRAF A/S<o:p></o:p></pre>
  <p class="MsoNormal"><br>
  <br>
Greenhough, Jamie skrev: <o:p></o:p></p>
  <p class="MsoNormal">Hello again MapGuide coders ;)<o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <p class="MsoNormal">I want to programmatically load .dwg/.shp files
to a managed
MapGuide environment. <o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <p class="MsoNormal">I think this can be accomplished with the
MapGuide Studio
API&#8230; but are there any other ways to get this data into the MapGuide
server? I&#8217;m trying to stay open source. Are there any methods in the
Maestro API to accomplish this?<o:p></o:p></p>
  <p>----Notice Regarding Confidentiality----<br>
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information
that is confidential or privileged. Sierra Systems Group Inc. and its
affiliates accept no responsibility for any loss or damage suffered by
any
person resulting from any unauthorized use of or reliance upon this
Email. If
you are not the intended recipient, you are hereby notified that any
dissemination, copying or other use of this Email is prohibited. Please
notify
us of the error in communication by return email and destroy all copies
of this
Email. Thank you.<o:p></o:p></p>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre style="text-align: center;">
<hr align="center" size="4" width="90%">

  </pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>_______________________________________________<o:p></o:p></pre>
  <pre>mapguide-users mailing list<o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></pre>
  <pre>&nbsp; <o:p></o:p></pre>
  </div>
  <p>----Notice Regarding Confidentiality----<br>
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you
are hereby notified that any dissemination, copying or other use of
this Email is prohibited. Please notify us of the error in
communication by return email and destroy all copies of this Email.
Thank you.</p>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>