google maps engine basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · publish...

39
Google Maps Engine Basics WORKSHOP ON BIOMASS ESTIMATION AND MAPPING Dave Thau Developer Advocate, Google Earth Engine [email protected]

Upload: others

Post on 04-Oct-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Google Maps Engine Basics WORKSHOP  ON  BIOMASS  ESTIMATION  AND  MAPPING  

Dave Thau Developer Advocate, Google Earth Engine [email protected]

Page 2: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

What is Google Maps Engine?

A scalable and secure mapping platform powered by the Google cloud

•  Upload your geographic data to be hosted in the Google cloud.

•  Manage, style, and publish maps online.

•  Collaborate and share data layers between your colleagues and partners around the world.

Page 3: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Data Storage and Access on the Google Cloud

Page 4: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Very large-scale data processing

Page 5: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Manage, Style, Publish, and Share

Page 6: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Easy to publish Google Earth and Maps

Page 7: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Easy to publish on Desktop & Mobile platforms

Page 8: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Overall process

Page 9: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Overall process

Page 10: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Overall process

Page 11: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Overall process

Page 12: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Navigating in Google Maps Engine

Dashboard

Page 13: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Navigating in Google Maps Engine

Maps

Page 14: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Navigating in Google Maps Engine

Layers

Page 15: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Navigating in Google Maps Engine

Data Sources

Page 16: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Navigating in Google Maps Engine

Attribution

Page 17: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Navigating in Google Maps Engine

Access Lists - Creating accounts from Google Groups as admins - Managing users in Maps Engine Access Lists

Page 18: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Prerequisites for Exercises

•  Absolutely no programming skills needed.

•  You will need a Google Maps Engine account.

o  If your organization is a DGR in AU or listed in the New Zealand Charities Register, you may be eligible for a free Google Maps Engine software grant. Find out more at earth.google.com/outreach/grants.html

Page 19: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Let's get started!

1.  Log in with your Google account.

2.  Open your Internet browser, and go to mapsengine.google.com.

3.  Go to sydney.earthoutreach.org/training-materials, and download the SanFranciscoBayWetlands.zip.

Page 20: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Create an attribution

1. Click on the Create button in the upper-left corner, and select Attribution.

2. For the Attribution Title, type in the following: “SF Bay EcoAtlas”

3. For Display Text, copy the following text and paste it into the display text area:

San Francisco Bay Area EcoAtlas, Copyright 1998-2005,

San Francisco Estuary

Institute,

www.sfei.org/ecoatlas

4. Click the Save button.

Page 21: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Upload a vector table dataset

1. Click on the Upload button in the upper-left corner, and select Upload map data.

2. Select Vector as the data type of the dataset you would like to upload.

3. Click on the Browse button, and select “San_Francisco_Baylands” shapefile dataset.

• Name: leave the name as is • Sharing settings: leave as is • Attribution: select “SF Bay EcoAtlas” • Description: enter a description for the dataset. • Tags: “tutorial”

4. Click the Upload button.

Page 22: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Upload an image dataset

1. Click on the Upload button in the upper-left corner, and select Upload map data.

2. Select Image as the data type for the raster dataset you would like to upload.

3. Click on the Browse button, and select all the files starting with “sf_bay_north_topo”

• Name: leave the name as is • Sharing settings: leave as is • Attribution: select “USGS and CDFG” • Description: enter a description for the

dataset. • Tags: “tutorial”

4. Click the Upload button.

Page 23: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Create an image mosaic

1. When you are viewing your Data screen, select multiple tiles, and then click on Add to mosaic... in the left-hand panel. Check the box next to Create new mosaic and click OK.

2. Type in the following as the name for the new mosaic: “Topography Base Map”

3. Select “USGS and CDFG” as the attribution.

4. Click Create.

Page 24: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Style the vector layer

1. When you are viewing the Asset Details for a processed vector dataset, click on the option to Style this vector on the left side of the details.

2. Type “San Francisco Baylands” as the name, and click Continue.

3. In the Style Editor, change the style mode to “Fill” and change the Fill color to turquoise or other light blue color.

4. Click on the Add filter link to add a filter. Set the Filter to be “CLASS” == Baylands

5. Click the Add rule button, under the style you just set. Repeat above steps for other classes.

Page 25: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Style the vector layer

6. Click on the Balloon tabin the top of the Style Editor.

7. Edit the HTML content in the text box on the left to match the HTML content here. You can copy the text below and paste it into the text box, replacing the content that is there.

<div class='googeb-info-window' style='font-family: sans-serif'>

<b>CLASS:</b> {CLASS}<br>

<img src="{IMAGE1}" width="200"/><br>

<img src="{IMAGE2}" width="200"/><br>

<a href="{URL}">Read more...</a><br>

</div>

8. Click the Update button.

9. Click the Return to Layer button.

10. Click the Publish layer button.

Page 26: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Create an image layer

1. When you are viewing your Data screen, select the “Topography Base Map” mosaic asset, and then click on Add to layer... in the left-hand panel. Check the box next to Create new layer and click OK.

2. Type in “Topography” as the name for the new layer, and click Create.

3. Click Process now.

4. Click Publish Layer.

Page 27: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Create a map

1. Click on the Create button in the upper-left corner, and select Map.

2. Type in the following as the name for the new layer: San Francisco Bay Map

3. Click on start adding map data. Select “San Francisco Baylands” and “Topography” and click Save.

4. Click the Process now button.

5. Click the Publish map button.

Notice how, on all published maps, the links to Google Earth, Google Maps, WMS, and Google Maps Widget are all hyperlinked.

Page 28: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Publish your map in Google Earth

1. Click on Google Earth, and copy the URL that appears.

2. Open Google Earth.

3. Select Maps Engine from the File menu.

4. Click on a map from the menu, or click on the “Advanced” tab.

5. Under the Advanced tab, paste in the URL that you copied from Maps Engine, and click the Connect to globe button.

6. Find your map with all the layers you added at the bottom of the Layers List in the left-hand panel of Google Earth.

Page 29: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Publish your map in Google Maps

1. Click on Google Maps, and click on the URL that appears.

2. Click on the Google Maps URL, and a new window appears with your map displayed on Google Maps.

Notice the legend in the upper-left corner of the map, with check boxes to turn on and off different layers.

Page 30: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Publish your map in Google Maps (embedded map)

1. Click on Google Maps Widget, and copy the HTML code that appears.

2. Paste it in your website’s HTML code, or in a blog post or other web platform that accepts HTML code.

Page 31: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Technique #1: Import KML file to retain styling

•  Any KMZ file you import into Google Maps Engine will get passed through without you having to style it -- it will keep any styling it has in the KMZ file.

Page 32: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Technique #2: Create multiple layers from 1 data source

•  Don't forget that you can create multiple layers off of one data source. Just style differently, or filter on a new column!

Data Source: Australian Toilets

Layer: Verified vs. Unverified

Layer: By State

Page 33: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Technique #3: Use different zoom levels

•  Refresh your Google Maps Engine account (or import Catchments if you are not using a guest account).

•  Find the "Catchments (fine)" and "Catchments (coarse)" data sources, create layers with zoom dependence accordingly:

•  Create a map, and add both layers -- see how zoom dependence can manage complex data!

•  Extra credit: use folders to treat both layers as one!

Page 34: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Publish

Organize the world's geospatial information and make it universally accessible and useful.

Discover your map

Page 35: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears
Page 36: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Discover your map

Earth Gallery makes your data universally accessible and useful.

Publish

Supported NOW - Maps API code - Map widget code - G+

Coming SOON - Search - WMS link - KML link - View in Google Earth

Page 37: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

What you need to prepare?

•  Google Maps Engine account

•  Google Maps Engine maps

•  Build a map with layers and folders

•  Published & with Access List: "Public on the web"

•  Map title and description

Page 38: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Have your maps in Gallery?

To submit your maps to Gallery TODAY

Fill in the form at http://goo.gl/i0J9U

To submit your maps to Search & Gallery in the FUTURE

Sign up for Trusted Testers

Page 39: Google Maps Engine Basicswhrc.org/wp-content/uploads/2016/02/thau_maps_engine_day5.pdf · Publish your map in Google Earth 1. Click on Google Earth, and copy the URL that appears

Questions?