ImageOverlay does not render correctly if polygon is not North-South aligned

classic Classic list List threaded Threaded
2 messages Options
Hannes Naude Hannes Naude
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ImageOverlay does not render correctly if polygon is not North-South aligned

Hi all

I've been trying to use ImageOverlay to overlay an aerial image on my terrain. I first aligned the image with the terrain in Google Earth to obtain the coordinates for the corner points. I include a screen shot of the result here: https://drive.google.com/open?id=0BxFJunbfwjckQ3Q0V1dfeDlvN00 . But when I modify the annotation.earth example file to use these corner points and this image for the ImageOverlay, I end up with this : https://drive.google.com/open?id=0BxFJunbfwjckNVRFLW9oTUY0NTg . This looks like a bug to me and I have also reproduced it by simply rotating the original image overlay that was in annotation.earth by 45 degrees. Can someone confirm whether this is a known limitation of the ImageOverlay class or whether a workaround exists?

Regards
Hannes Naude
Hannes Naude Hannes Naude
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImageOverlay does not render correctly if polygon is not North-South aligned

Incidentally I've found that an easy way to demonstrate this issue is to run the osgearth_imageoverlay app with the vert command line option.

So for example from your tests folder run:  
osgearth_imageoverlay gdal_tiff.earth --image ../data/fractal.png 0 0 1 1 --vert

As soon as you switch into edit mode and drag one of the vertices of the overlay, the problem becomes apparent.

Regards
Hannes Naude
Loading...