+ All Categories
Home > Documents > MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS...

MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS...

Date post: 20-May-2018
Category:
Upload: trinhkhanh
View: 221 times
Download: 0 times
Share this document with a friend
12
MapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants: Volunteer Fire Dept and Rural Water Districts ‐‐‐ EXERCISE 2 In this exercise, you will learn: A. To query specific attributes in the attribute table B. To create a new shapefile C. To download a satellite image and display it in MapWindow D. To display GIS files in Google Earth A. Querying Specific Attributes in the Attribute Table From EXERCISE 1, we imported several layers as shown in the illustration below: Rightclick tl_2009_40089_place and click ‘View Attribute Table Editor’. (Alternatively, highlight tl_2009_40089_place and click the ‘Attribute Table Editor’ tool .) Its attribute table is shown below. It shows the major towns and cities in McCurtain County. 1
Transcript
Page 1: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

MapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma 

 ‐‐‐ Participants:  Volunteer Fire Dept and Rural Water Districts ‐‐‐ 

 EXERCISE 2 

 In this exercise, you will learn: 

A.  To query specific attributes in the attribute table B.  To create a new shapefile C.  To download a satellite image and display it in MapWindow D.  To display GIS files in Google Earth 

 A.  Querying Specific Attributes in the Attribute Table  From EXERCISE 1, we imported several layers as shown in the illustration below:  

  Right‐click tl_2009_40089_place and click ‘View Attribute Table Editor’.    

(Alternatively, highlight tl_2009_40089_place and click the ‘Attribute Table Editor’ tool   .)  Its attribute table is shown below.  It shows the major towns and cities in McCurtain County.  

 

1  

Page 2: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

 Let’s use the Query function to query Idabel and save it as another shapefile. Click Selection > Query.  

  (Alternatively, click the Query tool  .)  The Querybuilder popup appears.  

  

Using the scroll bar, double‐click on NAME.  Click ‘Equal’ sign button .  Type ‘Idabel’ in single or double quotes.  Click ‘Execute’ button.  The Idabel record is highlighted.  The Idabel area boundary is also highlighted in the map.  

  (Alternatively, you can click on the first column (gray color) of the Idabel record line to highlight the Idabel record.  This is the easiest way to select the Idabel record.  However, if you have hundreds or 

2  

Page 3: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

thousands of records and if you have to choose multiple fields, the Querybuilder function comes in handy.)  To de‐select the highlighted record, click Selection > Select None.  B.  Creating a New Shapefile  Click Selection > Export Selected Features.  

  Save the new shapefile as Idabel.  Save it in the MapWinWorkshop folder.  Click ‘Yes’ to the question:  ‘Do you want to load the new shapefile?’  Now we have a new shapefile named Idabel in the Data Layers area.  

  Uncheck tl_2009_40089_McCurtain and tl_2009_40089_place.    Zoom in on Idabel boundary.  Right‐click Idabel > Zoom to Layer.    

3  

Page 4: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

  It shows the extent of coverage of Idabel.  Next, let’s change its color.  Double‐click on Idabel to open the Legend Editor.    Make the following changes:  

Fill Color:  ‘Transparent’ (Hint:  Click on Fill Color.  Click the scroll arrow.  Hit the Web tab.  Click ‘Transparent’ Outline Color:  ‘DarkOrange’ Line Width:  ‘2’ Show Fill:  ‘False’  

  

4  

Page 5: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

  Close the Legend Editor  Download and add the file called streets.shp. Download and add the file called fire_hydrants.shp.  Drag the two layers above Idabel.  

  Let’s save our project thus far.  In menu bar, click File > Save As.    Save as Workshop_A2.mwprj in MapWinWorkshop folder.  Click Save.  Let’s activate some plug‐ins.  In Main Menu, click Plug‐ins > GIS Tools.  Also activate ‘Open Metadata Manager’.  

5  

Page 6: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

The plug‐ins ‘GIS Tools’, ‘Metadata Tools’, and the measuring tool are now displayed in the menu bar and toolbar.  

  Let’s look at the metadata of a layer.  Highlight tl_2009_40089_place.  Click ‘Metadata Tools’ > View Metadata for Current Layer.  

  C.  Downloading a satellite image and displaying it in MapWindow  From ‘Geospatial Datasets for McCurtain County’ (http://agecon.okstate.edu/gis/McCurtain.asp), under 

Imagery, download ortho_e1‐1_s_ok089.sid.    Save it to the MapWinWorkshop folder.  The file is 436MB, so it may take awhile to download.   Extract it to the folder with the same name that is automatically created.  A single image file is composed of several files as shown below:  Add the ortho_e1‐1_s_ok089.sid image to MapWindow.  Click Open to see the image.   You may have to drag the image layer to the bottom to expose the other layers.  

6  

Page 7: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

  Right‐click ortho_e1‐1_s_ok089.sid> Zoom to Layer to view its entire extent.  

  Right‐click Idabel > Zoom to Layer.  

Using the Zoom In tool  , draw a small box somewhere at the center of Idabel.   

7  

Page 8: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

  Change the symbology of the fire hydrants.  Double‐click fire_hydrants to open its Legend Editor.    Use the following changes:  Point color – Cyan.  Point Size – 6.  Point Style – ptCircle.  

   

8  

Page 9: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

  

You may use the Pan tool   to move to nearby locations.  Click the Save tool   to save your project to Workshop_A2.mwprj.  Click File > Exit to close MapWindow GIS.  D.  Displaying GIS files in Google Earth  First, we need to install a plug‐in for MapWindow so we can display GIS files in Google Earth.    Download the Shape2Earth MapWindow plug‐in from:  http:// shape2earth.com/shp2e.aspx.  Follow instructions to download and install.  (Or, download a similar software called Shp2kml 2.0.  It is a shapefile‐to‐kml, stand‐alone converter.  You can get it from: http://www.zonums.com/shp2kml.html)  Open MapWindow GIS.    Open Workshop_A2.mwprj.  In Menu Bar, click Plug‐ins > Shape2Earth.  The plug‐in Shape2Earth is now installed and shown in the menu bar.  Click Idabel > Zoom to Layer.    

9  

Page 10: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

  Click Shape2Earth > Export to KML  

   Click ‘Run Unregistered’   

 

10  

Page 11: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

 

Use the default parameters.  Click the small Google Earth icon  to save Idabel as kml file.  

  Again, Shareware License Information window of Shape2Earth pops up.  Click ‘Run Unregistered’.  Save as Idabel.kml in MapWinWorkshop folder.  Opening Google Earth  First, download and install Google Earth if it’s not in your computer.  Go to:  http://earth.google.com/download‐earth.html.  In main menu, click File > Open  

  Open Idabel.kml.  You should see the Idabel boundary plotted in Google Earth.  

11  

Page 12: MapWindow GIS Workshop - Oklahoma State …agecon.okstate.edu/gis/files/MapWindow GIS Tutorial_A2.pdfMapWindow GIS Workshop 05 January 2009, McCurtain County, Oklahoma ‐‐‐ Participants:

   Save MapWindow project.  Exit MapWindow.  Now we have just learned how to query specific attributes in the attribute table, create a new shapefile, download and display a satellite image, and display GIS files in Google Earth.  END OF EXERCISE 2 

12  


Recommended