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

Zac Spitzer zac.spitzer at gmail.com
Tue Aug 16 05:19:49 EDT 2011


how can a null geometry get returned for a BBOX query when rendering?

On Tue, Aug 16, 2011 at 6:38 PM, Buddy Hu <Buddy.Hu at autodesk.com> wrote:
> 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
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-internals mailing list