I am trying to learn Shapely and I ultimately would like to take a series of x,y coordinates and create an offset or parallel line. I previously posted a question on this process last night and realized it may have been confusing, so let me restate it and try to attack it in smaller chunks. I am running Windows 7 64 bit with Anaconda. I have installed Shapely and Shapefile modules. I am trying to create a LineString; however, whenever I do so, I am getting an error. Please find code:
from shapely.geometry import LineString
x1
Out[56]: 1633042.5200605541
y1
Out[57]: 700342.4999843091
x2
Out[58]: 1632943.7118592262
y2
Out[59]: 700441.360350892
LineString([(x1,y1),(x2,y2)])
Out[60]:
Received invalid SVG data.
What does this mean 'invalid SVG data'? Am I doing something wrong. I will probably have other questions after this is resolved, but let us do one step at a time. I tried converting x1,y1,x2,y2 into floats and it doesn't seem to help.