[mapguide-internals] FdoIFeatureReader::GetGeometry()

Traian Stanev traian.stanev at autodesk.com
Tue Mar 27 17:33:43 EDT 2007



GetGeometry() is supposed to throw an exception in the case of a null
geometry. In general FDO is exception based and not return code based.
Same for GetString().

Traian



-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Haris
Kurtagic
Sent: Tuesday, March 27, 2007 5:49 PM
To: MapGuide Internals Mail List
Subject: [mapguide-internals] FdoIFeatureReader::GetGeometry()

Hi,

 

As I am seeing in MapGuide OS when it is reading
FdoIFeatureReader::GetGeometry it is not cheking if NULL pointer is
returned.

 

I would appreciate if someone would comment on this is this a bug or
supposed to be.

 

Can the reader return NULL?

 

 

There is a function IsNull in the reader but that could be two different
situations, like column is not NULL but geometry is not valid.

 

Haris

_______________________________________________
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