Skip to content

Commit

Permalink
docs: fixed E265 from image2target/ (OSGeo#4399)
Browse files Browse the repository at this point in the history
* removed e265

* update .flake8

* removed commented out parser code

* removed parser code
  • Loading branch information
arohanajit authored Sep 28, 2024
1 parent 7f05bb3 commit 4f689fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 113 deletions.
4 changes: 2 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ per-file-ignores =
gui/wxpython/gui_core/ghelp.py: E722
gui/wxpython/gui_core/gselect.py: E722
gui/wxpython/gui_core/widgets.py: E722
gui/wxpython/image2target/*: F841, E722, E265
gui/wxpython/image2target/g.gui.image2target.py: E501, E265, F841
gui/wxpython/image2target/*: F841, E722
gui/wxpython/image2target/g.gui.image2target.py: E501, F841
gui/wxpython/iscatt/*: F841, E722, F405, F403
gui/wxpython/lmgr/frame.py: F841, E722
# layertree still includes some formatting issues (it is ignored by Black)
Expand Down
111 changes: 0 additions & 111 deletions gui/wxpython/image2target/g.gui.image2target.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,71 +30,6 @@
# % keyword: GCP
# %end

##%option G_OPT_M_LOCATION
##% key: source_project
##% label: The name of the source project (has no projection)
##% description: The source project (location) has no CRS
###% section: source
##% required: yes
##%end

##%option G_OPT_M_MAPSET
##% key: source_mapset
##% label: The name of the source mapset (has no projection)
##% description: The name of the source mapset (has no projection)
###% section: source
##% required: yes
##%end

##%option G_OPT_I_GROUP
##% key: source_group
##% required: yes
##% section: source
##%end

##%option G_OPT_R_INPUT
##% key: source_image
##% required: yes
###% section: source
##%end

##%option G_OPT_R_INPUT
##% key: target_image
##% label: The name of the image that is already georeferenced used to find location of GCPs
##% description: The name of the image that is already georeferenced used to find the location of GCPs
###% section: target
##% required: no
##%end

##%option
##% key: camera
##% type: string
##% label: The name of the camera (generated in i.ortho.camera)
##% description: The name of the camera (generated in i.ortho.camera)
##% required: yes
###% section: parameters
##%end

##%option
##% key: order
##% type: string
##% label: The rectification order
##% description: The rectification order
##% required: yes
##% answer: 1
###% section: parameters
##%end

##%option
##% key: extension
##% type: string
##% label: The name of the output files extension
##% description: The name of the output files extension
##% required: yes
##% answer: _ii2t_out
##% section: target
##%end


"""
Module to run GCP management tool as stadalone application.
Expand Down Expand Up @@ -127,54 +62,8 @@ def main():
else:
os.environ["GRASS_RENDER_IMMEDIATE"] = "cairo"

# if options["source_location"]:
# src_loc = options["source_location"]
# else:
# gscript.fatal(_("No georeferenced source location provided"))

# if options["source_mapset"]:
# src_mpt = options["source_mapset"]
# else:
# gscript.fatal(_("No georeferenced source mapset provided"))

# if options["source_group"]:
# src_grp = options["source_group"]
# else:
# gscript.fatal(_("Please provide a source group name to process"))

# if options['source_image']:
# src_ras = options["source_image"]
# else:
# gscript.fatal(_("Please provide a source image map name to process"))

# if options["target_image"]:
# tgt_ras = options["target_image"]
# else:
# gscript.fatal(_("No georeferenced target map provided"))

# if options["camera"]:
# camera = options["camera"]
# else:
# gscript.fatal(_(
# "Please provide a camera name (generated by i.ortho.camera)"
# ))

# if options["order"]:
# order = options["order"]
# else:
# gscript.fatal(_("Please provive an order value"))

# if options["extension"]:
# extension = options["extension"]
# else:
# gscript.fatal(_("Please provide an output file extension"))

app = wx.App()

# wizard = GCPWizard(parent=None, giface=StandaloneGrassInterface(),
# srcloc=src_loc,srcmpt=src_mpt,srcgrp=src_grp,srcras=src_ras,
# tgtras=tgt_ras,camera=camera, order=order, extension=extension)

wizard = GCPWizard(parent=None, giface=StandaloneGrassInterface())
app.MainLoop()

Expand Down

0 comments on commit 4f689fe

Please sign in to comment.