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)
Change History (3)
by , 10 years ago
Attachment: | KmlRenderer.patch added |
---|
comment:1 by , 7 years ago
Milestone: | 3.0 → 3.3 |
---|
Ticket retargeted after milestone closed