Ovitalmap Parcel CSV
Use scripts via JSON stdin/stdout; never reproduce processing manually. Reply with reply_zh in Chinese unless another language is requested.
Setup
Set OVITALMAP_WORKSPACE to the user's working directory; otherwise scripts use the current directory.
Parcel input:
{"vertices":[[114.13472,22.50422],[114.13564,22.50411],[114.135,22.503]],"provider_name":"张三","official_id":null,"altitude":[]}
Use WGS84 longitude, latitude order. For batches, keep one country per run and providers per parcel unless shared. The pipeline assigns stable parcel_ref values (P01, P02, ...).
Workflow
- Extract and display the raw coordinate text.
- Convert decimal, DMS, or UTM input with
scripts/coordinate_converter.py. Passformatandcoordinates; also pass decimalorder, or UTMzoneandhemisphere. - Display converted vertices and obtain explicit confirmation of coordinates and providers. Do not write files before confirmation.
- Obtain the ISO alpha-2 country code from explicit context; ask if uncertain.
- Run pipeline
--step 1withparcels,country_code, and optionaldate(YYMMDD). Retainrun_id; onneeds_input, ask only forrequired_input. - Resolve provider candidates: reuse exact matches; ask before every non-exact or ambiguous match.
- With the same
run_id, run:--step 2bto classify archive hits and new parcels.--step 2to propose codes for new parcels.- After the user approves codes, pass
confirmed_codes: trueto--step 3.
- Attach or link every generated file. Label vertex files 顶点表 and boundary files 边界表.
Use --step all only with explicit "confirmed": true and "auto_accept_codes": true.
Hard Rules
- Treat
errorandneeds_inputas blocking. Do not translatereply_zhor expose internal JSON unless asked. - Never edit archive CSVs manually or guess country, provider, altitude, official ID, UTM zone, or hemisphere.
- Reuse an archive hit's parcel code; never append it again.
- Resolve batch conflicts by
parcel_ref; never infer whether identical coordinates mean the same parcel. - Do not replace a non-empty cadastre code without confirmation.
- Preserve vertex order; scripts close polygons.
- Deliver both CSV types. Scripts own the CSV headers and defaults.
Targeted Archive Actions
Call scripts/archive_manager.py with action: scan, check_duplicate, extract_single, update_cadastre, backup, or correct.
References
- Read references/csv-contract.md only when checking or changing CSV compatibility.
- Read references/reply-contract.md when changing interaction gates or user-facing replies.
- Read references/interaction-and-edge-cases.md for delivery, mixed hits, provider ambiguity, official IDs, or corrections.
评论
加载中…