Replay Flight Data in Shapefile in SprayView | AG-NAV

12
Replay Flight Data in Shapefile in SprayView If you select to use Shapefile in the Guia system, you will have the area and all flight data saved in the Shapefile format. To be able to replay the data in SprayView, you have to convert the data in Shapefile format to AgNav format. Note that in SprayView, a Shape file is considered as a map file. So you will open it as a map. To convert data, do the following: 1) Click the button Open Area/Project . 2) Select the ENTRY.NEW file from the list of area and project files. Figure 7. 1: Select ENTRY.NEW

Transcript of Replay Flight Data in Shapefile in SprayView | AG-NAV

Replay Flight Data in Shapefile in SprayView If you select to use Shapefile in the Guia system, you will have the area and all flight data saved in the Shapefile format. To be able to replay the data in SprayView, you have to convert the data in Shapefile format to AgNav format. Note that in SprayView, a Shape file is considered as a map file. So you will open it as a map. To convert data, do the following:

1) Click the button Open Area/Project . 2) Select the ENTRY.NEW file from the list of area and project files.

Figure 7. 1: Select ENTRY.NEW

3) Check the information displayed on screen. Make sure everything is correct and consistent with the spray area.

Figure 7. 2: ENTRY.NEW Information

4) Click Open Map . 5) Select the Shape file that contains the information of spray area. The file extension must

be “.shp”, for example “a8041101.shp”, then click “Open”.

Figure 7. 3: Select Shape File for Area

6) The area is shown on screen. If the Shape file was generated by Guia, SprayView will

create an area file *.no1 automatically. As in the example, the file a8041101.no1 is created.

Figure 7. 4: Spray Area in Shape File

Note that if your Shape file has more than one polygon, you have to digitize the map, i.e. polygons in the shp file, to make a project file. Assuming that you have a shp file with 4 polygons as shown in figure below:

To make a project, • Click the button “123” to digitize the map. • Click the Prj radio button on the left panel to select

digitizing a project. The Man radio button and Spray button should be selected as well.

• Now move the cursor to the

polygons that you want to put in the project. Push down the right mouse button and hold it. While holding down the right button, drag the mouse to create a rectangle that encompasses all the desired polygons. The polygons don't have to be completely inside the rectangle.

• Now release the mouse

button. The digitized areas are shown in red.

• If you want to deselect any polygon from the selected ones, push down the <Ctrl>

key and the right mouse button. While holding these two keys, drag the mouse to create a rectangle around any corner of the deselected polygon. You don't need to put a whole polygon into the rectangle.

• Now release the mouse button. The deselected ones will be drawn blue again. • Click the Save button

on the left panel. The "Save As..." dialog appears.

• Enter a name of the

project. The file name should be followed by the file extension ".prj". For example “practice_ll.prj”.

• Click the Save button

in the dialog.

• You have made a project. To check the project, click the button “123” to close digitizing function. Select “Open Area” and the project file, for example “practice_ll.prj”. The project will be shown on screen.

• For shpfile data conversion, you can continue the next step.

7) Select the Shape file for Spray On data. The spray data files are normally in the folder

having the same name as that of area Shape file. For example, if the area file is “a8041101.shp”, the folder name will be “a8041101”.

Figure 7. 5: Select Data Folder

8) In the data folder, select the spray on data file. The filename must have the word “spron.shp”, for example “n804110922spron.shp”.

Figure 7. 6: Select Spray On Data

9) The spray data is shown on screen as squares with size the same as the swath width. If

the Shape file was generated by Guia, SprayView automatically converts it into AgNav spray data file. The AgNav filename will be generated from the Shape filename. If the Shape filename is “n804110922spron.shp”, the AgNav file will be “n8041109spron.t22”.

Figure 7. 7: Display Spray On

10) You can repeat steps 8 and 9 for the Spray Off or flight path data.

Figure 7. 8: Display Spray On/Off

11) The flight path data is plotted as blue dots. If the Shape file was generated by Guia,

SprayView automatically converts it into AgNav spray data file. If the Shape filename is “n804110922sproff.shp”, the AgNav file will be “n8041109sproff.t22”.

12) If you have more Shape files to convert, repeat steps 8 to 10 to select another data file.

Now you have the area file in *.no1 format and flight data in AgNav format. You can open the area and replay data as usual in SprayView and NavviewW.

Figure 7. 9: Replay Data

Note that you will see the *.prj files to be generated as well. These are not the AgNav project files so do not select them when opening area or project. The new *.prj files are the projection files for use in ArcView. When you send the Shape files to your clients or GIS staff, you can send the *.prj files as well. ArcView requires these files to be able to process the Shape files. For the projection file generation, the datum or ellipsoid must be WGS-84.

Convert Shape File to Area/Project File If you have a Shape file *.shp with multiple polygons, you can convert the *.shp file to a project file *.prj in SprayView without having to digitize the map. Note that this function works when you have fewer than 100 polygons in the shp file. If you have only one polygon in the *.shp file, SprayView will make an area file *.no1. To convert a Shape file to Area or Project file, do the following:

1) Click the button Open Area/Project . 2) Select the ENTRY.NEW file from the list of area and project files. This is the template to

make a new area or project file. 3) Check the information displayed on screen. Make sure everything is correct and consistent

with the map. Then click the OK button.

4) Click the button Open Menu 5) Select “Convert Map File” “To Area/Project”

Figure 8. 1: Map Conversion – To Area/Project

6) Select the map file *.shp.

Figure 8. 2: Map Conversion – Select Map File

7) To save the project, enter the project filename. Make sure you enter the file extension “.prj”

as well. If the shp file has one polygon, enter the area filename. The file extension must be “.no1”.

Figure 8. 3: Map Conversion – Save Project File

8) If the map looks like this, a project will be made. You can check the project by clicking Open

Area/Project

Figure 8. 4: Map Conversion – Map Display

9) Select the project file you’ve just made. If you have spray data, select spray data files.

Figure 8. 5: Map Conversion – Check Project

10) Click the Go button to replay data.

Figure 8. 6: Map Conversion – Project Display With Spray Data