Skip to main content

Python bindings and samples for the GeoKernel GIS SDK.

Project description

GeoKernel Python

Official Python package for the GeoKernel GIS SDK.

The package name is geokernel:

pip install geokernel

Usage

import sys

from PySide6.QtWidgets import QApplication, QMainWindow

from geokernel import Viewer, ViewerTool

app = QApplication(sys.argv)

window = QMainWindow()
window.setWindowTitle("HelloMap")
window.resize(1200, 800)

viewer = Viewer(width=1200, height=800)
viewer.set_tool(ViewerTool.PAN)
viewer.add_layer(r"D:\data\world_4326.shp")

window.setCentralWidget(viewer.qt_widget())
window.closeEvent = lambda event: (viewer.close(), event.accept())

window.show()
app.processEvents()
viewer.show()
viewer.resize(window.centralWidget().width(), window.centralWidget().height())
viewer.full_extent()
viewer.refresh_layers()
app.exec()

Development

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .

Runtime Binaries

The PyPI package includes the universal, license-neutral GeoKernel runtime under:

src/geokernel/bin/

The runtime should include GeoKernel.Viewer.dll, GeoKernel DLLs, Qt DLLs, Skia/GDAL/PROJ dependencies, Qt plugins, GDAL plugins, gdal-data, and proj-data.

For development builds, copy the current local SDK runtime into the package with:

python tools\sync_runtime_binaries.py --source "D:\projects\GeoKernel\outputs\build\Release" --clean

If the package does not contain binaries yet, the wrapper also checks:

GEOKERNEL_BIN
D:\projects\GeoKernel\outputs\build\Release

Package Layout

src/
  geokernel/
    __init__.py
    geometry.py
    layer.py
    dll.py
    viewer.py
    bin/
tools/
  sync_runtime_binaries.py

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

geokernel-1.1.13.tar.gz (58.3 MB view details)

Uploaded Source

Built Distributions

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

geokernel-1.1.13-py3-none-win_amd64.whl (58.6 MB view details)

Uploaded Python 3Windows x86-64

geokernel-1.1.13-py3-none-manylinux_2_35_x86_64.manylinux_2_36_x86_64.whl (74.1 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64manylinux: glibc 2.36+ x86-64

File details

Details for the file geokernel-1.1.13.tar.gz.

File metadata

  • Download URL: geokernel-1.1.13.tar.gz
  • Upload date:
  • Size: 58.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for geokernel-1.1.13.tar.gz
Algorithm Hash digest
SHA256 d186400be4726c87b8d044095ac79fba939376b1ab16b7114d632addf6be6160
MD5 64f54843f5a9d0841bb36e946d907f23
BLAKE2b-256 91007b91d4f7c9716269be19cc86cf3d66e36806b3814d04e5a61ea5e44d4e4e

See more details on using hashes here.

File details

Details for the file geokernel-1.1.13-py3-none-win_amd64.whl.

File metadata

  • Download URL: geokernel-1.1.13-py3-none-win_amd64.whl
  • Upload date:
  • Size: 58.6 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for geokernel-1.1.13-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b4b587a86281a393c823b89a77962984c3921986083af9597a7c18576de3aef8
MD5 1df9b8d23f24f682defb329ba24755d6
BLAKE2b-256 833f7c86971638e6e32151a954244da50e52f42048fadfb1f867add6f93ec211

See more details on using hashes here.

File details

Details for the file geokernel-1.1.13-py3-none-manylinux_2_35_x86_64.manylinux_2_36_x86_64.whl.

File metadata

File hashes

Hashes for geokernel-1.1.13-py3-none-manylinux_2_35_x86_64.manylinux_2_36_x86_64.whl
Algorithm Hash digest
SHA256 d3758248eaaa46e1052673f81c6c8c0b2a7b0a4d556562ffa850d176005ae195
MD5 c4044c4bc9e43405fc28b7c4d0c5e3bc
BLAKE2b-256 b081971970ac01074b15185bf8aed2562cd6f65fe85eac04493304281eef2804

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