generative
generative copied to clipboard
wkio: allow trailing commas
LINESTRING(-93.579699278759 42.012212046647, -93.579699278759 42.012990414418, -93.578910704098 42.012990414418, -93.578910704098 42.012212046647, )
LINESTRING(-93.579619455495 42.012507272707, -93.652889371462 42.012507272707, )
LINESTRING(-93.652889371462 42.012315183723, -93.616254413478 42.012315183723, -93.579619455495 42.012315183723, )
I think re.sub(r',\s*)', ')') or equivalent will be sufficient, as long as it doesn't tank performance. Otherwise, filter through sed as necessary.