Torsten Dreyer | 27 Jan 2007 10:21
Picon

making --min-lat et al. work in genapts

Hi

genapts has switches --min-lat, --max-lat, --min-lon and --max-lon that are 
accepted but ignored. The attached main.cxx (that belongs to the GenAirports 
subdirectory) now adds the functionality.
It calculates the average latitude and longitude of all taxiways and runways 
for the airport in progress and checks if these fall within the min/max args. 
Code is mostly stolen from buidl_airport() in build.cxx...

Seems to be working here. And makes life a little easier when working on a 
small area or single tile.

Sorry for not posting a cvs diff - my cvs access is somehow broken :-(

Enjoy - Torsten

Attachment (main.cxx): text/x-csrc, 17 KiB
_______________________________________________
Terragear-devel mailing list
Terragear-devel <at> flightgear.org
http://mail.flightgear.org/mailman/listinfo/terragear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Gmane