You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
right now, the downstream tool needs to remember the assignment style, so it can call either addAreaAssignment or addLineAssignment as needed. When editing an assignment it would be great to just leave the style as-is.
The text was updated successfully, but these errors were encountered:
caver456
changed the title
addAsignment should be LineString-vs-Polygon-agnostic
addAssignment should be LineString-vs-Polygon-agnostic
Jan 27, 2021
Should probably just make a root function addAssignment where line-vs-polygon is an argument; hopefully the argument can be ignored when making a call to edit the assignment / if existingId is specified; will have to see if the sartopo API allows this.
tkdiff shows that the only differences are:
line assignment:
geometry->type = LineString
geometry->coordinates = points (a list of coord pairs)
area assignment:
geometry->type = Polygon
geometry->coordinates = [points] (a list of coord pairs, wrapped as a one-element list)
right now, the downstream tool needs to remember the assignment style, so it can call either addAreaAssignment or addLineAssignment as needed. When editing an assignment it would be great to just leave the style as-is.
The text was updated successfully, but these errors were encountered: