[mapguide-users] .NET Objects for working with Mapguide Resources
Maksim Sestic
max at geoinova.com
Thu May 22 09:39:40 EDT 2008
Hi Darrin,
Thanks for the tip. Please take a look at Kenneth's Meastro API:
http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/MaestroAPI
It relies on .NET 2.0 for MG types (de)serialization.
Regards,
Maksim Sestic
_____
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Darrin Maidlow
Sent: Thursday, May 22, 2008 15:28
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] .NET Objects for working with Mapguide Resources
Hi List,
I've written two posts I thought I would share with you on the topic of .NET
based MG dev. The first describes a method I've worked out to create
relatively robust .NET based objects based on the Xml Schema Definitions
provided with the server. Please note, I currently am only working with
MGE 2009. I have not tried this code on MGOS. If you do try them on MGOS,
please let me know what results have.
In a nutshell, one can get the resource XML from the resource service, load
it into the object with the provided .parse method, manipulate the object
(without having to use xml) e.g. add child objects, change properties etc,
and finally spit it back out to XML for saving back to the repository. Yay
no longer need to be jealous of the PHP guys and their object factories =D
The second is a dynamic authoring example using these objects, manipulating
the MapDefinition before the viewer has loaded it.
Both come with full source code, and Visual Studio 2008 projects. I hope
they are helpful to the other .NET devs out there.
http://www.webrade.com/blogs/darrin/2008/05/16/CreatingNETObjectsForMapguide
XMLSchemaDefinitionsXSDUsingLINQ.aspx
http://www.webrade.com/blogs/darrin/2008/05/21/DynamicAuthoringInMapguideEnt
erpriseBeforeTheViewerHasLoaded.aspx
Enjoy.
darrin
__________ NOD32 3118 (20080521) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080522/6a789377/attachment.html
More information about the mapguide-users
mailing list