Hi,
i’m doing the Selection by [main viewer frame].SetSelectionXML(PUBLIC_STR).
I’ve found out that the problem is the XSD which is used by setting the selection. I tried to set a selection by doing this
var selXML = viewerFrame.mapFrame.GetSelectionXML();
viewerFrame.mapFrame.ClearSelection();
viewerFrame.mapFrame.SetSelectionXML(selXML);
and it works. Then I compared the selXML string with my string which I create with my Code.
-----------
My Code:
-----------
<?xml version="1.0" encoding="UTF-8"?>
<FeatureSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd">
<Layer id="1ae8c704-bd8d-11e4-800d-0050569026c7">
<Class id="KingOra:ALKIS_02~ALK_DF_FLURSTUECK~GEOM">
<ID>GUsCAAAAAAA=</ID>
</Class> </Layer>
</FeatureSet>
-----------------------------------------------------------------------------------------------------------------------------------------------
CODE FROM viewerFrame.mapFrame.GetSelectionXML() ( which works)
-----------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<FeatureSet>
<Layer id="34664b3e-bd8d-11e4-800d-0050569026c7">
<Class id="KingOra:OFI_ALKIS_02~ALK_DF_FLURSTUECK~GEOM">
<ID>GUsCAAAAAAA=</ID>
</Class>
</Layer>
</FeatureSet>
So, why is there a
--> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"
which is obviously wrong? Can I change something in my code to fix this issue?
Thanks for your help :-)
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
