Ticket #2409 (new feature)

Opened 3 years ago

Last modified 3 years ago

Format.KML: export style.

Reported by: fredj Owned by: tschaub
Priority: minor Milestone: Future
Component: Format.KML Version: 2.8
Keywords: Cc:
State: Needs More Work

Attachments

2409.0.patch Download (7.5 KB) - added by fredj 3 years ago.
first draft
2409.1.patch Download (10.7 KB) - added by fredj 3 years ago.
export LabelStyle, clean code
2409.2.patch Download (10.6 KB) - added by fredj 3 years ago.
sync to trunk version
2409.3.patch Download (12.4 KB) - added by pgiraud 3 years ago.
completed patch with iconStyle (partial) support

Change History

Changed 3 years ago by fredj

first draft

Changed 3 years ago by fredj

export LabelStyle, clean code

Changed 3 years ago by fredj

sync to trunk version

Changed 3 years ago by pgiraud

  • state set to Needs More Work

2409.3.patch adds the support for iconStyle write (at least partially).

The patch needs more work on the following points:

  • we should support 2.0 and 2.2 differently. This affects both write and read methods. For example w, h, x and y <Icon> attributes are deprecated in 2.2. This means that the way we set the graphicWidth and graphicHeight when reading a 2.2 KML may be wrong if the graphic is not as high as large.
  • placemarks with a point but no icon style (yellow pin in gEarth) will mostly be rendered in OpenLayers with a circle with no dimensions. We may need to set a default value for pointRadius in this case.

What the patch does not supported yet:

  • graphic offsets,
  • rotation.

What the KML writer will not support because it's specific to OpenLayers:

  • graphicName,
  • graphic width and height (both set to get a width/height ratio different from the image original one).

Changed 3 years ago by pgiraud

completed patch with iconStyle (partial) support

Changed 3 years ago by fredj

  • milestone changed from 2.10 Release to Future

nobody's working on this -> Future

Note: See TracTickets for help on using tickets.