GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
manager.GCP Class Reference

Manages ground control points for georectifying. More...

Inheritance diagram for manager.GCP:
Collaboration diagram for manager.GCP:

Public Member Functions

def __init__
 
def __del__
 Disable GCP manager mode. More...
 
def CreateGCPList
 Create GCP List Control. More...
 
def GetListCtrl
 
def GetMapCoordList
 
def GetSortImages
 
def GetFwdError
 
def GetBkwError
 
def InitMapDisplay
 
def SetTarget
 
def AddGCP
 
def DeleteGCP
 
def ClearGCP
 
def DrawGCP
 
def SetGCPData
 
def SaveGCPs
 
def ReadGCPs
 
def ReloadGCPs
 Reload data from file. More...
 
def OnFocus
 
def OnRMS
 
def CheckGCPcount
 
def OnGeorect
 
def OnGeorectDone
 Print final message. More...
 
def OnSettings
 GCP Manager settings. More...
 
def UpdateColours
 update colours More...
 
def OnQuit
 Quit georectifier. More...
 
def OnGROrder
 
def RMSError
 
def GetNewExtent
 
def OnHelp
 Show GCP Manager manual page. More...
 
def OnUpdateActive
 
def UpdateActive
 
def AdjustMap
 Adjust map window to new extents. More...
 
def OnZoomToSource
 Set target map window to match extents of source map window. More...
 
def OnZoomToTarget
 Set source map window to match extents of target map window. More...
 
def OnZoomMenuGCP
 Popup Zoom menu. More...
 
def OnDispResize
 GCP Map Display resized, adjust Map Windows. More...
 

Data Fields

 grwiz
 
 show_target
 
 parent
 
 grassdatabase
 
 currentlocation
 
 currentmapset
 
 newlocation
 
 newmapset
 
 xylocation
 
 xymapset
 
 xygroup
 
 src_maps
 
 extension
 
 outname
 
 VectGRList
 
 file
 
 gr_order
 
 gr_method
 
 clip_to_region
 
 GCPcount
 
 fwd_rmserror
 
 bkw_rmserror
 
 mapcoordlist
 
 highest_only
 
 show_unused
 
 highest_key
 
 rmsthresh
 
 rmsmean
 
 rmssd
 
 itemDataMap
 
 il
 
 sm_dn
 
 sm_up
 
 mapwin
 
 MapWindow
 
 Map
 

Detailed Description

Manages ground control points for georectifying.

Calculates RMS statics. Calls i.rectify or v.transform to georectify map.

Definition at line 713 of file gcp/manager.py.

Constructor & Destructor Documentation

def manager.GCP.__init__ (   self,
  parent,
  grwiz = None,
  id = wx.ID_ANY,
  title = _("Manage Ground Control Points"),
  size = (700, 300,
  toolbars = ["gcpdisp"],
  Map = None,
  lmgr = None 
)

Definition at line 720 of file gcp/manager.py.

def manager.GCP.__del__ (   self)

Disable GCP manager mode.

Definition at line 870 of file gcp/manager.py.

Member Function Documentation

def manager.GCP.AddGCP (   self,
  event 
)
Appends an item to GCP list

Definition at line 925 of file gcp/manager.py.

References mapdisp.MapFrameBase.StatusbarUpdate().

Referenced by manager.GCP.OnGROrder(), and manager.GCP.ReadGCPs().

def manager.GCP.AdjustMap (   self,
  newreg 
)

Adjust map window to new extents.

Definition at line 1784 of file gcp/manager.py.

References mapdisp.MapFrameBase.StatusbarUpdate().

Referenced by manager.GCP.OnZoomToSource(), and manager.GCP.OnZoomToTarget().

def manager.GCP.CheckGCPcount (   self,
  msg = False 
)
Checks to make sure that the minimum number of GCPs have been defined and
are active for the selected transformation order

Definition at line 1294 of file gcp/manager.py.

References manager.GCP.GCPcount, and manager.GCP.gr_order.

Referenced by manager.GCP.GetNewExtent(), manager.GCP.OnGeorect(), manager.GCP.ReadGCPs(), and manager.GCP.RMSError().

def manager.GCP.ClearGCP (   self,
  event 
)
Clears all values in selected item of GCP list and unchecks it

Definition at line 985 of file gcp/manager.py.

References manager.GCP.mapcoordlist, and tools.range.

def manager.GCP.CreateGCPList (   self)

Create GCP List Control.

Definition at line 874 of file gcp/manager.py.

def manager.GCP.DeleteGCP (   self,
  event 
)
def manager.GCP.DrawGCP (   self,
  coordtype 
)
def manager.GCP.GetBkwError (   self)

Definition at line 893 of file gcp/manager.py.

References manager.GCP.bkw_rmserror.

def manager.GCP.GetFwdError (   self)

Definition at line 890 of file gcp/manager.py.

References manager.GCP.fwd_rmserror.

def manager.GCP.GetMapCoordList (   self)

Definition at line 883 of file gcp/manager.py.

References manager.GCP.mapcoordlist.

def manager.GCP.GetSortImages (   self)
def manager.GCP.InitMapDisplay (   self)
def manager.GCP.OnDispResize (   self,
  event 
)
def manager.GCP.OnFocus (   self,
  event 
)

Definition at line 1278 of file gcp/manager.py.

def manager.GCP.OnGeorectDone (   self,
  kargs 
)

Print final message.

Definition at line 1459 of file gcp/manager.py.

References manager.GCP.outname, and manager.GCP.VectGRList.

def manager.GCP.OnGROrder (   self,
  event 
)
sets transformation order for georectifying

Definition at line 1546 of file gcp/manager.py.

References manager.GCP.AddGCP(), manager.GCP.gr_order, and tools.range.

Referenced by manager.GCP.DeleteGCP().

def manager.GCP.OnHelp (   self,
  event 
)

Show GCP Manager manual page.

Definition at line 1755 of file gcp/manager.py.

Referenced by forms.TaskFrame.OnKeyUp(), and gis_set.GRASSStartup.OnWizard().

def manager.GCP.OnQuit (   self,
  event 
)

Quit georectifier.

Definition at line 1519 of file gcp/manager.py.

References workspace.WriteWorkspaceFile.file, manager.GCP.file, and manager.GCP.SaveGCPs().

def manager.GCP.OnRMS (   self,
  event 
)
RMS button handler

Definition at line 1282 of file gcp/manager.py.

def manager.GCP.OnSettings (   self,
  event 
)

GCP Manager settings.

Definition at line 1475 of file gcp/manager.py.

References manager.GCP.UpdateColours().

def manager.GCP.OnZoomMenuGCP (   self,
  event 
)

Popup Zoom menu.

Definition at line 1851 of file gcp/manager.py.

References manager.GCP.OnZoomToSource(), and manager.GCP.OnZoomToTarget().

def manager.GCP.OnZoomToSource (   self,
  event 
)
def manager.GCP.OnZoomToTarget (   self,
  event 
)
def manager.GCP.RMSError (   self,
  xygroup,
  order 
)
Uses g.transform to calculate forward and backward error for each used GCP
in POINTS file and insert error values into GCP list.
Calculates total forward and backward RMS error for all used points

Definition at line 1574 of file gcp/manager.py.

References manager.GCP.bkw_rmserror, manager.GCP.CheckGCPcount(), manager.GCP.fwd_rmserror, manager.GCP.highest_key, manager.GCP.highest_only, manager.GCP.mapcoordlist, tools.range, manager.GCP.rmsmean, manager.GCP.rmssd, manager.GCP.rmsthresh, round, gcmd.RunCommand(), manager.GCP.SaveGCPs(), and utils.split().

Referenced by manager.GCP.ReadGCPs().

def manager.GCP.SetGCPData (   self,
  coordtype,
  coord,
  mapdisp = None,
  confirm = False 
)
Inserts coordinates from file, mouse click on map, or after editing
into selected item of GCP list and checks it for use

Definition at line 1091 of file gcp/manager.py.

References manager.GCP.mapcoordlist, manager.GCP.MapWindow, and mapdisplay.MapFrame.SrcMapWindow.

Referenced by manager.GCP.ReadGCPs().

def manager.GCP.SetTarget (   self,
  tgroup,
  tlocation,
  tmapset 
)
def manager.GCP.UpdateColours (   self,
  srcrender = False,
  srcrenderVector = False,
  tgtrender = False,
  tgtrenderVector = False 
)

Field Documentation

manager.GCP.bkw_rmserror

Definition at line 803 of file gcp/manager.py.

Referenced by manager.GCP.GetBkwError(), and manager.GCP.RMSError().

manager.GCP.clip_to_region

Definition at line 797 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect().

manager.GCP.currentlocation
manager.GCP.currentmapset
manager.GCP.extension

Definition at line 751 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect().

manager.GCP.fwd_rmserror

Definition at line 801 of file gcp/manager.py.

Referenced by manager.GCP.GetFwdError(), and manager.GCP.RMSError().

manager.GCP.GCPcount
manager.GCP.gr_method

Definition at line 795 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect().

manager.GCP.grassdatabase
manager.GCP.grwiz

Definition at line 722 of file gcp/manager.py.

manager.GCP.highest_key
manager.GCP.highest_only
manager.GCP.il

Definition at line 828 of file gcp/manager.py.

manager.GCP.newlocation

Definition at line 744 of file gcp/manager.py.

Referenced by manager.GCP.SetTarget().

manager.GCP.newmapset

Definition at line 745 of file gcp/manager.py.

Referenced by manager.GCP.SetTarget().

manager.GCP.outname

Definition at line 752 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect(), and manager.GCP.OnGeorectDone().

manager.GCP.rmsmean

Definition at line 819 of file gcp/manager.py.

Referenced by manager.GCP.RMSError().

manager.GCP.rmssd

Definition at line 820 of file gcp/manager.py.

Referenced by manager.GCP.RMSError().

manager.GCP.rmsthresh
manager.GCP.show_unused

Definition at line 816 of file gcp/manager.py.

Referenced by manager.GCP.DrawGCP().

manager.GCP.sm_dn

Definition at line 832 of file gcp/manager.py.

Referenced by wizard.ItemList.GetSortImages(), and manager.GCP.GetSortImages().

manager.GCP.sm_up

Definition at line 833 of file gcp/manager.py.

Referenced by wizard.ItemList.GetSortImages(), and manager.GCP.GetSortImages().

manager.GCP.src_maps

Definition at line 750 of file gcp/manager.py.

manager.GCP.VectGRList

Definition at line 753 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect(), and manager.GCP.OnGeorectDone().

manager.GCP.xygroup
manager.GCP.xylocation

Definition at line 747 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect().

manager.GCP.xymapset

Definition at line 748 of file gcp/manager.py.

Referenced by manager.GCP.OnGeorect().


The documentation for this class was generated from the following file: