# -*- coding: utf-8 -*-
"""Default parameters for TopoFix algorithms.

All area parameters are in hectares (ha). Multiply by 10000
when comparing with geometry.area() which returns m2.

Author: Loc Vu Trung tong hop vi dam me cung ban!
"""

DEFAULT_PARAMS = {
    # Gaps — lower = detect smaller gaps (0.001 ha = 10 m2)
    "gap_tolerance": 0.001,       # ha
    # Sliver
    "sliver_max_area": 1.0,       # ha - Larger cannot be sliver
    "sliver_ratio": 20.0,         # P/sqrt(A) threshold
    # Redundant vertices
    "redundant_max_verts": 500,   # Max vertex count
    "simplify_tolerance": 0.0,    # map units (0 = auto)
    # Must Not Overlap — lower = detect smaller intersections
    "mno_min_area": 0.001,        # m2
    # Missing Nodes — 0.001 for VN-2000 (meters), 1e-8 for WGS84
    "missing_node_tol": 0.001,    # map units
    # Tiny Polygon
    "tiny_min_area": 0.0,         # ha - user provides value
}
