[mapguide-trac] #165: Missing VectorScaleRange in LayerDefinition causes Runtime Exception

MapGuide Open Source trac_mapguide at osgeo.org
Thu May 24 06:24:10 EDT 2007


#165: Missing VectorScaleRange in LayerDefinition causes Runtime Exception
-------------------------------+--------------------------------------------
   Reporter:  zspitzer         |       Owner:       
       Type:  defect           |      Status:  new  
   Priority:  medium           |   Milestone:  1.2  
  Component:  Mapping Service  |     Version:  1.2.0
   Severity:  major            |    Keywords:       
External_id:                   |  
-------------------------------+--------------------------------------------
 for example not having     <VectorScaleRange>.....</VectorScaleRange> in a
 layer definition for example throws

   An exception occurred in DB XML component. Error: XML Indexer: Parse
 error in document at line, 9, char 28. Parser message: Not enough elements
 to match content model :
 '(ResourceId,Opacity,(FeatureName,FeatureNameType,Filter,PropertyMapping,Geometry,Url,ToolTip,VectorScaleRange),ExtendedData1)'

 however  having an empty <VectorScaleRange></VectorScaleRange> ie no
 styling or scale ranges

 will case a runtime error and a console dialog on xp.

 the following is listed in the logs

   - MgStylizationUtil.StylizeLayers line 923 file
 c:\build_bond_area\mapguide_open_source_v1.2\build_13.7\mgdev\server\src\services\mapping\StylizationUtil.cpp
 Failed to stylize layer: Datasets_ABORIG_NT

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


More information about the mapguide-trac mailing list