Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
py_tools_ds
Commits
d126b284
Commit
d126b284
authored
Aug 26, 2020
by
Daniel Scheffler
Browse files
Fixed isLocal().
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
9d0849d7
Pipeline
#11884
failed with stage
in 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
py_tools_ds/geo/projection.py
View file @
d126b284
...
...
@@ -128,7 +128,11 @@ def isLocal(prj):
srs
.
ImportFromEPSG
(
int
(
prj
.
split
(
':'
)[
1
]))
elif
prj
.
startswith
(
'+proj='
):
srs
.
ImportFromProj4
(
prj
)
elif
'GEOGCS'
in
prj
or
'PROJCS'
in
prj
or
'LOCAL_CS'
in
prj
:
elif
'GEOGCS'
in
prj
or
\
'GEOGCRS'
in
prj
or
\
'PROJCS'
in
prj
or
\
'PROJCS'
in
prj
or
\
'LOCAL_CS'
in
prj
:
srs
.
ImportFromWkt
(
prj
)
else
:
raise
RuntimeError
(
'Unknown input projection:
\n
%s'
%
prj
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment