I’m integrating Shapely into my code, and I have to deal with several different kinds of geometric objects. Most of my needs are satisfied with Lines, Polygons and LineStrings, but I need to use ellipses. Is there a way to create an ellipse in Shapely by a bounding box or by semi axis, without having to discretize the ellipse into lines?
Share
There isn’t any way to represent a polygon in Shapely without discretizing it.
At the base level Shapely deals with points. Everything from a LineString to a Polygon is just a list of points. A good example of this is what happens when you take a
Pointand buffer it out:As you can see, the circle is made up of 65 points that are spaced
0.0966units from each other.