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 <[email protected]> wrote: From: Kenneth Skovhede, GEOGRAF A/S <[email protected]> Subject: Re: [mapguide-users] Automatically load mgp packages To: "MapGuide Users Mail List" <[email protected]> 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 [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
