In the attached KML, I am updating the transparency of my PolyStyle color from 7d (in 7dff0000) to an arbitrary fc (in fcff0000).
Rather than using an arbitrary update value, I'd like to pass a value (somewhere between 00 and ff) in through a Python script, probably connected to the KML via a network link. The design would be as follows:
1) The KML contains <TimeSpan> begin and end dates for individual decadal censuses (e.g., 1900 and 1910, etc.)
2) When executed, the KML calls the Python script through a <NetworkLink>, passing in the beginning and end dates.
3) The Python script searches a data table to find the population density for Azusa at that census date.
4) Once the density is found, the Python script finds the corresponding 256-bit color transparency, for both the beginning and end dates, and sends it back to the KML.
5) The KML substitutes the two transparency arguments it receives into the <color> tags.
I recognize that this may be difficult if not impossible to do in the way I described, so any alternative approach would also be appreciated. (P.S. -- the file is actually a kml; I just needed to change the extension to transmit it).
Thanks in advance for your help. Azusa.txt