ranathunga / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Need ColorTable component in KML Specification #241

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are relevant to this feature request?

Google Earth/KML Specification

What should this feature enhancement do?

A ColorTable component would allow users to create polygons that were more 
appropriately defined as DataCells (see feature request Issue #232) and 
have that DataCell be associated with a ColorTable. The ColorTable (also 
referred to in the industry as a ColorRamp or ColorMap) would allow the 
user to define color for data ranges.  That is to say that the fill color 
of a DataCell could be automatically drawn dependent upon the data value 
associated with the DataCell (when the DataCell was associated with a 
ColorTable, of course). Also, a color bar legend could be automatically 
created/drawn for the user as a color legend to be displayed as a 
ScreenOverlay for a given data set.

Are there any currently known workarounds that produce the same, or 
similar, result?

 The atached file contains an icosahedral grid showing color coding for 
data values (in this case Temperature in Kelvin). Programming this is a 
bit cumbersome as the color table legend (ScreenOverlay displayed at the 
top of the image) had to be created in code, and all the polygons had to 
be color-filled by associating that MultiGeometry group with a single 
Placemark. So if you have 16 color ranges you need sixteen Placemarks. If 
a ColorTable and a DataCell existed in KML, then the developer would only 
need to define one MultiGeometry set containing all the grid DataCell's 
and associate one ColorTable with the parent Placemark. The color-coded 
legend and DataCell color fills could then happen automatically.

Original issue reported on code.google.com by evan.pol...@gmail.com on 11 Feb 2009 at 9:05

Attachments:

GoogleCodeExporter commented 9 years ago
Note that the attached KMZ download demonstrates the defects described in Issue 
#227 
and Issue #228.

Original comment by evan.pol...@gmail.com on 11 Feb 2009 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by api.roman.public@gmail.com on 12 Feb 2009 at 7:24

GoogleCodeExporter commented 9 years ago
Sounds like a good idea to me.

Original comment by jeffssmi...@gmail.com on 30 Jun 2009 at 11:15