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
54bcef87
Commit
54bcef87
authored
5 years ago
by
Benjamin Jakimow
Browse files
Options
Downloads
Patches
Plain Diff
pulled qps updates
Signed-off-by:
Benjamin Jakimow
<
benjamin.jakimow@geo.hu-berlin.de
>
parent
0a0c93a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eotimeseriesviewer/externals/qps/maptools.py
+13
-0
13 additions, 0 deletions
eotimeseriesviewer/externals/qps/maptools.py
with
13 additions
and
0 deletions
eotimeseriesviewer/externals/qps/maptools.py
+
13
−
0
View file @
54bcef87
...
...
@@ -88,6 +88,9 @@ class MapTools(enum.Enum):
MoveToCenter
=
'
MOVE_CENTER
'
AddFeature
=
'
ADD_FEATURE
'
SelectFeature
=
'
SELECT_FEATURE
'
SelectFeatureByPolygon
=
'
SELECT_FEATURE_POLYGON
'
SelectFeatureByFreehand
=
'
SELECT_FEATURE_FREEHAND
'
SelectFeatureByRadius
=
'
SELECT_FEATURE_RADIUS
'
@staticmethod
def
toMapToolEnum
(
arg
):
...
...
@@ -142,6 +145,16 @@ class MapTools(enum.Enum):
mapTool
=
QgsMapToolAddFeature
(
canvas
,
*
args
,
**
kwds
)
elif
mapToolEnum
==
MapTools
.
SelectFeature
:
mapTool
=
QgsMapToolSelect
(
canvas
)
mapTool
.
setSelectionMode
(
QgsMapToolSelectionHandler
.
SelectionMode
.
SelectSimple
)
elif
mapToolEnum
==
MapTools
.
SelectFeatureByFreehand
:
mapTool
=
QgsMapToolSelect
(
canvas
)
mapTool
.
setSelectionMode
(
QgsMapToolSelectionHandler
.
SelectionMode
.
SelectFreehand
)
elif
mapToolEnum
==
MapTools
.
SelectFeatureByPolygon
:
mapTool
=
QgsMapToolSelect
(
canvas
)
mapTool
.
setSelectionMode
(
QgsMapToolSelectionHandler
.
SelectionMode
.
SelectPolygon
)
elif
mapToolEnum
==
MapTools
.
SelectFeatureByRadius
:
mapTool
=
QgsMapToolSelect
(
canvas
)
mapTool
.
setSelectionMode
(
QgsMapToolSelectionHandler
.
SelectionMode
.
SelectRadius
)
else
:
raise
NotImplementedError
(
'
Unknown MapTool
"
{}
"'
.
format
(
mapToolEnum
))
...
...
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