Skip to main content

cad2geo

cad2geo is a small Python SDK for inspecting Netcad NCZ/NCA drawings and converting supported geometry into GeoJSON without QGIS.

The first release focuses on the high-value headless core extracted from 02CadGis:

  • pure-Python NCZ/NCA block scanning and geometry decoding
  • cheap layer catalog inspection before full decode
  • selective layer decoding
  • stable dataclasses for coordinates, entities, attribute tables, and parse results
  • GeoJSON FeatureCollection export
  • CLI commands for inspection and conversion

Installation

pip install cad2geo

Python API

from cad2geo import inspect_source, parse_netcad, write_geojson

layers = inspect_source("imar_plani.ncz")
for layer in layers:
    print(layer.layer_code, layer.layer_name, layer.record_count)

result = parse_netcad("imar_plani.ncz")
write_geojson(result.entities, "imar_plani.geojson")

CLI

cad2geo inspect imar_plani.ncz
cad2geo inspect imar_plani.ncz --json
cad2geo convert imar_plani.ncz imar_plani.geojson
cad2geo convert imar_plani.ncz roads.geojson --layers 1,3,7

Scope

cad2geo 0.1.0 intentionally does not wrap QGIS, GDAL/OGR, DWG, DXF, FileGDB, or GeoPackage workflows. Those remain in the 02CadGis QGIS plugin. The SDK starts with a dependency-free Netcad reader so it can run in scripts, notebooks, CI, and server-side processing.

License

GPL-2.0-or-later. The NCZ decoding lineage is documented in THIRD_PARTY_NOTICES.md.

Download files

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

Source Distribution

cad2geo-0.1.0.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

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

cad2geo-0.1.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file cad2geo-0.1.0.tar.gz.

File metadata

  • Download URL: cad2geo-0.1.0.tar.gz
  • Upload date:
  • Size: 33.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cad2geo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e19d93afce476aa9161e0c434b0a9e819b2e2cc7f8813fd5a4cb79b5aba3dae
MD5 2091d850edf666953e750e5e795b4b68
BLAKE2b-256 2766fa21fa60a86b03c7f0278ee734e3e48093af8620869eae6713653cc7f191

See more details on using hashes here.

Provenance

The following attestation bundles were made for cad2geo-0.1.0.tar.gz:

Publisher: publish.yml on YusufEminoglu/cad2geo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cad2geo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cad2geo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cad2geo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e62e4a52192901171f0dfab76d0de723bd63cd9d92c1ddabd823d940fca6ef5
MD5 0727a41d5e6767bf3dfcf893dbfc3dec
BLAKE2b-256 5a55009322dc0c5ccb413e348c96b092247590baf87f8ae6677eebda8c1f942d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cad2geo-0.1.0-py3-none-any.whl:

Publisher: publish.yml on YusufEminoglu/cad2geo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page