[NUUG kart] Yet another tool to convert kartverket data to OSM

Gnonthgol gnonthgol at gmail.com
Sun Jan 11 11:41:38 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Den 11. jan. 2015 01:24, Thomas Weidner skreiv:
> There seemed to be no good tool to convert SOSI files to OSM (yes there is sosi2osm, but it seemed incomplete...why didn't I work on sosi2osm? good question...)

That is a good question. I think it is pretty easy to convert your "plugins" to lua scripts for use in sosi2osm though so not to duplicate the work.

> This tool is now pretty usable and understands nearly all information available in the freely available "N50" map data. I created some nice maps of the area around Ålesund for my Garmin GPS using it. :-)

The tool looks pretty usable. There are however some bugs though. Firsty I do not see where you are reading the "TEGNSETT" tag in the header. Not all SOSI files are ISO8859-10 and it may be other values for that tag.

You have probably seen the SOSI standard definitions over at http://www.kartverket.no/en/SOSI-Standard-in-English/SOSI/ but it would be fun to make a proper parser that follows the standard. I see that you have made a regex parser based on actual standard. I use the official library which does not implement such a
parser. I have also seen that the files can violate the standard in some areas.

Gnonthgol
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIbBAEBAgAGBQJUslNbAAoJEMipERg12T/AaTEP+KMV4VPRUyo5EJXhA86gmnEa
xX10r+zN94nMF2awFHb7jCA6joNzpwSPlPiZXf+kfi/aaC9Qj+tCat1bLus+wjhP
MtbAyZzDvOQsW5DP/S9Dq+lyOPyXtY+koDmn3KtZ3sETYeWCxnNnclqacu5HlHRc
npKzukAd9uwop3QXpEuBQzYx839soqx0D/hS+td6TC9P0gDqTky6AK4oED01K3xs
nIvB8bP2E74yqZfixnQxrAH0y2kUTeuaKLfpNum6kpVKOtDwA9ytuBYEO/Q4SIBs
QotrMJdGVhqXZBSaxlhYWG+T7R7zgkIgJfz3880uLbmgXy94keL7ZYwtiLq7XtAF
ucfzSm9Nho7KFvOF/HeQfDaw78C6uyCGm7ztVBCxzecLmPUDOEDP8TUcRhTWUm+6
GgTfwJ4n3Fk9t1j+hRquIz+1K/mBicVHNofwtmq0bLhlZfZESc1kaBFdN7Gxjrv1
ZSnj4ZoutQ0YPnAidIKpR4Z1VvFEyixsaRj7T9bqj3nLukDudfY5KjO/penb3AQ8
JiVGswjZ7AqzbLgY4rfrs6AnlJQQQ55+6niT6NTkxYbGR+Rd1aqkFqk9sy/ZHEjU
tMHiY8rqxQdF2wAs9yAZl3NuEtwGpEXxNh3hZ8C1YmtyCkwcc7Gaa381qdg8bZ/2
hUF6Su60aVS40FD0DGU=
=FDuZ
-----END PGP SIGNATURE-----


More information about the kart mailing list