1
0
Fork 0

Fixes and tweaks to handle area cutouts for airports.

This commit is contained in:
curt 1998-09-09 20:58:35 +00:00
parent 5b1b93bf87
commit a113722755

View file

@ -167,7 +167,7 @@ sub triangle_1 {
print "$subdir/$fileroot\n"; print "$subdir/$fileroot\n";
$command = "Triangle/triangle"; $command = "Triangle/triangle";
if ( -r "$subdir/$fileroot.poly" ) { if ( -r "$subdir/$fileroot.poly" ) {
$command = " -pc"; $command .= " -pc";
} }
$command .= " -a$max_area -q10 $subdir/$file"; $command .= " -a$max_area -q10 $subdir/$file";
$command = fix_command($command); $command = fix_command($command);
@ -471,6 +471,15 @@ sub install {
if ( $remove_tmps ) { if ( $remove_tmps ) {
unlink("$subdir/$file"); unlink("$subdir/$file");
} }
} elsif ( $file =~ m/\d\d.apt$/ ) {
$command = "cp $subdir/$file $install_dir/$file";
# $command = fix_command($command);
print "Running '$command'\n";
open(OUT, "$command |");
while ( <OUT> ) {
print $_;
}
close(OUT);
} }
} }
} }
@ -478,6 +487,9 @@ sub install {
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.27 1998/09/09 20:58:35 curt
# Fixes and tweaks to handle area cutouts for airports.
#
# Revision 1.26 1998/08/26 22:31:29 curt # Revision 1.26 1998/08/26 22:31:29 curt
# Write out version and "meta" info into each dem's subdirectory containing # Write out version and "meta" info into each dem's subdirectory containing
# all the tiles. # all the tiles.