File size: 4,305 Bytes
b9e0ad7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
{
  "type": "FeatureCollection",
  "properties": {
    "type": "farm_design",
    "farm_id": "FARM_001",
    "generated_at": "2026-04-22T10:00:05Z",
    "design_summary": {
      "farm_area_ha": 0.24,
      "total_valves": 3,
      "total_drip_tape_m": 480.5,
      "total_main_line_m": 45.2,
      "total_emitters": 1202,
      "pump_hp": 5.0,
      "pump_flow_lph": 500,
      "manifold_strategy": "distributed"
    },
    "bom": {
      "main_line_16mm_m": 45.2,
      "drip_tape_16mm_m": 480.5,
      "inline_emitters": 1202,
      "total_pipe_m": 525.7,
      "valves_count": 3,
      "cost_main": 22.60,
      "cost_drip_tape": 72.08,
      "cost_emitters": 96.16,
      "cost_valves": 45.00,
      "total_cost_usd": 235.84
    }
  },
  "features": [
    {
      "type": "Feature",
      "properties": {
        "type": "farm_boundary",
        "area_ha": 0.24
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [77.5946, 12.9716],
            [77.5960, 12.9716],
            [77.5960, 12.9730],
            [77.5946, 12.9730],
            [77.5946, 12.9716]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "valve",
        "id": "valve_000",
        "strategy": "distributed",
        "reason": "crop_type",
        "crop": "tomato",
        "flow_capacity_lph": 500,
        "estimated_demand_lph": 480
      },
      "geometry": {
        "type": "Point",
        "coordinates": [77.5948, 12.9721]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "valve",
        "id": "valve_001",
        "strategy": "distributed",
        "reason": "crop_type",
        "crop": "lettuce",
        "flow_capacity_lph": 500,
        "estimated_demand_lph": 200
      },
      "geometry": {
        "type": "Point",
        "coordinates": [77.5956, 12.9721]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "valve",
        "id": "valve_002",
        "strategy": "distributed",
        "reason": "capacity_split",
        "crop": "tomato",
        "flow_capacity_lph": 500,
        "estimated_demand_lph": 480
      },
      "geometry": {
        "type": "Point",
        "coordinates": [77.5951, 12.9724]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "valve_zone",
        "valve_id": "valve_000",
        "area_m2": 600.0,
        "area_ha": 0.06,
        "crop": "tomato"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [77.5948, 12.9718],
            [77.5951, 12.9718],
            [77.5951, 12.9724],
            [77.5948, 12.9724],
            [77.5948, 12.9718]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "valve_zone",
        "valve_id": "valve_001",
        "area_m2": 400.0,
        "area_ha": 0.04,
        "crop": "lettuce"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [77.5954, 12.9718],
            [77.5958, 12.9718],
            [77.5958, 12.9724],
            [77.5954, 12.9724],
            [77.5954, 12.9718]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "main_line",
        "length_m": 45.2,
        "pipe_diameter_mm": 16
      },
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [77.5946, 12.9716],
          [77.5948, 12.9721],
          [77.5956, 12.9721]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "lateral",
        "index": 0,
        "length_m": 30.0,
        "valve_id": "valve_000",
        "spacing_m": 0.5
      },
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [77.5948, 12.9719],
          [77.5951, 12.9719]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "type": "lateral",
        "index": 1,
        "length_m": 30.0,
        "valve_id": "valve_000",
        "spacing_m": 0.5
      },
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [77.5948, 12.9720],
          [77.5951, 12.9720]
        ]
      }
    }
  ]
}