I wonder if someone could give me a hand with this to make sure I do it correctly. I'm trying to decode the coordinates of a given scenery tile so I can create a kml file for visualization purposes. Based off the btg importer on the wiki and the calc-tile.pl script I've put together this bit of code here.
http://pastebin.com/gG6BfdWu I believe it does the correct things, it matches what the exporter spits out anyway. Could anyone confirm if this is indeed properly decoding the tile coords? Also about the x and y values, it's the position of the tile in a grid that makes up the region? Where is the origin of the grid then, I assume the lower left / south west...x increasing longitude and y increasing latitude or? And lastly what is correct way to get the coordinates of each corner of a tile...should I just add or subtract half span from the center coordinates like so min_lat = center_lat - (span * 0.5) min_lon = center_lon - (span * 0.5) max_lat = center_lat + (span * 0.5) max_lon = center_lon + (span * 0.5) or...? thanks --Jacob ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel