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.0.7.tar.gz (45.2 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.0.7-py3-none-win_amd64.whl (45.4 MB view details)

Uploaded Python 3Windows x86-64

File details

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

File metadata

  • Download URL: geokernel-1.0.7.tar.gz
  • Upload date:
  • Size: 45.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for geokernel-1.0.7.tar.gz
Algorithm Hash digest
SHA256 f65db21f52548ab523dd5c7fc5332d9ac928f0f46af3b83756d63d1e8c636624
MD5 9ca2a699b350199c0f378c78ebb3911b
BLAKE2b-256 e418437b97898acfbbfc428949594ba9240514f408a9193e054ed4ec0572f4f5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for geokernel-1.0.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3d6f475a105c2513263241267c2f466c96ca8776fbb6fcaa49736a4485d6b6e3
MD5 fc7b5b24364160298905b16c69ddd881
BLAKE2b-256 3fff34d240c12e317435d2e19a95ac9ddd0404f5c7a159b03f4ce707c5710458

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