[mapguide-users] Automatically load mgp packages

Nick Sebastyan nick_sebastyan at yahoo.com
Wed Jan 28 04:45:13 EST 2009


I have succeeded to automatically load mgp packages using the Autodesk Mapguide Studio API : siteConnection.ApplyPackage() function. Thanks for the replies :).

--- On Wed, 1/28/09, Kenneth Skovhede, GEOGRAF A/S <ks at geograf.dk> wrote:

From: Kenneth Skovhede, GEOGRAF A/S <ks at geograf.dk>
Subject: Re: [mapguide-users] Automatically load mgp packages
To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org>
Date: Wednesday, January 28, 2009, 9:34 AM


Yes, the MaestroAPI wraps the call to ApplyResourcePackage.
An example:

ServerConnectionI con = new HttpServerConnection(new Uri("http://localhost/mapguide"), "Administrator", "admin", null, true);
con.UploadPackage("c:\\package.mgp", null);

Regards, Kenneth Skovhede, GEOGRAF A/S


Jackie Ng skrev: 
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:
  
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
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


      _______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090128/40bfbb84/attachment.html


More information about the mapguide-users mailing list