9
Drew University – Spatial Data Center Geographic Information Systems Tutorials Drew University – Spatial Data Center 1 Tutorial 7: Geocoding with Batch Geocode and Google Earth This tutorial will introduce you to the following: Identifying Attribute Data (Review) Setting up a Spreadsheet for Geocoding Batch Geocode Part 1. Identifying Attribute Data We have worked with tabular data in other tutorials from the New Jersey Department of Health and from the Toxic Release Inventory (TRI) database. This focuse of this tutorial is on mapping data that is in address format. If you have geocodes – names of countries, states, zipcodes, etc. – then you have geographic data – and it can be mapped. For this tutorial, you need to find or make a list of at least five addresses. These can be places that you’ve visited or places that you’d like to visit – or something else! But, you need a list of at least five places. Once you have your list, you need to put the data into a spreadsheet. Part 2. Setting up the Spreadsheet For this exercise, we will be using a website called batchgeo – http://www.batchgeo.com. Visit this site and download the “Spreadsheet Template.” Open this template in Excel, or if you’re using GoogleDrive, then download the template to your computer, and upload it to GoogleDrive (I suggest using the Google Chrome web browser, if you’re using GoogleDrive). In Google Drive, select Open with > GoogleSheets.

Tutorial 7: Geocoding with Batch Geocode and

Embed Size (px)

Citation preview

Page 1: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 1

Tutorial 7: Geocoding with Batch Geocode and Google Earth This tutorial will introduce you to the following:

Identifying Attribute Data (Review)

Setting up a Spreadsheet for Geocoding

Batch Geocode

Part 1. Identifying Attribute Data We have worked with tabular data in other tutorials from the New Jersey Department of Health and from the Toxic Release Inventory (TRI) database. This focuse of this tutorial is on mapping data that is in address format. If you have geocodes – names of countries, states, zipcodes, etc. – then you have geographic data – and it can be mapped. For this tutorial, you need to find or make a list of at least five addresses. These can be places that you’ve visited or places that you’d like to visit – or something else! But, you need a list of at least five places. Once you have your list, you need to put the data into a spreadsheet. Part 2. Setting up the Spreadsheet For this exercise, we will be using a website called batchgeo – http://www.batchgeo.com. Visit this site and download the “Spreadsheet Template.” Open this template in Excel, or if you’re using GoogleDrive, then download the template to your computer, and upload it to GoogleDrive (I suggest using the Google Chrome web browser, if you’re using GoogleDrive).

In Google Drive, select Open with > GoogleSheets.

Page 2: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 2

Delete the existing addresses and information, and add your own. I’m going to map places where I went to school. [Tip: For zipcodes

that start with zero, add an apostrophe before the number to preserve the zero.]

As the template says, you can change the auxillary fields to whatever you want, or add your own additional fields. Once you’ve

entered your data, select the data that you want to geocode, by highlighting it with your mouse. Copy and paste the data from your

spreadsheet to the batch geo website. Then, save and close your GoogleSheet or your Excel sheet.

Part 3. Batch Geocode Click Map Now to run the geocoder. If your map is made successfully, press save and continue.

Page 3: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 3

Fill in the subsequent box to save your map.

Now that your map has been created, scroll to the bottom of your page, and select to Download KML file.

Page 4: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 4

Save your file to your computer and open it up in Google Earth. In Google Earth, with your addresses visible, click File > Save > Save Image. Upload your new map to Moodle and you’re done!

Page 5: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 5

Tutorial 7 – Part 2: Converting Geocoded Addresses in Google Earth to ArcGIS Files, and Mapping in Google Drive This tutorial demonstrates two different activities geocoded data:

1. Create a Map using .kml data in ArcGIS 2. Mapping Features in GoogleDrive

The instructions for the first option are shown first, and the second option follows. Converting KML Data in ArcGIS

Conversion of GoogleEarth Data to ArcGIS (.kml to shapefiles)

KML stands for keyhole mark-up language, and it is the file type that is native to Google Earth. KML is a vector data type, with “spaghetti” topology. ArcGIS will work with KML data, but the data needs to be converted to a shapefile or geodatabase first. The following steps will walk you through conversion of the .kml file that you made in part 1 of Tutorial 7. To begin, open your file from Tutorial 7 – Part 1 in Google Earth. You will see the file in your “Places” on the left-side of the screen. Right-click your file and click Save Place As… In the dialog menu, save your file to a place on your computer that you can remember, and change the file type from .kmz to .KML. Then, close GoogleEarth.

Open ArcMap, then open ArcToolbox. In ArcToolbox, select Conversion Tools > From KML > KML to Layer, and double-click this option. Complete the dialog box, by identifying your .kml file and the location where you would like to save the new layer file.

Page 6: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 6

Click OK. The conversion may take a minute or two (wait for it!). Then, your data will be added to your map.

Add another data layer from a previous tutorial, or a new one that you find, to be the backdrop of your Google Earth locations. Add a title to the map, export your map as a .JPG, and share it with others!

Page 7: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 7

Mapping Features in GoogleDrive Open up a new spreadsheet in Google Drive. From another site, identify state or country level information that you would like to map (e.g. a column with country or state names, and a column with numbers). Either upload or copy and paste the country or state data into GoogleDrive. Select the two columns with your place names and data, then click Insert > Chart. In the chart menu, select the “Charts” tab and choose Map. Click the “Customize” tab to change the geographic region displayed, as well as colors.

Page 8: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 8

When you are done modifying the map. Click Insert. The map is usually inserted at the bottom of your spreadsheet. Click on the top right-hand corner of the map, and select save image. Now, open either a powerpoint document, or the GoogleDrive version of powerpoint (Presentation).

Page 9: Tutorial 7: Geocoding with Batch Geocode and

Drew University – Spatial Data Center Geographic Information Systems Tutorials

Drew University – Spatial Data Center 9

Insert the image onto the slide, and add a title. Save your presentation as a .JPG. In GoogleDrive, select File > Download As, and choose .JPG. In PowerPoint, select File > Save As.. > and change the Save as Type to .JPG. Once you have it, share it with others!