[mapguide-users] Re: The feature set is empty
Mauricio Villablanca
mgvillablanca at yahoo.com
Sun Aug 28 03:30:50 EDT 2011
Add a line to your code before the switch statement to check whether a value
is null before you retrieve its value.
$propertyType = $featureReader->GetPropertyType($name);
$is_null = $featureReader->IsNull($name);
if ($is_null) {
$value = 'NULL';
return $value;
}
switch($propertyType)
{
...
}
If the value for a property is NULL, your switch statement will never be
executed.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/The-feature-set-is-empty-tp6647729p6734136.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list