If I use Polygon1.Points to draw a polygon with âlist of listâ, it works ⌠(Button1)
⌠but if I use Polygon1.Points with make a list (latitude longitude) clockwise, it doesnât work. I get the error: âInvalid type String. Expected list.â (Button2)
make a list = (37.3558730222643 -5.981843233239488) (37.35677017922074 -5.982375383246109) (37.35704137088585 -5.981568574643461) (37.35618003489012 -5.98103213349532)
This is an issue with the type coercion only going one level deep. The Points property expects either numbers or a list (in the case of a multipolygon). Easy fix would be to substitute your text values for numerical values, but for convenience I can also make the casts internally.
After actually testing your app I realize I totally misunderstood what you were asking. Sorry about that. My original comment above is wrong and after checking the code it indeed does the right thing for Button1. Yes, the code for Button2 is wrong because itâs expecting the points as actually pairs (2-element lists). Your code is creating a list with a single very long string. The make a list block wonât convert a list-like string representation into a listâit just makes a list with the string as its sole element. If you wanted to write the points out, youâd want to use a list to csv table and list from csv table block to convert to/from string representation.
list from csv table text 37.3558730222643,-5.981843233239488\n37.35677017922074,-5.982375383246109\n37.35704137088585,-5.981568574643461\n37.35618003489012,-5.98103213349532\n