开发者

How can I calculate the latitude and longitude of each pixel of an image in a kml file using Python?

开发者 https://www.devze.com 2023-01-22 03:42 出处:网络
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 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 n开发者_StackOverflow社区eed 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消