1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "geojson": {
9 "type": "FeatureCollection",
10 "features": [
11 {
12 "type": "Feature",
13 "properties": {
14 "producer_name": "Kofi Mensah",
15 "country": "Ghana",
16 "area": "2,5",
17 },
18 "geometry": {
19 "type": "Polygon",
20 "coordinates": [[
21 [
22 -1.620112,
23 6.680134,
24 ],
25 [
26 -1.610145,
27 6.690121,
28 ],
29 [
30 -1.610133,
31 6.680156,
32 ],
33 [
34 -1.620187,
35 6.690178,
36 ],
37 [
38 -1.620112,
39 6.680134,
40 ],
41 ]],
42 },
43 },
44 {
45 "type": "Feature",
46 "properties": {
47 "ProducerName": "Ama Owusu",
48 "ProducerCountry": "GH",
49 },
50 "geometry": {
51 "type": "Polygon",
52 "coordinates": [[
53 [
54 -1.530021,
55 6.700034,
56 210,
57 ],
58 [
59 -1.530045,
60 6.710012,
61 211,
62 ],
63 [
64 -1.520078,
65 6.710056,
66 212,
67 ],
68 [
69 -1.520011,
70 6.700089,
71 213,
72 ],
73 ]],
74 },
75 },
76 {
77 "type": "Feature",
78 "properties": {
79 "ProducerName": "Budi Santoso",
80 "ProducerCountry": "IDN",
81 "Area": "1.8 ha",
82 },
83 "geometry": {
84 "type": "Point",
85 "coordinates": [
86 -0.512345,
87 110.412345,
88 ],
89 },
90 },
91 ],
92 } }
93
94
95run = client.actor("translucent_wire/eudr-plot-file-fixer").call(run_input=run_input)
96
97
98print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
99for item in client.dataset(run.default_dataset_id).iterate_items():
100 print(item)
101
102