GeoServer
  1. GeoServer
  2. GEOS-2182

Avoid encoding redundant styles in KML output

    Details

    • Type: Improvement Improvement
    • Status: Reopened Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In KML output, one style is encoded for each feature/placemark. We could probably save a bit of bandwidth by recycling those styles for features using the same sets of rules, and it would likely make things easier on Google Earth as well.

        Activity

        Hide
        David Winslow added a comment -

        I took a look at this and it doesn't seem like it would be very useful. For one thing, KML styles don't do dynamic anything, so there are a lot of SLDs for which we can't translate directly (so we'd have to enumerate all possible values with a predictable ID so that they could be referenced from the actual KML...). On top of that, KML styles are inherently pretty short (you can only have one icon, one line, ...) so compressing it all down to a single reference only saves you so much. In comparison to a typical polygon geometry, it's not even that big a win (in my tests, the 230 kb or so of KML for topp:states went to about 220, plus a second request for a 4kb style library).

        Show
        David Winslow added a comment - I took a look at this and it doesn't seem like it would be very useful. For one thing, KML styles don't do dynamic anything, so there are a lot of SLDs for which we can't translate directly (so we'd have to enumerate all possible values with a predictable ID so that they could be referenced from the actual KML...). On top of that, KML styles are inherently pretty short (you can only have one icon, one line, ...) so compressing it all down to a single reference only saves you so much. In comparison to a typical polygon geometry, it's not even that big a win (in my tests, the 230 kb or so of KML for topp:states went to about 220, plus a second request for a 4kb style library).
        David Winslow made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Hide
        David Winslow added a comment -

        reopening after a chat with aaime

        Show
        David Winslow added a comment - reopening after a chat with aaime
        David Winslow made changes -
        Resolution Won't Fix [ 2 ]
        Status Closed [ 6 ] Reopened [ 4 ]

          People

          • Assignee:
            David Winslow
            Reporter:
            David Winslow
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: