Skip to content
Snippets Groups Projects
Commit 797f4d69 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed incorrectly replaced whitespaces in WKT2EPSG(). Bumped version.

parent a9623e08
Branches
Tags v0.19.2
No related merge requests found
Pipeline #29265 passed
......@@ -2,6 +2,12 @@
History
=======
0.18.1 (2021-10-20)
-------------------
* Fixed incorrectly replaced whitespaces in WKT2EPSG().
0.18.0 (2021-09-27)
-------------------
......
......@@ -156,7 +156,9 @@ def WKT2EPSG(wkt):
if not wkt:
return None
ccrs = CRS.from_wkt(wkt.replace('\n', '').replace('\r', '').replace(' ', ''))\
wkt = ''.join([line.strip().replace('\n', '').replace('\r', '')
for line in wkt.splitlines()])
ccrs = CRS.from_wkt(wkt)
if not ccrs.is_bound:
epsg = ccrs.to_epsg()
......
......@@ -22,5 +22,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = '0.18.0'
__versionalias__ = '20210927_01'
__version__ = '0.18.1'
__versionalias__ = '20211020_01'
......@@ -31,7 +31,6 @@ from urllib.request import urlopen
def get_geoinfo():
"""Return a dictionary containing country, city, longitude, latitude and IP of the executing host."""
url = 'http://ipinfo.io/json'
info = json.loads(urlopen(url).read())
ip = info['ip']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment