[mapguide-internals] Code Reveiw request: Remove IsNull check when get property from feature source

Buddy Hu Buddy.Hu at autodesk.com
Tue Aug 16 04:38:40 EDT 2011


Even there are some date sets with null geometries, Null value geometries are not common.
I thinks it make sense to replace the IsNull check with try catch only for geometry as Traian said.

Buddy

-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org [mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Jason Birch
Sent: Tuesday, August 16, 2011 2:05 PM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] Code Reveiw request: Remove IsNull check when get property from feature source

On 11 August 2011 10:37, Traian Stanev <traian.stanev at autodesk.com> wrote:

>
> Null is common. There are many sparse data sets where just a few rows 
> have a value set and all the other rows have a null value.
>
> It might make sense to remove the null check only for the geometry 
> value when rendering, which is almost never null, but I remember there 
> was a data set with lots of null geometries as well.
>
>
Yeah, I've got a few of those.  One is our cemetery records where we have data going back to the 1800's, and only about 80% of them are geolocated.
 But this happens often with a left join against an "attribute" dataset with spatial mismatches or incompleteness.  Clean data would be awesome, but...

If I recall correctly, the change to current behaviour had an overall beneficial outcome for my maps. Again, it was quite a while ago though...

I'd personally question reverting this change without some mitigating work to the FDO layer to achieve similar effect. It must have been initially implemented for a specific business reason.

Jason
_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals


More information about the mapguide-internals mailing list