loki2.config.templates

GeoJSON templates for Loki2.

This module provides template functions for creating GeoJSON objects for points and segmentation polygons.

Module Contents

loki2.config.templates.get_template_point() Dict[str, Any]

Return a template for a Point GeoJSON object.

Returns:

Template dictionary for a Point GeoJSON feature

with structure: - type: “Feature” - id: “TODO” (placeholder) - geometry: MultiPoint with empty coordinates - properties: objectType and classification placeholders

Return type:

Dict[str, Any]

loki2.config.templates.get_template_segmentation() Dict[str, Any]

Return a template for a MultiPolygon GeoJSON object.

Returns:

Template dictionary for a MultiPolygon GeoJSON feature

with structure: - type: “Feature” - id: “TODO” (placeholder) - geometry: MultiPolygon with empty coordinates - properties: objectType and classification placeholders

Return type:

Dict[str, Any]