From 17476baced4ebb26a267c260005e1166fc75c4bb Mon Sep 17 00:00:00 2001 From: awarde96 Date: Wed, 18 Sep 2024 21:30:59 +0000 Subject: [PATCH] Change wkt to polygon --- covjsonkit/api.py | 4 ++-- covjsonkit/encoder/encoder.py | 2 +- covjsonkit/version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/covjsonkit/api.py b/covjsonkit/api.py index db9df50..2f9026c 100644 --- a/covjsonkit/api.py +++ b/covjsonkit/api.py @@ -26,7 +26,7 @@ "shapefile": covjsonkit.encoder.Shapefile.Shapefile, "frame": covjsonkit.encoder.Frame.Frame, "path": covjsonkit.encoder.Path.Path, - "wkt": covjsonkit.encoder.Wkt.Wkt, + "polygon": covjsonkit.encoder.Wkt.Wkt, } features_decoder = { "pointseries": covjsonkit.decoder.TimeSeries.TimeSeries, @@ -35,7 +35,7 @@ "shapefile": covjsonkit.decoder.Shapefile.Shapefile, "frame": covjsonkit.decoder.Frame.Frame, "path": covjsonkit.decoder.Path.Path, - "wkt": covjsonkit.decoder.Wkt.Wkt, + "polygon": covjsonkit.decoder.Wkt.Wkt, } diff --git a/covjsonkit/encoder/encoder.py b/covjsonkit/encoder/encoder.py index 05bf386..507e3e2 100644 --- a/covjsonkit/encoder/encoder.py +++ b/covjsonkit/encoder/encoder.py @@ -26,7 +26,7 @@ def __init__(self, type, domaintype): self.domaintype = DomainType.point_series elif domaintype == "multipoint": self.domaintype = DomainType.multi_point - elif domaintype == "wkt": + elif domaintype == "polygon": self.domaintype = DomainType.multi_point elif domaintype == "boundingbox": self.domaintype = DomainType.multi_point diff --git a/covjsonkit/version.py b/covjsonkit/version.py index c35625a..479dad0 100644 --- a/covjsonkit/version.py +++ b/covjsonkit/version.py @@ -1 +1 @@ -__version__ = "0.0.21" +__version__ = "0.0.22"