Previous Next        Current Page: NeXtMidas Training / Working with Files / Lab 4 / Solution
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   + The AUX List   
   + Basic File Commands   
   + Lab 1   
   + File Names   
   + File Types   
   + Lab 2   
   + Listing Files   
   + Lab 3   
   + Plotting Files   
   - Lab 4   
      - Instructions   
      - Solution   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Lab 4 (solution):
    • Here is what you should have done:
      1. Use PLOT to plot the file apenny.prm.
        nM> plot apenny.prm
      2. Use PLOT to plot the file http://nextmidas.techma.com/nm/nxm/sys/dat/apenny.prm.
        nM> plot http://nextmidas.techma.com/nm/nxm/sys/dat/apenny.prm
      3. Use PLOT to plot the world.shp and cities.prm files at the same time.
        nM> plot world|cities
      4. With the plot still up from the previous exercise, use the middle mouse button to disable the cities layer. Now enable the layer. Can you figure out how to turn off the on-axis readout?
        To toggle the enable for the citieslayer: Press the MMB inside the plot, select
        LAYERS->CITIES->ENABLE->GLOBAL
        To turn off the on-axis readout: Press the MMB select
        READOUT->ONAXIS
      5. Use the "Plotting Maps from a NeXtMidas Map Server (NMS)" section in the PLOT explain file to bring up a map of the world with the BLUEMARBLE background. Use the server nextmidas.techma.com and the port 8080 (You need Internet access for this).
      6. nM> plot {LT="NMS",URL="http://nextmidas.techma.com:8080/nms/",BACKGROUND="BLUEMARBLE"}|&
                       world.shp{LAYER={LABEL="NAME",OPAQ=0}} view=latlon
      7. PLOT apenny in the background. Then use the FEATURE command to place a box around Lincoln's nose.
        nM> plot apenny /bg
        nM> FEATURE,NAME=,LABEL=myfeature,TABLE={NAME=XXX,TYPE=BOX,X=89.2,Y=64.2,DX=20,DY=20},PLOT=plot