Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EO Time Series Viewer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Jakimow
EO Time Series Viewer
Commits
ea2af558
Commit
ea2af558
authored
6 years ago
by
Benjamin Jakimow
Browse files
Options
Downloads
Patches
Plain Diff
improved SpatialPoint printing
parent
cd751584
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
timeseriesviewer/utils.py
+6
-2
6 additions, 2 deletions
timeseriesviewer/utils.py
with
6 additions
and
2 deletions
timeseriesviewer/utils.py
+
6
−
2
View file @
ea2af558
...
@@ -184,7 +184,12 @@ class SpatialPoint(QgsPointXY):
...
@@ -184,7 +184,12 @@ class SpatialPoint(QgsPointXY):
return
self
.
__repr__
()
return
self
.
__repr__
()
def
__repr__
(
self
):
def
__repr__
(
self
):
return
'
{} {} {}
'
.
format
(
self
.
x
(),
self
.
y
(),
self
.
crs
().
authid
())
if
self
.
crs
().
mapUnits
()
==
QgsUnitTypes
.
DistanceDegrees
:
return
'
{:.1f} {:.1f} {}
'
.
format
(
self
.
x
(),
self
.
y
(),
self
.
crs
().
authid
())
else
:
return
'
{:.5f} {:.5f} {:}
'
.
format
(
self
.
x
(),
self
.
y
(),
self
.
crs
().
authid
())
def
findParent
(
qObject
,
parentType
,
checkInstance
=
False
):
def
findParent
(
qObject
,
parentType
,
checkInstance
=
False
):
...
@@ -731,7 +736,6 @@ def loadUIFormClass(pathUi, from_imports=False, resourceSuffix=''):
...
@@ -731,7 +736,6 @@ def loadUIFormClass(pathUi, from_imports=False, resourceSuffix=''):
#load form class
#load form class
try
:
try
:
FORM_CLASS
,
_
=
uic
.
loadUiType
(
buffer
,
resource_suffix
=
RC_SUFFIX
)
FORM_CLASS
,
_
=
uic
.
loadUiType
(
buffer
,
resource_suffix
=
RC_SUFFIX
)
except
SyntaxError
as
ex
:
except
SyntaxError
as
ex
:
FORM_CLASS
,
_
=
uic
.
loadUiType
(
pathUi
,
resource_suffix
=
RC_SUFFIX
)
FORM_CLASS
,
_
=
uic
.
loadUiType
(
pathUi
,
resource_suffix
=
RC_SUFFIX
)
...
...
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