Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a SOSI file error #7

Open
Knall24 opened this issue Mar 15, 2017 · 5 comments
Open

Not a SOSI file error #7

Knall24 opened this issue Mar 15, 2017 · 5 comments

Comments

@Knall24
Copy link

Knall24 commented Mar 15, 2017

Hi,
I am getting an error Not a sosi file:
Is there anything wrong with the comand i am running?
The SOSI file i am using can be downloaded here: http://data.kartverket.no/download/content/n500-kartdata-utm-33-hele-landet

sosi2osm NO_N500_Arealdekke.sos /projeckt/sosi2osm/lua/arealdekke.lua 
Not a SOSI file: NO_N500_Arealdekke.sos

All help appreciated!

@tibnor
Copy link
Contributor

tibnor commented Apr 2, 2017

I get this error aswell. The sosi file is UTF-8 and this is a problem for FYBA kartverket/fyba#9. Currently UTF-8 is not supported by FYBA. A workaround is to convert the file to ISO-8859-10.

@tibnor
Copy link
Contributor

tibnor commented Apr 3, 2017

I did use "iconv" in Ubuntu 16.04. I also changed the format tag inside the sosi file.

@Knall24
Copy link
Author

Knall24 commented Apr 6, 2017

Thank you.
I installed iconv and it ran like a dream! I renamed the output from inconv to areal.sos
capture

I think i am getting ther but still no "cigar"(hehe)
Do you have a data set that i can download that you know work?
Any suggestions?

@Gnonthgol
Copy link
Owner

Thanks to @tibnor for debuging this far. It might be best to add some checks for UTF-8 on windows and allow the user to convert to another character set. Iconv is already used in the application to convert the output to UTF-8 according to the osm standard. For the second error message people have reported it before. I do not have access to a Windows machine to test and debug the problem. I suggest you try it on a Linux machine. You could also try it on an OS X machine or the new Linux subsystem for Windows although these are also untested.

@Knall24 Knall24 closed this as completed May 9, 2017
@Knall24 Knall24 reopened this May 9, 2017
@Knall24
Copy link
Author

Knall24 commented May 9, 2017

Sorry about closing and re-opening
I missed clicked..

I have now installed Ubuntu 16.04 LTS using VB.
I will give an update if i get it working!

Thanks for all the help so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants