[mapguide-users] mgnullpropertyvalueexception in 2.0 using featurereader - Get Statements

MMicallef-MTO Michael.Micallef at ontario.ca
Thu Apr 24 13:39:42 EDT 2008


Custom code I worked my way through in v1.2 worked fine using the format

$APPROX_LAT=$featureReader->GetDouble('APPROX_LAT'); 

for values in a fields within a layer. This included if the requested values
were null.

While looping through a lyer retreiving data, i get:
Uncaught exception 'mgnullpropertyvalueexception'

when it hits a  null value in the loop through the data.


Is there an easier way to test or reteive the data out side of using the
format:

if ($featureReader->IsNull($m_name))   

for each field in the layer?

Anyone have some ideas of a better way for me to go at this - I am
relatively new...

Mike
-- 
View this message in context: http://www.nabble.com/mgnullpropertyvalueexception-in-2.0-using-featurereader---Get-Statements-tp16851287p16851287.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list