Access super-quality digital maps freely available from the Norwegian Mapping Authority.
SOSI (Norwegian acronym for “Coordinated Approach for Geospatial Information”) is the standard for exchanging geospatial data in Norwegian government institutions.
Sosicon extracts and converts geospatial information embedded in SOSI-formatted files to more commonly used formats, such as PostgreSQL/PostGIS or ESRI Shapefile, which can be imported directly into most GIS applications, such as QGIS or TileMill.
Sosicon is open-source software and is released under GNU General Public License, version 3. You may use this software for any purpose of your desire, as long as it is kept open source. Please read the license terms.
This is a beta version of the program. Bugs are expected!
The command-line interface
Download the command-line version (binary file) to a location where it can be run from the terminal window. A simple approach for testing is to put Sosicon in the same folder as the SOSI file. Then run
./sosicon -2shp sourcefile.sos
where sourcefile.sos is the name of the SOSI file you want to convert.
Likewise, to produce a PostgreSQL/PostGIS database import file, use -2psql instead:
./sosicon -2psql sourcefile.sos
More tips and tricks can be found in the «using Sosicon» section.
For permanent installation on Linux or OS X, copy sosicon to one of the locations pointed to by the
$PATH environment variable, typically the
On Linux and OS X, piping is supported for batch processing of multiple SOSI files in one operation. To process all SOSI files in current directory, run the following command:
ls *.sos | sosicon -2shp
This will churn through all *.sos files in the directory, extracting several sets of shapefiles depending on the geometries and object types found.
A list of the available, free map data sets can be found at the web site for the Norwegian Mapping Authority.
For the time being, PostgreSQL/PostGIS and Shapefile export are supported. Please let me know of any errors.
License and disclaimer
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The desktop versions of sosicon are built using the cross-platform development tool Qt, licensed under the LGPL open-source license. A copy of the source code kan be obtained here (OS X and Linux), and is also available from the vendor’s web site.
There are bugs, of course. After all, this
is merely a pre-release (not even beta) a beta release. If you encounter an error in the software, please create an issue on GitHub where you describe the problem.