Skip to main content

A library for handling and processing SOSI geospatial data.

Project description

Project Logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sosilogikk-2.0.2.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sosilogikk-2.0.2-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

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

Hashes for sosilogikk-2.0.2.tar.gz
Algorithm Hash digest
SHA256 f632c3f265e54a57575548e64d113a63e704a22b70cd7eb5f380551d35fc1344
MD5 2a3cea77fc3434f09b48fe13e907fabd
BLAKE2b-256 6309f3509152a7116f0ec71ea3dc928d8317050941c2e246648a496ce1ef0f4f

See more details on using hashes here.

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

Hashes for sosilogikk-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 47a6023d8865351b94dcc5d4b6c7e6618ce8b7184ee0bc3bf1f003dff629deb8
MD5 4c3026ed826946cd3301bcab1b148c32
BLAKE2b-256 8bd3aa548fc5741bc924d1b7fc125ca0459dcdc45ac9d24d5230612530dfb636

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page