[mapguide-trac] #235: API Exception When Reading SHP data With NULL DateTime attributes

MapGuide Open Source trac_mapguide at osgeo.org
Mon Jul 30 16:08:33 EDT 2007


#235: API Exception When Reading SHP data With NULL DateTime attributes
-----------------------+----------------------------------------------------
   Reporter:  wct      |       Owner:       
       Type:  defect   |      Status:  new  
   Priority:  high     |   Milestone:  1.2  
  Component:  General  |     Version:  1.2.0
   Severity:  major    |    Keywords:       
External_id:           |  
-----------------------+----------------------------------------------------
 Windows Server 2003 / MG 1.2.0 RC1 / DotNet API.

 I receive an exception when using the Feature Service to Select
 Features(FeatureService.SelectFeatures() ) into a feature reader when
 having a DateTime Field with NULL data. This is against SHP files w/
 MapGuide DotNet API. The Stack Trace:

 OSGeo.MapGuide.MgInvalidArgumentException: Invalid argument(s):
         [1] = "0"
 The year is invalid because it must be between 1 and 9999.
 - MgCommand.GetResponse line 165 file
 c:\build_bond_area\mapguide_open_source_v1.2\build_17.4\mgdev\common\mapguidecommon\Services/Command.cpp
 - MgServerFeatureReader.Serialize line 615 file
 c:\build_bond_area\mapguide_open_source_v1.2\build_17.4\mgdev\server\src\services\feature\ServerFeatureReader.cpp
 - MgServerGetFeatures.GetFeatures line 101 file
 c:\build_bond_area\mapguide_open_source_v1.2\build_17.4\mgdev\server\src\services\feature\ServerGetFeatures.cpp
 - MgDateTime.ValidateDate line 1149 file
 c:\build_bond_area\mapguide_open_source_v1.2\build_17.4\mgdev\common\foundation\Data/DateTime.cpp

 The same data displays fine in the viewer: the query options use the
 featureID's passed down from the viewer via the SelectionXML so I know the
 featureID's are valid.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/235>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list