Opened 10 years ago

Last modified 5 years ago

#2488 new defect

The result of GetFeaturesKml contains more Placemark elements than expected

Reported by: zhanga Owned by:
Priority: low Milestone: 4.0
Component: General Version: 2.5.0
Severity: trivial Keywords:
Cc: External ID:

Description

If a layer is using composite style, the result of MgServerKmlService::GetFeaturesKml contains more <Placemark> elements than expected.
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.
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.

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

Attachments (1)

KmlRenderer.patch (1.1 KB ) - added by zhanga 10 years ago.

Download all attachments as: .zip

Change History (3)

by zhanga, 10 years ago

Attachment: KmlRenderer.patch added

comment:1 by jng, 7 years ago

Milestone: 3.03.3

Ticket retargeted after milestone closed

comment:2 by jng, 5 years ago

Milestone: 3.34.0

Milestone renamed

Note: See TracTickets for help on using tickets.