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 is designed to include the GeoKernel evaluation 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_evaluation_binaries.py --source "D:\projects\GeoKernel\outputs\packages\Evaluation" --clean

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

GEOKERNEL_BIN
D:\projects\GeoKernel\outputs\packages\Evaluation

Package Layout

src/
  geokernel/
    __init__.py
    geometry.py
    layer.py
    dll.py
    viewer.py
    bin/
tools/
  sync_evaluation_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.3.tar.gz (58.3 MB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3Windows x86-64

File details

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

File metadata

  • Download URL: geokernel-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 47cb09f1a69abd7d793340c0bd3c2168f1e864594719cdf8bd9df1eb6645b813
MD5 9b37c5e96ef48750ca206074cb32a11f
BLAKE2b-256 9a00d4aa080c2a1810f9f1c1dc6e9bbb11bc66615deea58344b1af856f6abe00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geokernel-1.1.3-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.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dc9a8dfb8bd36c503fbfcc6f20a890f50cd6bad2890ab6e4460ff23187e096a1
MD5 3e28c79ce45a520d5aad2bccae44a1b5
BLAKE2b-256 0d249d42f7d5d569cf07781187127e525b9aca240cedd04be42dbdb39f72ac11

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