[mapguide-users] Error selecting layers in Fusion
PeteMcc
peter.mccann at fcbcjv.co.uk
Thu Jul 11 06:15:03 PDT 2013
Hi Jackie,
Thanks for your response, apologies for the late reply.
I'm not particularly fluent in PHP but I think this is the relevant section
of getselectionproperties.php, can you see any issue?:
$result = NULL;
$result->hasSelection = false;
if ($layers && $layers->GetCount() >= 0)
{
$result->hasSelection = true;
$oExtents = $selection->GetExtents($featureService);
if ($oExtents)
{
$oMin = $oExtents->GetLowerLeftCoordinate();
$oMax = $oExtents->GetUpperRightCoordinate();
$result->extents = NULL;
$result->extents->minx = $oMin->GetX();
$result->extents->miny = $oMin->GetY();
$result->extents->maxx = $oMax->GetX();
$result->extents->maxy = $oMax->GetY();
/*keep the full extents of the selection when saving the
selection in the session*/
$properties->extents = NULL;
$properties->extents->minx = $oMin->GetX();
$properties->extents->miny = $oMin->GetY();
$properties->extents->maxx = $oMax->GetX();
$properties->extents->maxy = $oMax->GetY();
}
$result->layers = array();
for ($i=0; $i<$layers->GetCount(); $i++) {
$layer = $layers->GetItem($i);
$layerName = $layer->GetName();
array_push($result->layers, $layerName);
$layerClassName = $layer->GetFeatureClassName();
$result->$layerName->featureCount =
$selection->GetSelectedFeaturesCount($layer, $layerClassName);
thanks for any help,
Peter
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-selecting-layers-in-Fusion-tp5063763p5065756.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list