Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
py_tools_ds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Scheffler
py_tools_ds
Commits
797f4d69
Commit
797f4d69
authored
3 years ago
by
Daniel Scheffler
Browse files
Options
Downloads
Patches
Plain Diff
Fixed incorrectly replaced whitespaces in WKT2EPSG(). Bumped version.
parent
a9623e08
Branches
Branches containing commit
Tags
v0.19.2
Tags containing commit
No related merge requests found
Pipeline
#29265
passed
3 years ago
Stage: test
Stage: deploy_pypi
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
HISTORY.rst
+6
-0
6 additions, 0 deletions
HISTORY.rst
py_tools_ds/geo/projection.py
+3
-1
3 additions, 1 deletion
py_tools_ds/geo/projection.py
py_tools_ds/version.py
+2
-2
2 additions, 2 deletions
py_tools_ds/version.py
py_tools_ds/web/network.py
+0
-1
0 additions, 1 deletion
py_tools_ds/web/network.py
with
11 additions
and
4 deletions
HISTORY.rst
+
6
−
0
View file @
797f4d69
...
...
@@ -2,6 +2,12 @@
History
=======
0.18.1 (2021-10-20)
-------------------
* Fixed incorrectly replaced whitespaces in WKT2EPSG().
0.18.0 (2021-09-27)
-------------------
...
...
This diff is collapsed.
Click to expand it.
py_tools_ds/geo/projection.py
+
3
−
1
View file @
797f4d69
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
py_tools_ds/version.py
+
2
−
2
View file @
797f4d69
...
...
@@ -22,5 +22,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__version__
=
'
0.18.
0
'
__versionalias__
=
'
2021
0927
_01
'
__version__
=
'
0.18.
1
'
__versionalias__
=
'
2021
1020
_01
'
This diff is collapsed.
Click to expand it.
py_tools_ds/web/network.py
+
0
−
1
View file @
797f4d69
...
...
@@ -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
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment