faridprog / regionator

Automatically exported from code.google.com/p/regionator
0 stars 0 forks source link

qidboxes do not match the output .kml #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run regionator with the following arguments: 
2. tests\NASA_KSC.jpg tests\ksc-llb-3.kml c:\tmp\NASA\NASA.kml c:\tmp\NASA
3. open the output NASA.kml and qidboxes.kml in Google Earth
4. notice that the lines for the qidboxes do not match up with the output
NASA image.

What is the expected output? What do you see instead?
I expected that the qidboxes would be overlayed directly on top of the NASA
image but instead the qidboxes created a box that was much larger than the
NASA image (encompassing it).

What version of the product are you using? On what operating system?
From the README file I am using version (checked out on 10/30/06)
$URL: http://regionator.googlecode.com/svn/trunk/README $
$Revision: 2 $
$Date: 2006-08-10 19:01:48 -0400 (Thu, 10 Aug 2006) $
I am running on Windows XP

Please provide any additional information below.
See the attached .jpg for a screen shot of my results displayed in Google Earth

Original issue reported on code.google.com by pblai...@gmail.com on 30 Oct 2006 at 1:11

Attachments:

GoogleCodeExporter commented 8 years ago
You have noticed something very subtle and important.

Dig into the llb-0 overlay and open 19.kml in Google Earth
along with qidboxes.kml and enable and disable the
visibility of the 5 GroundOverlays.

One of the most important lines of code in the Regionator
is within 'RootRegion()' in kml/region.py.  Note how this
is used in kml/superoverlayinfo.py SuperoverlayInfo::Regionate()
where it calls kml.region.RootSnap().

Attached is a screenshot of this excercise.

Note: the qidboxes are KML LineStrings which do _not_ follow
longitude lines.  For this particular example the lines are
close enough.  The corners will always match the corners
of the images.  See ancestors.kml in kml/tests for another
illustration of some important Regionator concepts and
for a box drawing technique which _does_ follow longitude
lines and hence image borders.

Original comment by regiona...@gmail.com on 1 Nov 2006 at 4:45

Attachments: