views:

49

answers:

1

I am using .kml file which points to an overlay image (presumably in UTM projection?). The KML file provides the latitudes and longitudes of the bounding box using the "LatLonBox" tag.

I need to calculate the latitudes and longitudes of each pixel in this image.

Are there any pre-existing libraries in Python that would do this for me?

A: 

The overlay image referenced by the kml file was in standard geographic projection. This means that the latitudes and longitudes vary linearly within the image.

Calculating the latitude and longitude of each pixel became a trivial case of interpolation given that we already known the lat/lon bounds of the image provided by the LatLonBox tag attributes.

Pete W