[mapguide-users] Automatically load mgp packages

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Wed Jan 28 02:34:19 EST 2009


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
>>
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090128/61ff7eee/attachment.html


More information about the mapguide-users mailing list