Converting Post-processed MapViewer™ 7 Data to Display

Transcription

Converting Post-processed MapViewer™ 7 Data to Display
Converting Post-processed MapViewer™ 7 Data to Display on Google Earth
Whether you have points, lines, or polygons, converting your post-processed MapViewer 7 vector data to
KML format is easy by following the steps presented below. In this example, we will use US Geological
Survey sample data depicting high magnitude earthquakes to generate point locations across the globe,
export them from MapViewer 7 as a shapefile, convert the shapefile to the Google Earth file format KML, and
display the event location from the past 100 years overlaid on a Google Earth surface.
MapViewer 7
Golden Software's MapViewer 7 is a comprehensive thematic mapping and spatial analysis software package
for business, science, and education. You can easily visualize data distribution geographically by creating
publication-ready maps in 13 different map types with many customizable features.
A Small, Free Download
With the increasing popularity of the Google Earth Community, MapViewer users' have developed a desire to
display post-GIS processed features on the Google Earth model. Data aggregated in MapViewer 7 requires
conversion to display on a Google Earth model. There are a number of downloadable conversion utilities and
web sites available for free online. For example, GPS TrackMaker® is a very simple and easy to use program.
This article will discuss using GPS TrackMaker. Some other GPS data to KML conversion programs include
Google Earth KML Creator, GPS Visualizer, and Expert GPS.
Background of KML Format
Keyhole Markup Language (KML) is an XML-based language used for managing the display of 2D and 3D
geospatial data based on three required data fields: latitude, longitude, and altitude or X, Y, and Z. The KML
format supports vector type geometry and connectivity including point, polygon, and linestring features.
Conversion of post-processed data generated from Golden Software products is required for display on
Google Earth in the KML file format using a small number of easy steps (see below).
In November 2007, the KML file format was submitted to the Open Geospatial Consortium, Inc.® (OGC®) to
be classified as an OGC standard for all geobrowsers, namely Google Earth. In April 2008, the OGC officially
endorsed the KML format, adding to the interoperability of major international earth browsers’ functionality
and implementation. Both Google and the OGC agreed the KML language fit within the broad OGC Standards
Baseline and will foster global sharing of geospatial information, deeming KML an OpenGIS® Encoding
Standard.
Note: Golden Software only supports applications designed by our engineers, not shareware or any other
free downloadable conversion utility.
Steps to Convert Data to KML and Display on Google Earth
1. The first step is the data acquisition process.
a. Navigate to: USGS Earthquake Research page, which is a good source to view and download
high magnitude earthquake events from 1900 through 2002.
b. Click on the centennial.xls file.
c. Click the Open button to open the data in Excel.
d. In Excel, save the data to an XLS file.
e. Close Excel.
2.
Open the MapViewer 7 application.
3.
Use the Map | Pin Map to create a Pin Map of the point locations of the high magnitude earth quake
events that occurred from 1900 to 2002.
a. When the Open Data File dialog appears, navigate to the XLS file created in Step 1, click
Open.
Figure 1: Open the downloaded data from the USGS.
b. The Pin Map dialog will appear. Make sure your dialog looks the same as Figure 2 below.
i.
Set the Locating method to Coordinate.
ii.
Set the PID column to Column A: icat.
iii.
Check the box in front of Attribute 1. Set Attribute 1 to Column D: yr.
iv.
Check the box in front of Attribute 2. Set Attribute 2 to Column O: M1.
v.
Set the X coordinate to Column K: gLon.
vi.
Set the Y coordinate to Column J: gLat.
vii.
Click OK.
Figure 2: Set the Pin Map dialog parameters to generate a Pin Map.
4.
Create different layers of the earthquake events by querying the earthquake data to select ranges of
different magnitude earthquakes by using the Analysis | Query command. The Analysis | Query
command builds a query statement or string that retrieves all points, lines, or areas that satisfy the
statement. The statement can be designed in the Query dialog.
a. Use Analysis | Query to access the Query dialog.
b. Move to the Query section of the dialog.
c. Select the word Select from the first drop down menu.
d. Since the earthquake data is point data, highlight Points in the center section.
e. To perform the query across all of the earthquake data within the map, select Map in the lefthand drop down menu.
f. Move down to the Where section of the dialog, this is where you specify the criteria the query
will perform. In the Where box, enter the query equation which reads Attrib2 >= “9”. These
steps create a query statement that reads Select Points in Map Where Attrib2 >= “9”.
g. Click OK. Executing this query statement will select all of the earthquake events that have a
magnitude of 9.0 or higher.
Figure 3: Use Analysis | Query to sort the earthquake data.
h. From the Object Manager, click the Attribute 2 column heading and choose to sort by
descending and click OK.
i. You will notice the earthquakes with a magnitude of 9.0 or higher have been selected in the
Object Manager, right-click on the selected earthquakes and choose Move to Another Layer.
Figure 4: Select the group of high magnitude earthquakes and move them to a new layer.
j.
The Move to Layer dialog will appear, choose [New Layer] and click OK.
Figure 5: The Move To Layer dialog moves the selected objects to a new layer.
k.
l.
Move your mouse to the Layer Manager and double-click Layer #2 to make the layer active.
Right-click on the selected layer and choose Rename; rename the layer Highest Magnitude
Earthquakes.
Figure 6: Rename the newly created layer from the previous step.
5.
6.
7.
8.
m. Make Layer #1 active again, by double-clicking the word Layer #1 in the Layer Manager.
n. Repeat the query steps a through g for the earthquakes with a magnitude from 8.0 through
8.9, 7.0 through 7.9, and 6.0 through 6.9. Your map should now have five layers including the
original Pin Map layer.
Export the layers to Shapefile format.
a. Select the Highest Magnitude Earthquakes layer in the Layer Manager by double-clicking it;
the red arrow next to the layer will indicate which layer is active.
b. Use the Edit | Select All command to select all of the points in the active layer.
c. Use the File | Export command to export the layers as Shapefiles.
d. When the dialog appears, navigate to the directory where you want to save the Shapefile.
e. Change the File name to an appropriate name, such as Highest Magnitude Earthquakes.
f. Change the Save as type to SHP – ESRI Shapefile (*.shp).
g. Put a check next to the Selected objects only option.
h. Click Save.
i. The Export Options dialog will appear, accept the default parameters by clicking OK.
j. The SHP – ESRI Shapefile Export dialog will appear, select the option Write Points to
Separate File.
k. Click OK.
l. Repeat steps a through k until you export all of the earthquake event layers.
Download and install GPS TrackMaker from: http://www.gpstm.com/.
After GPS TrackMaker is installed start the application.
Convert the Shapefiles exported from MapViewer to KML in GPS TrackMaker with the following steps.
a. Use File | Convert Files to access the Convert Files dialog.
b. Once the dialog appears, navigate to the directory where you exported the Shapefiles in Step
5 in the Origin Directory and File Format box.
c. The Open File dialog will appear; change the Files of type drop-down menu to ArcView
Shapefiles (.shp).
Figure 7: GPS TrackMaker allows conversion between SHP and KML formats.
d.
e.
f.
g.
h.
Select any one of the Shapefiles and click Open.
When the dialog appears again, click the Target Directory and File Format icon.
The Save File dialog will appear, change the Save as type to Google Earth File (*.kml).
Change the File name to appropriate name, such as Highest Magnitude Earthquakes.
Click Save.
Figure 8: Save the file as a KML file.
i.
Click the Convert button.
Figure 9: Use the Convert command in GPS TrackMaker.
j.
The Data Import Tool dialog will appear, accept the defaults and click OK.
Figure 10: The Data Import Tool designates the projection and datum of the input SHP.
The Data Import Tool dialog will appear as many times as you have Shapefiles in the Origin
Directory. Accept the defaults from this dialog and click OK as many times as prompted.
l. Once the conversion process is complete, click Exit to close the dialog.
m. Close GPS TrackMaker.
Steps to display the KML files on Google Earth:
a. Download and install Google Earth.
b. Open the Google Earth application.
c. Use the File | Open command to load the KML files.
d. The Open dialog will appear; navigate to the directory where GPS TrackMaker saved the KML
files.
e. Select Highest Magnitude EarthquakesPnts.KML, click Open.
f. You will notice that under Places on the right-hand side of Google Earth, a file was loaded
named GPS TrackMaker. Rename the file to the original name by right-clicking and choosing
Rename. In this case, rename the file Highest_Magnitude_Earthquakes.
g. Repeat these steps for each KML file converted by GPS TrackMaker.
h. Additional customizations can be made to these files after they are loaded into Google Earth
by right-clicking the file name and selecting Properties. In the examples below the display was
customized to represent earthquakes of the different magnitudes.
k.
9.
Figure 11: Earthquake data displayed on Google Earth after customizations.
Figure 12: Earthquake events displayed on Google Earth.
Figure 13: Another example of point data converted and displayed on Google Earth.
Associated Links:
1. Google Earth Download
2. Google [.KML] tutorial
3. Conversion utilities:
a. GPS TrackMaker
b. Google Earth KML Creator
c. GPS Visualizer
d. Expert GPS
4. USGS Historic Earthquake Data
Di
s
t
r
i
bui
t
oi
nI
t
al
i
ada
SX ST.
i
t
diSi
s
t
emiI
nf
or
mat
i
vis
r
l
Vi
aQui
nt
i
l
i
ano31,20138Mi
l
ano
t
el
.02580390.
83
i
nf
o@s
i
nf
.
i
t|www.
s
xs
t
.
i
t
s
kypet
oSxST
.
i
t