package
Behavior¶
packageMUST callpackage-polygons,package-points, andpackage-linesagainst the same input path and the samename_field/code_field(or the same auto-detection, when both are omitted), each reading and reprojecting the input independently (no shared connection or table across the three).packageMUST NOT expose--stepor a separate issues-path option; each sub-tool manages its own connection and derives its own issues path from its own output path.
Output path templating¶
output_path, if given, MUST contain a literal{x}placeholder;packageMUST raiseValueErrorif it is given without one.{x}MUST be substituted per sub-call with a fixed word:admin{n}forpackage-polygons(itself still{n}-templated per level),pointsforpackage-points,linesforpackage-lines. No other placeholder is exposed.- If
output_pathis omitted, every sub-tool MUST receiveoutput_path=Noneand fall back to its own default naming.
Configuration (api.package.package() / CLI)¶
packageMUST process exactly one input file per call.overwrite,threads,tmp_dir,debug,name_field, andcode_fieldMUST be passed through unchanged to all three sub-calls.aggregations(CLI: repeatable--aggregation column=function) MUST be passed through topackage-polygonsonly;package-pointsandpackage-lineshave no equivalent override.output_name_field/output_code_field(CLI:--output-name-field/--output-code-field) MUST be passed through topackage-polygonsonly;package-pointsandpackage-lineswrite generic per-role columns, not template-named ones.packageMUST NOT exposedepth_column:package-pointsandpackage-lineseach run with their own default (adm_lvl). An input that already has its ownadm_lvlcolumn (raisingValueErrorin either sub-tool) MUST be run throughpackage-points/package-linesdirectly with a non-colliding--depth-columninstead of throughpackage.
Examples¶
Example 1: defaults for all three outputs¶
Each sub-tool falls back to its own default naming
(_admin{n}/_points/_lines):
topo-tools package adm3.geojson
Example 2: explicit output template¶
{x} MUST appear in --output if given; it's substituted per sub-tool
(admin{n}, points, lines):
topo-tools package adm3.geojson --output "web/{x}.geojson"