World Wind Forums

Go Back   World Wind Forums > WorldWind .Net Development > Developers' Corner

Developers' Corner General World Wind development.

Reply
 
Thread Tools Display Modes
Old 09-21-2010, 08:37 AM   #41
Unregistered
Guest
 
Posts: n/a
Default

I just drove through the Ozarks last weekend and I would have killed to have GE or WW handy to tell me what I was driving past. [img]style_emoticons/<#EMO_DIR#>/smile.gif[/img]
  Reply With Quote
Old 07-02-2012, 06:26 PM   #42
KBub
Junior Member
 
Join Date: Jun 2012
Posts: 10
KBub is on a distinguished road
Default

Quote:
Originally Posted by cmaxwell View Post
Here's the code that I use to name files. Source Lat and Lon is the Lower-Left corner of the image:

public static int GetRowFromLatitude(float latitude, float tileSize)
{
return (int)System.Math.Floor((System.Math.Abs(-90.0 - latitude)%180)/tileSize);
}

public static int GetColFromLongitude(float longitude, float tileSize)
{
return (int)System.Math.Floor((System.Math.Abs(-180.0 - longitude)%360)/tileSize);
}

Hope that helps.
How do I acquire the tileSize variable?
KBub is offline   Reply With Quote
Old 07-02-2012, 06:34 PM   #43
KBub
Junior Member
 
Join Date: Jun 2012
Posts: 10
KBub is on a distinguished road
Default

Also, I assume that this.getAlignmentY() is how I acquire the latitude value correct?
KBub is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plug-in: PlaceNameMaker canosso Add-ons & Scripts 4 03-30-2011 03:29 PM
Plugin: My favorite Icons - Add Icons/Favorite canosso Add-ons & Scripts 26 03-02-2010 03:06 AM
WW1.3.2-Plugin: Layer Edit canosso Add-ons & Scripts 21 02-27-2010 04:37 AM
WW 1.3.2-Plugin: Skripter canosso Add-ons & Scripts 33 03-22-2007 02:06 PM
Convert Coordinates for World Wind canosso Add-on & Script Development 14 07-31-2005 02:12 PM


All times are GMT +1. The time now is 05:12 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.