<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello,<br><br><span class="tab"> </span>After passing from charging data from .sdf files to charging data from Oracle Spatial using KingOracle as provider, I have faced some problems when trying to use SetSelectionXML.<br><br><span class="tab"> </span>The xmlSelection is created but without the <ID> element:<br><br> <?xml version="1.0" encoding="UTF-8" ?><br> <FeatureSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"><br> <Layer id="171561a0-2b28-11e1-8000-005056c00001"><br> <Class
id="KingOra:XE~POSTE~DATA"><br> <ID /><br> </Class><br> </Layer><br> </FeatureSet><br><br><br><br>I am using the following code to create the $xmlSelection:<br><br> $queryOptions = new MgFeatureQueryOptions();<br><br> for ($i = 0; $i < $layerCollection->GetCount() && !$foundKey; $i++) {<br> <br> $layer = $layerCollection->GetItem($i);<br> if ($layer->GetName() == 'Poste') {<br><br> for ($j = 0; $j < sizeof($queryPropertyName); $j++)
{<br> try {<br> $queryOptions->SetFilter('NAME' . ' ' . $queryOperation . " '" ."A1" . "'");<br> $featureReader = $layer->SelectFeatures($queryOptions);<br> if ($featureReader->ReadNext()) {<br> $featureClass = $layer->GetFeatureClassName();<br> $properties = new
MgPropertyCollection();<br> $properties->Add(new MgStringProperty('NAME', $featureReader->GetString('NAME')));<br> <br> $selection = new MgSelection($map);<br> $selection->AddFeatureIds($layer, $featureClass, $properties);<br><br> $xmlSelection =
$selection->ToXml();<br> $featureReader->Close();<br> $foundKey = true;<br><br> break;<br> }<br><br> $featureReader->Close();<br><br> } catch (MgException $e)
{<br><br> }<br> }<br> }<br><br><br><br>I also get the following error:<br><br> Error: An exception occurred in FDO component.<br> c_KgOraSelectCommand.Execute : ERROR: FindClassDefinition() return NULL <br> StackTrace:<br> - MgFeatureServiceHandler.ProcessOperation line 83 file c:\builds\mg22x64\mgdev\server\src\services\feature\FeatureServiceHandler.cpp<br> - MgOpSelectFeatures.Execute line 109 file c:\builds\mg22x64\mgdev\server\src\services\feature\OpSelectFeatures.cpp<br> - MgServerFeatureService.SelectFeatures line 433 file c:\builds\mg22x64\mgdev\server\src\services\feature\ServerFeatureService.cpp<br> - MgServerSelectFeatures.SelectFeatures line 266 file
c:\builds\mg22x64\mgdev\server\src\services\feature\ServerSelectFeatures.cpp <br><br><br>I'm using Mapguide 2.2, 64 bit<br><br>Does anybody know why this happens?<br><br>Thank you,<br>Iulia<br><br></div></div></body></html>