User Tools

Site Tools


samples:samples:jupyternotebookdkforpython

Table of Contents

JupyterNotebookDKForPython sample

Documentation | Samples | JupyterNotebookDKForPython

Summary

Jupyter Notebook for TatukGIS DK Python - Interactive analysis and mapping demonstrations using Python within Jupyter notebooks.

Description

This Jupyter notebook demonstrates practical GIS analysis and mapping workflows using TatukGIS Developer Kernel for Python. It showcases interactive data visualization, layer management, geospatial analysis operations, and classification techniques within the Jupyter environment for scientific geospatial computing.

This sample illustrates use of:

Name Description
TGIS_ViewerBMPClass responsible for map presentation on bitmap.
TGIS_ViewerBMP.OpenOpen project.
TGIS_ViewerBMP.AddAdd a layer to the Viewer.
TGIS_ViewerBMP.InvalidateWholeMapInvalidate whole map.
TGIS_ViewerBMP.GIS_BitmapUnderlying bitmap
TGIS_ViewerBMP.CSCoordinate System assigned to the viewer.
TGIS_ViewerBMP.FullExtentCalculate the screen origin, zoom, and viewport to place the whole map in the window.
TGIS_ViewerBMP.GetRetrieve the layer identified by a name.
TGIS_ExtentLike TRect, but based on doubles instead of integers.
TGIS_Bitmap.AsPngExport png as ready as array of bytes in PNG format.
TGIS_Layer.ParamsParameters (colors, fills, etc.) object.
TGIS_ClassificationFactory.CreateClassifierCreates an object that inherits from TGIS_ClassificationAbstract class based on the layer's type.
TGIS_ClassificationAbstract.TargetIndicates the data to be used for classification; empty by default.
TGIS_ClassificationAbstract.MethodClassification method; NaturalBreaks by default.
TGIS_ClassificationAbstract.ColorRampThe color ramp that is used to assign colors for class breaks; not assigned by default.
TGIS_ClassificationAbstract.MustCalculateStatisticsIf True, statistics from layer assigned to classification need to be calculated.
TGIS_ClassificationAbstract.ClassifyPerforms the classification.
TGIS_Layer.StatisticsLayer statistics engine
TGIS_LayerVectorAbstract base class for vector layers managing collections of geometric shapes (Point, LineString/Arc, Polygon) with spatial indexing, attribute tables, SQL-like queries, and coordinate transformations.
TGIS_LayerPixelEncapsulation of a common image layer - abstract class.
TGIS_LayerPixel.BuildBuilds an in-memory layer.
TGIS_LayerPixel.ParamsReturns parameters for pixel layer.
TGIS_LayerPixel.CuttingPolygonCutting polygon that defines an input image's valid area.
TGIS_StatisticsAbstract.CalculateCalculate requested statistics from the entire layer.
TGIS_Utils.GisColorRampListColor ramps list.
TGIS_ColorRampList.ByNameGets a color ramp by name.
TGIS_GradientMap.RealizeColorMapPrepares a colormap as requested.
TGIS_InterpolationKrigingImplementation of the ordinary Kriging interpolation method.
TGIS_ContourGeneratorImplementation of the contour (isohypse) generation algorithm for grid/DEM layers.
TGIS_ContourGenerator.ContourIntervalThe elevation interval between generated contours.
TGIS_ContourGenerator.SmoothenIf True then the generated contours will be smoothened.
TGIS_ContourGenerator.BusyEvent
TGIS_ContourGenerator.GenerateCreates vector contours from a raster grid layer.
TGIS_LayerVector.LoopCreates an enumerator (iterator/cursor) for traversing all shapes in the layer using Delphi for..in syntax or manual iteration.
TGIS_Shape.MakeEditablePromote shape to editable state (detach from file/database).
TGIS_Shape.IntersectionComputes intersection (overlapping area) of this shape and another.

Code

This sample is available on the following platforms (click to view the source code on GitHub):

2026/06/12 23:13

Page Tools