Solved!. 

The error isn't in the source code, is in the repository. 

I uploaded a .shp called street, and I renamed it Street with Studio. So I
thought the Feature class changes too. wrong!

Beware with this!

Thk!.


Jose Manuel C G wrote:
> 
> Hello again!
> 
>   I have a code that doesn't work in the new version 2.0 about select in a
> layer.
> 
> ...
>         $featureResId = new MgResourceIdentifier($resLibrary);
>       $queryOptions = new MgFeatureQueryOptions();
>       $queryOptions->SetFilter("KEY LIKE '" . $key . "'");
>       
>       $featureReader = $featureService->SelectFeatures($featureResId, $resID,
> $queryOptions);
>       $layer = $map->GetLayers()->GetItem($resLayer); 
>       $selection = new MgSelection($map);
>       $selection->AddFeatures($layer, $featureReader, $matches);
>       $selectionXml = $selection->ToXml();
> ...
> 
> I suposse the call to the api change. Any help?
> 

-- 
View this message in context: 
http://www.nabble.com/Upgrade-code-from-0.76-to-2-beta-2-tp14687176s16610p14694335.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to