[mapguide-users] Modify mapdefinition in a layout

euskalmap ziburudebian at free.fr
Wed Mar 25 03:49:16 EDT 2009


HI,

Yes i have the file WebLayout-1.0.0.xsd in the directory C:\Program Files\MapGuideOpenSource2.0\Server\Schema\.
which method you want that I use to save the weblayout ?
If i save the weblayout in my code with the instruction ,
FileStream fs = File.Create("c:\\temp\\test.xml");
fs.Write(encodedBytes, 0, encodedBytes.Length);
it is normal that i can not read the weblayout because the file WebLayout-1.0.0.xsd is not present in c:\temp directory.
I have not understand how saving and reading the weblayout ?
Other question : Perhaps my mapguide server is not correctly parameterized? 
Thanks for your lelp.


Yes, it is very strange that it happens with only weblayouts.
Do you have the file:
C:\Program Files\MapGuideOpenSource2.0\Server\Schema\WebLayout-1.0.0.xsd

Can you save the weblayout if you just read it, and then save it? (eg. 
not changing anything).

Regards, Kenneth Skovhede, GEOGRAF A/S



euskalmap skrev:
> Hi,
> I have try your maestro class in my sample like this : 
> http://patxi.mayol.free.fr/sample2.asp
> http://patxi.mayol.free.fr/sample2.asp 
> I have always the same error.
> In the mapguide log file it say 'An exception occurred in the XML parser.'
> and at the end i say about an error in
> MgResourceContentManager.ValidateDocument.
> Perhaps, Mapguide server can not find the WebLayout.1.0.0.xsd file ?
> What you think about it?.
> NB:It is very strange that there is no problem with filter in layer and as
> much problem to modify mapdefinition in layout !!!
>
> Thanks
>
>
>   
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



-- 
View this message in context: http://n2.nabble.com/Modify-mapdefinition-in-a-layout-tp2462320p2531089.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list