Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions QuickWKT.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def save_from_text(self, text, layerTitle=None):
typeMap = {0: "Point", 1: "LineString", 2: "Polygon"}
newFeatures = {}
errors = []
text = re.sub('\n *(?![PLMC])', ' ', text)
# Handle multiple lines, each with its own geometry.
for i, line in enumerate(text.splitlines()):
line = line.strip()
Expand Down