- changed the shapely imports a bit according to the specifications of Shapely 2.0

- changed the requirements.txt file to reflect the need for at least Shapely in version 2.0
This commit is contained in:
Marius Stanciu
2023-04-15 21:03:30 +03:00
parent 6f93734d3f
commit ccc71eabc2
64 changed files with 74 additions and 65 deletions

View File

@@ -31,9 +31,9 @@ from io import StringIO
import ezdxf
# See: http://toblerity.org/shapely/manual.html
from shapely.geometry import Polygon, Point, LinearRing, MultiPoint, MultiLineString, MultiPolygon, LineString
from shapely import Polygon, Point, LinearRing, MultiPoint, MultiLineString, MultiPolygon, LineString
from shapely.geometry import box as shply_box
from shapely import box as shply_box
from shapely.ops import unary_union, substring, linemerge
import shapely.affinity as affinity
from shapely.affinity import scale, translate