[mapguide-users] create a temporary !Mapdefinition and add a layer

Arnaud De Groof Arnaud.DeGroof at spacebel.be
Mon Dec 22 10:27:22 EST 2008


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"]],AUTHORIT
Y["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"]]</Co
ordinateSystem>

  <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-00
1aa0d22567_fr_7F0000010AFC0AFB0AFA//
YYY.LayerDefinition</ResourceId><Selectable>false</Selectable><ShowInLeg
end>false</ShowInLegend><LegendLabel/><ExpandInLegend>false</ExpandInLeg
end><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.
____________________________________________________________________________________



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081222/8590d328/attachment.html


More information about the mapguide-users mailing list