The previous error you had indicated that the xml was invalid.
This is likely because you are not sending the entire xml document to
the server.
Perhaps someone with better PHP skills can help you out.
Regards, Kenneth Skovhede, GEOGRAF A/S
Arnaud De Groof skrev:
I have changed the line: "$byteSource = new MgByteSource($updatedXml,
strlen($updatedXml));" by "$byteSource = new MgByteSource($updatedXml,
mb_strlen($updatedXml));" without success.
The xml code coming from the initial MapDefinition was carried out
thanks to Maestro. I join here the result of the $updatedXml:
<?xml version="1.0" encoding="utf-8"?>
<MapDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:noNamespaceSchemaLocation="MapDefinition-1.0.0.xsd">
<Name>New Map</Name>
<CoordinateSystem>PROJCS["WGS 84 / UTM zone 48N",GEOGCS["WGS
84",DATUM["WGS_1984",SPHEROID["WGS
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","32648"]]</CoordinateSystem>
<Extents>
<MinX>608404.999984747</MinX>
<MaxX>641160.000015253</MaxX>
<MinY>1121406.87752137</MinY>
<MaxY>1142427.99990895</MaxY>
</Extents>
<BackgroundColor>ffffffff</BackgroundColor>
<Metadata/>
<MapLayer><Name>YYY</Name><ResourceId>Session:92b640a0-ffff-ffff-8002-001aa0d22567_fr_7F0000010AFC0AFB0AFA//
YYY.LayerDefinition</ResourceId><Selectable>false</Selectable><ShowInLegend>false</ShowInLegend><LegendLabel/><ExpandInLegend>false</ExpandInLegend><Visible>true</Visible><Group/></MapLayer><MapLayer>
<Name>Station</Name>
<ResourceId>Library://XXX/Station.LayerDefinition</ResourceId>
<...
Thanks for your help.
Regards,
Arnaud De Groof
*
------------------------------------------------------------------------
E-MAIL DISCLAIMER*
The present message may contain confidential and/or legally privileged
information. If you are not the intended addressee and in case of a
transmission error, please notify the sender immediately and destroy
this E-mail. Disclosure, reproduction or distribution of this document
and its possible attachments is strictly forbidden.
SPACEBEL denies all liability for incomplete, improper, inaccurate,
intercepted, (partly) destroyed, lost and/or belated transmission of
the current information given that unencrypted electronic transmission
cannot currently be guaranteed to be secure or error free.
Upon request or in conformity with formal, contractual agreements, an
originally signed hard copy will be sent to you to confirm the
information contained in this E-mail.
SPACEBEL denies all liability where E-mail is used for private use.
SPACEBEL cannot be held responsible for possible viruses that might
corrupt this message and/or your computer system.
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
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