-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Den 11. jan. 2015 13:45, Thomas Weidner skreiv: > Yes, I totally plead guilty of NIH syndrome here. One thing I did not seem to > be possible with sosi2osm is collecting all roads and road route numbers and > output a corresponding relation at the end. But then, at some point I stopped > looking at it.
This is not possible in sosi2osm. I thought about such cases and figured it was better to just postprocess the osm files in good tools rather then try to implement such tools myself. sosi2osm is only converting objects directly and allows you to run the tags through a lua script as the tags in SOSI is hiriarchical and even allows multiple values. > If sosi2osm is the project to go and you can maybe only copy some SOSI->OSM > tag mapping from my source this would also be fine for me. Thank you. > Unfortunately Java has no nice way of switching the input encoding while > reading the file, so I put it on the TODO list, but it should be fixed. The simple hack here would be to just reopen the file once the charset is determined. >> You have probably seen the SOSI standard definitions over at >> http://www.kartverket.no/en/SOSI-Standard-in-English/SOSI/ > I read the Norwegian standard document about the SOSI format (using google > translate) These are the same files but translated manually. > The BNF is international ;). I think apart from the encoding issue, there are > two problems: > > 1. The parser does not handle data values correctly, strings ("a quoted > string") are not parsed correctly I have even seen SOSI documents containing strings that should be quoted but are not. > 3. to correctly understand files you seem to have to read the definition > files. For example "..VNR X Y Z" is really shorthand notation for "..VNR > ...VEGKATEGORI X ...VEGSTATUS Y ...VEGNUMMER Z" The FYBA library is also missing this feature. > The FYBA C library seems to be pretty complete, but also pretty ancient. > Maybe having an alternative is not that bad. If there were a nice modern alternative we could use I think even the officials would prefer it. The problem with making parsers though is that you have to handle a lot of almost standard documents too. FYBA does a very good job at this at the moment but it a pain to get to work. If I could get FYBA to work on windows I would have loved to publish a binary of sosi2osm for windows. Gnonthgol -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUsnX7AAoJEMipERg12T/AXjIP/009voScWZGW/JpK+a//jU74 yQEy9lzDyjjwadXCXzWyBEtlUWgui+3qmaKina6L1Az4faINlpVDAOdhi13s8gQ/ G5C4JXT6If0stJIuN6Y2y72EtFoAHFc3YCqylbo7iR1kBbHFGLolAQr2TYVwidfy Zlk49/EdmfEMnalqprwbYyOPRRQ4LntLR7o9X5HVnza1aoMp0H+32U5JCXOJlNsU QV6ikZ135FsQ9k8bilfo+dR0h8Rszgy9Xueyq6itdJ2jU12UbnqVt6zDvGJcsxs3 J39UTKVIlwxg3/ef/JQ7ZpbOm6X/P8wO6oUOqV+m+yNTDRgpZ6siju7Id7CNEgbJ rmifzPV1/d2CU7LRCRFwST5W5E3/EDz4hIy/3G7Kbr3DGqQQtFXnYwu2sleNePRk 0gVdcRHLoi3lsL8l5e86p/+qQyOFN05kv+BqoF5M4h/7gmaxBjd42Eky9rBk5kt2 x7nzcbBORYtEvB5JI934iG05rYeT8ob3L9TcCLjYRDC4YxAoSaxus4nU/BPNhpDX tHmn3/qZofxQ4cNraaJXFkKleIEp6wZYnzgkNtO3khNjGYywcoy9dkNS++soUgVV 1zca7tdt0i2t8Boyr7O0NM2ZgUwAZuqwrBVma108au2Pe3ElB3xawIQwtT7Z8/1Y j9EEeS9Y8/tOhZxjYEfJ =VlsS -----END PGP SIGNATURE----- _______________________________________________ kart mailing list [email protected] http://lists.nuug.no/mailman/listinfo/kart
