[Talk-ht] perl script to convert the hospitals
jamesmikedupont at googlemail.com
jamesmikedupont at googlemail.com
Tue Feb 2 10:00:42 GMT 2010
I have tried to post the script and the results to the list, but they
are too big.
the script is here :
http://pastebin.com/d448840de
the results are here :
http://filebin.ca/bvpspw/HaitiHealthFacilities_Master2.osm
Attached is an OSM file that includes only the name and the healthid.
If you want all the tags, uncomment the section
# dont do all the tags
# foreach my $t (sort keys %obj)
# {
# my $v=$obj{$t};
# $v =~ s/\'/"/g;
# print "<tag k='MSPP:$t' v='$v' />\n";
# }
It skips the point at the south pole :
SANTE COMMUNAUTAIRE MEBSH
the perl script processes the data from the excel sheet, but saved
first into tab separated format. Watch out that openoffice truncates
the decimals, you need to set the column format to be wider before
exporting!
hope that helps, happy mapping.
mike
More information about the Talk-ht
mailing list