Current Page:
NeXtMidas Training
Getting Started - Part 2
Lab 4
Solution
|
|
- Lab 4 (Solution):
- You should have done this:
- Use
PLOT to plot world.shp in the background. Give
the plot an ID of MYPLOT .
nM> plot/bg/id=myplot world.shp
<Plot should come up in separate window.>
nM>
- Use
REG to look at the registry entry for plot.
nM> reg
T: REG = Table of 3 entries
O: SHELL = nxm.sys.lib.Shell@c1cd1f
T: HANDLERS = Table of 3 entries
O: MYPLOT = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
- Use
RES to look at the registry table. Note how it is the
same as what was shown with REG .
nM> res reg
T: REG = Table of 3 entries
O: SHELL = nxm.sys.lib.Shell@c1cd1f
T: HANDLERS = Table of 3 entries
O: MYPLOT = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
- Use
RES to look at the particular entry for the plot. Since
REG is a table you can use the REG.<id>
syntax.
nM> res reg.myplot
O: REG.MYPLOT = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
- Use
QUERY to see what methods can be called on the plot.
nM> query reg.myplot
<Long list of methods.>
- Use
QUERY to look at the documentation for the setView
method that is callable in the plot.
nM> query reg.myplot setView
<The docs for the various setView methods.>
- Set the view to
GEODETIC . Remember that when a class has a
setFoo(..) method the value of it can be set using
SET <object>.FOO <value> .
nM> set reg.myplot.view GEODETIC
<Plot should change to a 3D (Geodetic) view.>
nM>
|
|
|