[mapguide-users] Unique Identify for Feature
enriquev at consortech.com
Fri Mar 27 23:26:34 EDT 2009
Usually every feature in an sdf should have an id that you could get like this : (after connecting etc...)
$featureSourceId = new MgResourceIdentifier('Session:' . $Session . '//mysdf.FeatureSource');
$featureReader = $featureService->SelectFeatures($featureSourceId, 'ClassName', null); //I think $featureSourceId->GetName() works instead of ClassName
$id = $featureReader->GetInt32('ID'); // Or you could try FeatId instead of ID
$features[$id] = $text;
This is done server side, but I have gotten these ids client side intercepting some stuff from the ajaxviewer, for selected features that is.
View this message in context: http://n2.nabble.com/Unique-Identify-for-Feature-tp2545225p2547870.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users