[Mapguide-trac] [mapguide-trac] #2488: The result of GetFeaturesKml contains more Placemark elements than expected

MapGuide Open Source trac_mapguide at osgeo.org
Wed Sep 24 20:07:24 PDT 2014


#2488: The result of GetFeaturesKml contains more Placemark elements than expected
-----------------------+----------------------------------------------------
   Reporter:  zhanga   |       Owner:       
       Type:  defect   |      Status:  new  
   Priority:  low      |   Milestone:  3.0  
  Component:  General  |     Version:  2.5.0
   Severity:  trivial  |    Keywords:       
External_id:           |  
-----------------------+----------------------------------------------------
 If a layer is using composite style, the result of
 MgServerKmlService::GetFeaturesKml contains more <Placemark> elements than
 expected.[[BR]]
 It is because MgKmlService::GetFeaturesKml() uses
 StylizationEngine::StylizeVectorLayer() which calls method Stylize() for
 each style. Then the method KmlRenderer::StartFeature() is called several
 times. Each time it will write string "<Placemark>" to the result.[[BR]]
 We can utilize the parameter initialPass of method StartFeature, which is
 not used in KmlRenderer now. If initialPass is true, we write string
 "<Placemark>", otherwise not. [[BR]]

 More discussion can be found in [http://trac.osgeo.org/fusion/ticket/627]

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


More information about the mapguide-trac mailing list