femic.fmg.patchworks

Patchworks export helpers (ForestModel XML + fragments shapefile).

Functions

build_forestmodel_xml_tree(*, au_table, ...)

Build a Patchworks ForestModel XML tree from FEMIC bundle tables.

build_forestmodel_xml_tree_from_context(*, ...)

Build a Patchworks ForestModel XML tree from shared FMG context.

build_fragments_geodataframe(*, ...[, ...])

Build Patchworks fragments GeoDataFrame from FEMIC checkpoint output.

build_patchworks_forestmodel_definition(*, ...)

Build Patchworks ForestModel core definition from shared context.

export_patchworks_package(*, bundle_dir, ...)

Export Patchworks package artifacts from FEMIC outputs.

forestmodel_definition_to_xml_tree(*, definition)

Serialize ForestModel core definition to XML tree.

validate_forestmodel_xml_tree(*, root[, ...])

Validate required ForestModel structure and curve references.

validate_fragments_geodataframe(*, fragments_gdf)

Validate required Patchworks fragments fields and value domains.

write_forestmodel_xml(*, root, path)

Write ForestModel XML tree with Patchworks XSD model hint.

write_fragments_shapefile(*, fragments_gdf, path)

Write fragments shapefile (directory + sidecar files).

Classes

PatchworksExportResult(forestmodel_xml_path, ...)

Paths and counts from a Patchworks package export.