savelov / radar-wms

radar product wms viewer
GNU Lesser General Public License v3.0
9 stars 5 forks source link

kmz export generates incorrect bbox #14

Closed savelov closed 5 years ago

savelov commented 5 years ago

need to caclualte correct bounding box in order to correctly map the picture in google earth

savelov commented 5 years ago

in addition check how many pixels, as they need to match original tiff.

savelov commented 5 years ago

kmz format for google earth requires EPSG:4326 (coordinates longlat, not in meters), and bbox in longlat

savelov commented 5 years ago

hardcoded coordinates coordinates.xlsx

savelov commented 5 years ago

hardcoded coordinates coordinates.xlsx

savelov commented 5 years ago

fmi kmz generates an error WIDTH/HEIGHT should be between 1 and 4096

savelov commented 5 years ago

FMI works with width=1400, but possibly projection might be wrong

savelov commented 5 years ago

fixed projection by latest commit, need to take midpoint of each edge instead of coordinates of corners to generate latlon bbox