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)
window.setCentralWidget(viewer.qt_widget())
viewer.set_tool(ViewerTool.PAN)
viewer.add_layer(r"D:\data\world_4326.shp")
viewer.full_extent()

window.show()
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\Debug" --clean

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

GEOKERNEL_BIN
D:\projects\GeoKernel\outputs\Debug

Package Layout

src/
  geokernel/
    __init__.py
    geometry.py
    layer.py
    dll.py
    styles.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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

geokernel-0.1.1-py3-none-win_amd64.whl (45.4 MB view details)

Uploaded Python 3Windows x86-64

File details

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

File metadata

  • Download URL: geokernel-0.1.1-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-0.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dfede1a56ee1d312b996dd65cdb7267b89f66ec6f2a6714bf3b4160452707f84
MD5 28471dd86b5d6a18d47044c70f9f1559
BLAKE2b-256 6ec8e9fa83b8d996b93249ed8ab9adcd69dfb31d4afcfb5772c5ab37029e3154

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