diff --git a/fastkml/geometry.py b/fastkml/geometry.py index 796eed14..e8aeba9a 100644 --- a/fastkml/geometry.py +++ b/fastkml/geometry.py @@ -19,6 +19,8 @@ Import the geometries from shapely if it is installed or otherwise from Pygeoif """ +import re + try: from shapely.geometry import Point, LineString, Polygon from shapely.geometry import MultiPoint, MultiLineString, MultiPolygon @@ -40,8 +42,6 @@ from pygeoif.geometry import as_shape as asShape from pygeoif.geometry import GeometryCollection - -import re import fastkml.config as config from .config import etree