Using MapWindow GIS with MMP Tools

  1. Introduction To MapWindow GIS
  2. Installing MMP Tools and MapWindow GIS
  3. Before You Start

  4. Creating a Farm Project
  5. Drawing Fields

  6. Adding Soils
  7. Drawing Sensitive Features and Manure Application Setbacks
  8. Drawing Conservation Practices
  9. Measuring Distances
  10. Creating Maps

  11. Importing Fields from a GPS or Generic Shapefile
  12. Importing Fields from a Toolkit XML File
  13. Importing an SNMP 1.1 Operation

  14. Exporting Field Data to MMP
  15. Exporting Conservation Plan to XML
  16. Exporting GIS Data to XML
  17. Exporting to iGIS (mobile GIS)

  18. Using USGS Aerial Photos and Elevation Data
  19. Tips and Tricks
  20. The Advanced Menu


1. Introduction to MapWindow GIS

MapWindow GIS (www.mapwindow.org) is a free GIS that you can use without needing to have ArcView or ArcGIS. Once you've added the MMP Tools plug-in to MapWindow, you can follow the instructions below and use MapWindow to do the following: Important! Before you start, make sure you have an aerial photo of your fields. You can quickly locate your fields using this University of Missouri Web-based "clipper" application to zoom in on your farm and clip out and download an aerial photo of the fields: http://clipper.missouri.edu. Tip: Use the mouse wheel to zoom in on your farm. Click, hold and drag the mouse to pan the map.


2. Installing MMP Tools and MapWindow GIS

When you install MMP Tools, you can let it install MapWindow GIS for you.
  1. Start the MMP Tools installer and follow the instructions.
  2. If you don't already have MapWindow GIS installed on your computer, make sure the "MapWindow GIS Common Files" component is selected. If you already have MapWindow GIS installed, be sure to uncheck this component.
  3. MapWindow requires Microsoft's .NET Framework Version 2.0. If you don't have .NET 2.0 installed and you select to install MapWindow, the installer will take you to Microsoft's Web site, where you can download the .NET installer.
    Tip: To determine whether you have .NET 2.0 installed, start MMP and in the About box click the Information About Installed Software link. If you have .NET Framework installed, you'll see .NET Framework at the bottom of the report. Make sure you have 2.0 or later installed.
Notes:

Uninstalling MMP Tools and MapWindow GIS

If you need to remove MMP Tools from your computer:
  1. Open Windows Control Panel.
  2. Double-click Add or Remove Programs.
  3. If you installed the MapWindow GIS Common Files with MMP Tools, select this item from the list. This will remove both MapWindow GIS and MMP Tools. If you installed MMP Tools into an existing MapWindow installation, select the MMP Tools for MapWindow GIS item. This will remove only MMP Tools.

3. Before You Start

  1. If you want to look at an example farm project before you start, open the example in C:\Documents and Settings\All Users\Shared Documents. Choose File | Recent Projects and select the example.

  2. At a minimum, make sure you have an aerial photo of your farm. The easiest way to do this is to use the Missouri clipper app. This Web app will also provide a topographic layer and soils layer. Choose MMP Tools | Clipper Web App | Get Base Layers for New Project to go directly to this Web site from within MapWindow.

    Tip: Once you've created a farm project, you can return to the farm in the clipper Web app using MMP Tools | Clipper Web App | Go to Current Project's Farm. This can be useful if you need a larger clipped area or want to update your project with the latest base layers.

  3. Terminology

    A "layer" is either a shapefile or an image (photo) file. "Base layers" are layers that are provided for you by the clipper Web app or other data source. Examples of base layers include the photo, topo and soils layers -- you don't create these layers yourself.

    A "shapefile" is a file of points, lines or polygons with an .shp extension (there will also be an .shx file and a .dbf file and usually a .prj file).

    An "image" file contains a photo in a commonly used format like JPEG, GeoTiff, or MrSid. An image file will have a .jpg, .tif or .sid extension. These image files will also have a "world" file with a .jgw, .tfw or .sdw extension that tells the GIS where the image is located in the world.

    If you use the clipper Web app, it creates a .jpg file and a .jgw file with "doqq" in the files' name to indicate that the aerial photo is part of a "digital orthophoto quarter quadrangle". The clipper Web app also creates a .jpg file and a .jgw file containing the USGS topographic map and includes "drg" in the files' name to indicate that the scanned topo image is a "digital raster graphic". In addition, the clipper Web app creates an .asc grid file with "dem" in the file's name to indicate that it contains "digital elevation model" data and a shapefile with "wbd" in the files' names to indicate the shapefile contains "watershed boundary dataset" data. When you create a farm project from a clipper .zip download, MMP Tools renames these files to a more readable "photo", "topo", "dem" and "watershed", respectively.


4. Creating a Farm Project

  1. Once you've installed MMP Tools and MapWindow GIS, start MapWindow. There are three ways to start MapWindow:
  2. Now pull down the MapWindow Plug-ins menu and make sure the following plug-ins are checked:
  3. If you clipped and downloaded an aerial photo of your farm as recommended above using the clipper Web app, choose MMP Tools | New Farm Project | From Clipper Zip File.

  4. If you obtained the aerial photo of your farm some other way, choose MMP Tools | New Farm Project | Blank Farm Project.
Tips:

5. Drawing Fields

  1. To begin drawing fields, make sure fields is selected under Data Layers.
  2. Click the Add New Shape button (+shp) on the toolbar.
  3. Use the left mouse button to click around the boundary of your first field, finally clicking the right mouse button when all done drawing the field. Remember that only left clicks are part of the field boundary -- right clicking only tells MapWindow that you're done drawing and does not add that click's point to the field boundary.
  4. Enter the field name when prompted. You can also enter an optional subfield name. Make sure that each field's name-subfield name combination is unique. You can't have two fields with the same name in MMP.
  5. Repeat these steps for other fields.
Tips:

6. Adding Soils

Important! If you created your project with MMP Tools | New Farm Project | From Clipper Zip File or MMP Tools | New Farm Project | From SNMP 1.1 Operation, the project should already have a soils layer. If you created your project with MMP Tools | New Farm Project | Blank Project, or if your project does not have a soils layer, you can add soils manually, as follows.

If you have an unclipped county-wide soil survey shapefile that you downloaded from the Soil Data Mart, you can clip a portion of it to use with your project:

  1. Make sure you've drawn at least one field.
  2. Choose MMP Tools | Add Layer | Soils Layer - Clip Before Adding.
  3. Navigate to where you unzipped your Soil Data Mart download and select the shapefile that starts with "soilmu_a".
  4. Enter the file name to use for the clipped soils layer that will be created. By default this will be "soils.shp".
  5. Enter the distance to clip beyond the outermost field boundary.
  6. Clipping may take a few moments. When complete, the clipped soil layer will be added to your project.
If you have a clipped soil survey shapefile, you can add it to your project with MMP Tools | Add Layer | Soils Layer - Already Clipped.

Tips:


7. Drawing Sensitive Features and Manure Application Setbacks

Geographic features come in three shapes: You create a layer for each type of geographic feature you need.
  1. To add a feature layer, choose MMP Tools | Add Layer, then choose the type of feature layer (point, line, polygon) depending on what type of shape you want to draw, then enter the name to use for the new layer.
  2. Make sure the feature layer is selected under Data Layers, then draw the features (+shp button on the toolbar). Drawing line and polygon features is similar to drawing fields. To draw a point feature, just click once where the feature is located.
  3. Enter the new feature's name when prompted.
  4. Enter the manure application setback distance from the feature, or enter 0 if no setback is needed for the feature.
  5. If the feature is considered water in the state's phosphorus loss risk assessment (for example, in a phosphorus index), be sure to check the Feature Is Considered Water box.
Tips:

8. Drawing Conservation Practices

Conservation practices come in three shapes: You create a layer for each type of practice you need.
  1. To add a practice layer, choose MMP Tools | Add Layer, then choose the type of practice layer (point, line, polygon) depending on what type of shape you want to draw, then enter the name to use for the new layer.
  2. Make sure the practice layer is selected under Data Layers, then draw the practices (+shp button on the toolbar). Drawing line and polygon practices is similar to drawing fields. To draw a point practice, just click once where the practice is located.
  3. Enter the new practice's name when prompted.
  4. Enter the NRCS conservation practice code.
  5. Enter the manure application setback distance from the practice, or enter 0 if no setback is needed for the practice.
  6. If the practice is considered water in the state's phosphorus loss risk assessment (for example, in a phosphorus index), be sure to check the Feature Is Considered Water box.
Tips:

9. Measuring Distances

You can add special layers that you can use to draw lines between points and determine the following distances: Here are the steps for measuring distances:
  1. Choose MMP Tools | Add Layer, then choose the type of distance layer (water, storage, slope length). MMP Tools will add the new distance layer.
  2. Make sure the distance layer is selected under Data Layers, then draw the distance line (+shp button on the toolbar). Click somewhere inside the field that you want a distance for, then draw a line to what you're measuring. For example, to measure distance to water from the edge of a field, click on the field boundary, or just inside it, at the field's nearest point to water, then click along the flow path, finally right-clicking to signal that you're done drawing.
Tips:

10. Creating Maps

  1. To print a map, choose File | Print.

  2. To export a map, choose Edit | Export | Map.

  3. To copy a map to the Windows clipboard, choose Edit | Copy | Map.
Important! After inserting a map and its scale bar into a Word document, make sure that both images have the same scale. Right-click each image in Word and check to make sure that the Scale setting in the Format Picture dialog is the same for both images.


11. Importing Fields from a GPS or Generic Shapefile

If you have a shapefile that contains the boundaries (shapes) of your fields, you can import them into a farm project to avoid redrawing the fields with MapWindow. This shapefile might have been created by a GPS or other mapping device or by other GIS software.
  1. Once you've created a farm project, choose MMP Tools | Import | Fields from Shapefile and select the field shapefile to import (.shp extension).
  2. MMP Tools will import all shapes in the shapefile and insert them as new fields in the fields layer.
Tips:

12. Importing Fields from a Toolkit XML File

If a farm operation has an NRCS Conservation Plan, the producer can request a Customer Service Toolkit XML export file (.xml extension) from the local NRCS field office containing the operation's conservation plan. The field office will use Toolkit's Tools | Export Customer Data command to create the XML file. If you have software that hosts the NRCS Conservation Plugin, you may be able to export this conservation plan XML file yourself. Refer to your software's documentation for more information.
  1. Once you've created a farm project, choose MMP Tools | Import | Fields from Toolkit XML File and select the XML file to import (.xml extension).
  2. When prompted, select one or more conservation plans to import and choose how you want the imported fields to be named.
  3. MMP Tools will import all "land unit" shapes from the XML file and insert them as new fields in the fields layer.
Tips:

13. Importing an SNMP 1.1 Operation

If you have an farm operation that you laid out with SNMP GIS version 1.1 for ArcView 3.x, you can import it into MapWindow:
  1. Choose MMP Tools | New Farm Project | From SNMP 1.1 Operation.
  2. Navigate to the SNMP operation's folder and select its snmp.apr file.
  3. Navigate to where you want to create the new MapWindow farm project folder, then enter a name for the folder.
  4. MMP Tools will create a new farm folder and project, then import the SNMP operation's field boundaries and names, as well as any soils, features and setbacks, and conservation practices.
Notes:

14. Exporting Field Data to MMP

  1. Choose MMP Tools | Export | Create MMP Plan to create a new MMP plan file (.mmp extension) or choose MMP Tools | Export | Update MMP Plan to update an existing MMP plan file.
  2. Enter the new plan file's name or select an existing plan file.
  3. MMP Tools will export the field data to the plan file and open the plan file in MMP.
Tips:

Using MapWindow data in other programs


15. Exporting Conservation Plan to XML

  1. Choose MMP Tools | Export | Conservation Plan to XML File to create a new XML file (.consplan.xml extension).
  2. Enter the name to use for the XML file.
  3. MMP Tools will export each field and its conservation practices in a format that can be used by MMP when generating a CNMP document if you don't have a Toolkit XML file.
Important! The conservation plan that MMP Tools creates is only a draft plan and does not contain the practice narratives that a conservation plan would normally contain.


16. Exporting GIS Data to XML

You can export all of a project's field, feature and conservation practice shapes to a single XML file for submitting with a nutrient management plan.
  1. Choose MMP Tools | Export | GIS Data to XML File to create a new XML file (.gis.xml extension).
  2. Navigate to where the project's MMP plan file is located, then enter the name to use for the XML file.
Tip: If you want MMP to include the XML file in the .zip submit file it creates, be sure to use the same name as the project's MMP plan file. And be sure to create the file in the MMP plan file's folder or move it there later. For more information, refer to MMP's help for its Tools dialog's Export tab.


17. Exporting to iGIS (mobile GIS)

You can export selected layers to a zip file that can be loaded into iGIS on an iPad, iPhone or iPod touch (http://www.geometryit.com/igis). This provides a way to view and use your GIS layers on a mobile device.

  1. In MapWindow, choose MMP Tools | Export | Layers to iGIS Zip File and create your .igis.zip file from selected layers.
  2. Connect your iOS device to your computer, start iTunes, select the device (at left), click Apps (at top), scroll down and select iGIS, then click Add and select your .igis.zip file. iTunes will copy the .igis.zip file to your iOS device.
  3. In iGIS, import the zip file's shapefiles (touch the Import button), setting their projection. Imported shapefiles will now be listed in Data if you want to see them.
  4. Create a new project in iGIS (touch the + Project button), setting its projection.
  5. Add a new layer to the project in iGIS (touch the project's (i) button), selecting from the list of shapefiles, then set layer properties (color, etc.).
Tips:

18. Using USGS Aerial Photos and Elevation Data

If the aerial photo returned by the clipper Web app does not appear to be up-to-date, you might try clipping an aerial photo from the USGS "Seamless Server" Web site: http://seamless.usgs.gov/website/seamless/viewer.htm.

In many states you'll be able to clip recent, high-resolution, color images. Here are some brief instructions on how to clip a photo on the USGS site:

  1. Zoom in on the area of interest, similar to the way you zoom in with the clipper Web app. If you know the farm's longitude and latitude, click the XY tool on the left and enter the long/lat to zoom to the farm.
  2. On the right, under Display, you can expand Places (Names) and check GNIS Cities (with Labels) to see town and city names.
  3. Also under Display, you can expand Orthoimagery and check the NAIP 1m image to display a color aerial photo.
  4. When you've zoomed in to the area that you want to clip, switch from Display to Download.
  5. Under Download, uncheck the default 1" NED Elevation data. If you want to generate a contour lines layer, check the 1/3" NED Elevation data.
  6. Also under Download, expand Orthoimagery and check the NAIP 1m image.
  7. On the left, under Downloads, click the Define Rectangular Download Area tool and draw a rectangle around the area you want to clip.
  8. When the Request Summary Page is displayed, click the Download button for your clipped image or elevation data. (Note that if the image you selected earlier is not available for your area, this will be indicated here - you can then close the window and select a different image under Download.)
  9. After a minute or two, you'll be prompted to save the download .zip file to your local computer.
Once the image .zip file has been downloaded from the USGS Web site:
  1. Choose MMP Tools | Add Layer | Aerial Photo and select the .zip file. MMP Tools will extract the .tif and .tfw files from the .zip file, then copy them to your farm project's folder and add the image to the project.
  2. If your farm project already has an aerial photo, you can uncheck or remove it under Data Layers.
Once the elevation data .zip file has been downloaded from the USGS Web site:
  1. Choose MMP Tools | Add Layer | Contour Lines Layer and select the .zip file. MMP Tools will extract the elevation data files from the .zip file, then create a contour lines layer and add it to the project.
  2. If you want to label the contour lines, choose MMP Tools | Relabel Layer.

19. Tips and Tricks

Mapping non-contiguous fields

Sometimes an operation may farm fields that are not located near each other. For example, an operation may rent another farm down the road or land in another part of the county. In these situations, you may not be able to show all fields legibly on the same map. Although MapWindow and MMP Tools can accommodate multiple aerial photos in the same farm project and you can switch between photos in MapWindow, if you're using the clipper Web app to obtain the aerial photo and other layers for each group of fields separately, it might be easier just to create a separate MapWindow farm project for each group of fields.

Tip: If you create multiple MapWindow farm projects for a single operation, you can still export the fields from all projects to a single MMP plan. Use MMP Tools | Export | Create MMP Plan with the first project to add its fields to a new plan. With the other projects, use MMP Tools | Export | Update MMP Plan, selecting the MMP plan file created for the first project, to add their fields to the same plan. Just be sure that the fields are uniquely named across all of the operation's farm projects.

Drawing a pivot field

You can manually draw a circular pivot field as follows:
  1. Draw the entire field as a rectangle and enter the ID for the "field" that contains just the pivot corners (e.g., "Corners").
  2. Add a dummy polygon practice layer.
  3. Use the "Add regular shape" button to add a dummy practice polygon. Select Circle and enter the pivot radius (currently radius must be in meters), then click on the middle of the rectangular field's first label line. Enter a dummy name for the practice and 0 for the practice code and setback.
  4. Close the regular shape dialog.
  5. Remove the dummy practice layer and delete its underlying shapefile.
  6. Select the fields layer and use the "Add regular shape" button to add the pivot field. Select Circle and enter the same pivot radius as before and click on same place as before. Enter the field ID (e.g., "Pivot").
  7. Close the regular shape dialog.
  8. Tip: MapWindow's Labeler centers field labels inside their fields. With a pivot field and its corners field, the labels may overlap. To hide the corners field's label, blank out the FIELD_LBL and ACRES_LBL values for the corners field in MapWindow's Attribute Table Editor, then relabel the fields.

Drawing a field with a "hole"

If there's a non-crop area or another field completely inside a field, you can omit this area from the field as follows:
  1. Draw the hole area or inside field first. If you want the hole area to be labeled on the map, but it's not a field, consider drawing it as a feature instead of as a field.
  2. Draw the outside field around the first field.
  3. If you drew the hole area as a field, but it's not, you can delete it by selecting it (arrow on toolbar), then clicking the Remove Shape button (-shp on toolbar).

Drawing a filter strip with a specified width

You can manually draw filter strips and other polygons with a specified width as follows. Note that you if you have filter strips (or other practices) already digitized, you can just import them with Import | Practices from Shapefile.
  1. Turn on topo map display.
  2. Add a dummy line feature layer.
  3. Add a dummy feature and trace the topo's blue line, entering a setback equal to the filter strip width (this assumes that the filter strip is on both sides of the blue line water if it runs through field).
  4. Add a polygon practice layer.
  5. Add a practice and trace the dummy feature's setback polygon, entering a name for the practice (e.g., Filter Strip), its practice code (e.g., 393), and 0 for setback.
  6. Remove the dummy feature layer and the dummy feature's setback polygon. Delete the dummy feature layer's underlying shapefile.

Viewing additional soils data

By default, MapWindow labels soils with just the soil map unit symbol. If your soils layer was created by the clipper Web app, you can view more information about a particular soil as follows:

Shapefiles and image files

Most of the layers in a MapWindow farm project are shapefiles. Aerial photos and topo maps are image files. You can't edit image files in MapWindow. You can edit virtually any data in a shapefile with MapWindow or other GIS software. However, just because you can edit a shapefile doesn't mean you should. Here is a list of shapefile data that you should never edit with MapWindow's Attribute Table Editor:

Managing your projects

Use the MMP Tools | Manage Project commands to manage your projects:

20. The Advanced Menu

Once you have a completed MMP plan, you can use the MMP Tools | Advanced menu commands to add layers to your project using data from the MMP plan.

The Advanced menu also includes the Design Research Plots command, which is unrelated to nutrient management planning but is included in MMP Tools since it builds on several of MMP Tools' project-creation commands. Separate documentation for designing research plots is here.


Last updated: Nov. 23, 2011

Copyright © 2008-2011 Purdue Research Foundation.