2
#-----------------------------------------------------------------------------
3
# Set data source file name in map-features file
4
#-----------------------------------------------------------------------------
6
appendOSMfile($ARGV[0], $ARGV[1]);
9
my ($Datafile,$Datafile1) = @_;
11
# Strip the trailing </osm> from the datafile
12
open(my $fpIn1, "<", "$Datafile");
13
my $Data = join("",<$fpIn1>);
15
die("no such $Datafile") if(! -f $Datafile);
17
$Data =~ s/<\/osm>//s;
22
# Read the merge file remove the xml prolog and opening <osm> tag and append to the datafile
23
open(my $fpIn2, "<", "$Datafile1");
24
my $discard = <$fpIn2>;
26
my $Data = join("",<$fpIn2>);
28
die("no such $Datafile1") if(! -f $Datafile1);
30
#$Data =~ s/.*server\">//s;
32
# Append to the data file