<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>I have succeeded to automatically load mgp packages using the Autodesk Mapguide Studio API : siteConnection.ApplyPackage() function. Thanks for the replies :).</DIV>
<DIV><BR>--- On <B>Wed, 1/28/09, Kenneth Skovhede, GEOGRAF A/S <I><ks@geograf.dk></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px">From: Kenneth Skovhede, GEOGRAF A/S <ks@geograf.dk><BR>Subject: Re: [mapguide-users] Automatically load mgp packages<BR>To: "MapGuide Users Mail List" <mapguide-users@lists.osgeo.org><BR>Date: Wednesday, January 28, 2009, 9:34 AM<BR><BR>
<DIV id=yiv1910635186>Yes, the MaestroAPI wraps the call to ApplyResourcePackage.<BR>An example:<BR><BR>ServerConnectionI con = new HttpServerConnection(new Uri(<A class=moz-txt-link-rfc2396E target=_blank href="http://localhost/mapguide" rel=nofollow>"http://localhost/mapguide"</A>), "Administrator", "admin", null, true);<BR>con.UploadPackage("c:\\package.mgp", null);<BR><BR><PRE class=moz-signature>Regards, Kenneth Skovhede, GEOGRAF A/S
</PRE><BR><BR>Jackie Ng skrev:
<BLOCKQUOTE type="cite"><PRE>The mapagent http endpoint exposes an ApplyResourcePackage function.
You could programatically HTTP post your package files to this mapagent url.
You might also be able to do this via the MaestroAPI library (I'm not
personally sure)
- Jackie
Sebastian NICIU wrote:
</PRE>
<BLOCKQUOTE type="cite"><PRE>Hi all,
Is it possible to automatically load mgp packages ?
At the moment I use MapGuide Site Administrator --> Manage Packages-->Load
package to load packages.
I am trying to create maps without the user intervention because we have
to load more than 100 mgp files for a single synchronization.
Thanks
_______________________________________________
mapguide-users mailing list
<A class=moz-txt-link-abbreviated target=_blank href="mailto:mapguide-users@lists.osgeo.org" rel=nofollow>mapguide-users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext target=_blank href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" rel=nofollow>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A>
</PRE></BLOCKQUOTE><PRE> </PRE></BLOCKQUOTE></DIV><PRE>_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
</PRE></BLOCKQUOTE></td></tr></table><br>