Google
Official Google Earth Download Site

Google Earth Community System Reliability: HIGH

Support and Answers >> KML Discussions (read only)

Jump to first unread post. Pages: 1
barryhunter
Guide


Reged: 07/30/05
Posts: 596
Loc: Wales, Europe
Making a View-Based Refresh efficient when tilted?
      #637277 - 10/11/06 02:10 PM

As is probably common I use the BBOX returned during a refresh of a View-Based refresh to return some results to the user. (in my case a bunch of placemarks or a grid, but that's beside the point)

This works well when the view is directly overhead as there is very little wastage and the bbox represents the region of interest quite well. However as soon as the view is tilted it becomes less useful as lots of the bbox is wasted in encompassing the distant area toward the horizon.

While this is visible there's not much point returning high resolution data for it as 1) is barely visible and 2) wasting bandwidth which could be better repositioned to show the foreground in higher res...

So my first question is has anybody got a nice solution to this? #

To combat this I have a solution that seems to work quite well...
Basically I capture the bbox and the lookat lat/long, and if the lat/long is outside the central area of the bbox (hence got some tilt going on), recalculate a new bbox square sized based on the distance of the lat/long to the nearest edge. As a small tweak I move this square forward toward the center of the bbox to place it more in the users foreground (less wastage behind the view)

I realise my explanation is probably garbled so a demo might help, luckily I have one here, this is a copy of my UTM grid-lines layer with this tweak. Try this out with when tilted and hopefully the grid should be high-resolution in the foreground area, without getting diluted extending into the distance. (compare with unmodified here - both these links should open the network link into your Temp places)


And so my second question, is does this seem to work well, i.e. does it seem logical as a user? I think so, so I plan to implement this** on each network link I control


Source code of the bbox recalculation snippet here, both as a RFC and a help for others.

# I know could probably use a combination of the lookat vars, to calculate a bbox, but frankly working out the size of the bbox is a little beyond me. (I can think up unconvential solutions like the above, but not do the 3d geometry )

** well a slight variation for the placemark links which don't need to be constrained to a square 'area'.

--------------------

- www.nearby.org.uk - www.geograph.org.uk - www.trigtools.co.uk -


Post Extras: Print Post   Remind Me!   Report this Post  
Pages: 1




Extra information
0 registered and 4 anonymous users are browsing this forum.

Moderator:  Hill, Jumble, jrohlf, Kempster, mcshea98, jeffryv, dulce, esterrett, regionator, NormB, Frank_McVey, geus, ZeroDeeFeX, LaBelleTerre, vagabondsailor, SupersonicBuddha, DWebb, BeadieJay, TheLedge, Cyclonic, no_stranger, LuciaM, tekgergedan, ManoM, cantarell, toponym2006, Noisette, danescombe, Michal_Drewniak, mutex, marinerfan, Delta102, bebop, MarkAubin 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 1085

Rate this topic

Jump to

earth.google.com    bbs.keyhole.com

*
UBB.threads™ 6.5.1.1