draw_plot
Use this when a plot's shape is given as measurements rather than as one area: side lengths with the angles at the corners, or with diagonals, or both, as on a hand-drawn sketch, a measurement sheet, a survey or a photo of any of them; or the corners themselves. Read the figures as written (feet and inches such as 40'6", the area as on the 7/12 in guntha, acre or H.R.); a side left unmeasured may be null where the rest fix it. Works out the exact corners, fitting every figure by least squares when more are given than needed, reports how far each sits from the plot (closing side, angle sum, spare diagonals, stated area), refuses a misfit no tape makes, and returns the polygon and sides to pass to feasibility, the statement of area by the triangulation method (UDCPR 2.2.3(iii): lettered triangles, each by Heron from its sides as printed, the polygon rebuilt from the same lengths), a link that opens the plot drawn in Citiwise, and, when town and use are given, the feasibility with its report. Do not use for a plot described only by its area and road width; call feasibility directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| use | No | ||
| town | No | with use: also run the feasibility | |
| unit | No | unit of every bare number among the lengths and road widths; default m | |
| zone | No | ||
| sides | Yes | every side in order round the plot, either direction; at least one is a road | |
| angles | No | interior angle in degrees at each corner; corner i is where side i begins; null where not measured | |
| polygon | No | the corners [x, y] instead of lengths and angles, one per side | |
| area_unit | No | unit of stated_area when it is a bare number; default m2 (sq ft with unit ft); hr is hectare-are as on a 7/12 | |
| diagonals | No | corner-to-corner distances; a plot of n sides needs n - 3, e.g. from corner 1 to each corner it does not touch | |
| stated_area | No | the area on the 7/12, property card or measurement sheet, to check against, as written: 5 guntha, 0.12.50 H.R., 5400 sq ft | |
| right_angles | No | true when every corner of a four-sided plot is square |