[mapguide-users] Unique Identify for Feature
Jsm
enriquev at consortech.com
Fri Mar 27 23:26:34 EDT 2009
Hi,
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
while ($featureReader->ReadNext())
{
$id = $featureReader->GetInt32('ID'); // Or you could try FeatId instead of ID
$features[$id] = $text;
}
$featureReader->Close();
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
mailing list