A library for handling and processing SOSI geospatial data.
Project description
sosilogikk is a small utility to read Norwegian SOSI vector files (FKB 5.x) into GeoPandas, and write them back out. It handles the SOSI header, encoding, ENHET scaling, KOORDSYS→EPSG mapping, and assembles geometries (points, curves, polygons).
Install
pip install sosilogikk
Minimal example: SOSI → GeoJSON
from sosilogikk import read_sosi
# Path to a single .sos file
sosi_path = "sample/roads.sos"
# Parse to GeoDataFrame (includes CRS when KOORDSYS is present)
gdf, metadata = read_sosi(sosi_path, return_metadata=True)
# Write to GeoJSON
gdf.to_file("sample/roads.geojson", driver="GeoJSON")
You’ll get a CRS-aware GeoDataFrame: KOORDSYS 22/23/25 map to EPSG 25832/25833/25835, ENHET scales coordinates, and mixed 2D/3D geometries are flattened to 2D.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sosilogikk-2.0.2.tar.gz.
File metadata
- Download URL: sosilogikk-2.0.2.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f632c3f265e54a57575548e64d113a63e704a22b70cd7eb5f380551d35fc1344
|
|
| MD5 |
2a3cea77fc3434f09b48fe13e907fabd
|
|
| BLAKE2b-256 |
6309f3509152a7116f0ec71ea3dc928d8317050941c2e246648a496ce1ef0f4f
|
File details
Details for the file sosilogikk-2.0.2-py3-none-any.whl.
File metadata
- Download URL: sosilogikk-2.0.2-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47a6023d8865351b94dcc5d4b6c7e6618ce8b7184ee0bc3bf1f003dff629deb8
|
|
| MD5 |
4c3026ed826946cd3301bcab1b148c32
|
|
| BLAKE2b-256 |
8bd3aa548fc5741bc924d1b7fc125ca0459dcdc45ac9d24d5230612530dfb636
|