SlideShare une entreprise Scribd logo
1  sur  17
Mapping for Sustainability
Google Mapping Workshop
http://tr.im/sustain_workshop
Sean Askay
Geometries
Points, Lines, Polygons:
• Clickable
• Altitude Modes (clamped, relative, absolute)
• Extruded / Tessellated / Styling
• Multi-Geometries
3D Models:
• Sketchup / Collada
• Not clickable (but can combined w/ multigeometry)
Ground Overlays:
• Latlong box or quad-point tie-down
• Altitude modes
• Super Overlays
Photo Overlays & Screen Overlays:
• Immersive Panoramas
• On-Screen Legends
Interactive KML Sampler
Working with large datasets
Tiling Raster Data
Working with large datasets
Regionating Vector Data
Working with GIS Data
Free, cheap and easy tools:
• shp2kml (vector)
• kml2shp online (vector)
Free but complex tools:
• gdal & ogr (raster / vector: prog. libraries & binary tools) *
• ogr2gui (vector: standalone win/os X)
• MapTiler (raster: standalone OS X) *
• Regionator (raster / vector: python library)
Commercial tools:
• Arc2Earth (ArcGIS plugin) - $300 *
• SuperOverlay (raster) - $20/35/90 *
• KMLer - (ArcGIS plugin) $20/35/50
• kml2kml - (standalone) $50/95/195 *
• shape2earth - (standalone) $30
Reviews & info at: freegeographytools.com
* - performs tiling / regionation
Don't use Google Earth Pro to
import vector data!
Google Charts API
code.google.com/apis/chart
Charts API: bar chart
http://chart.apis.google.com/chart?
cht=bhs (bar chart)
&chs=400x225 (dimensions)
&chd=t:10,50,60,80,40|50,60,100,40,20 (data)
&chco=4d89f9,c6d9fd (colors)
&chbh=20 (bar width)
test link
code.google.com/p/google-chartwrapper/
Create maps without coding
Create in Google Earth:
• Easy, but not scalable
• Earth User's Guide
Google My Maps:
• Easy to use / Collaborative
• Public vs. Unlisted
• Embedding /
• KML & view in Earth
• User's Guide
• YouTube video
Spreadsheet Mapper:
• 400 point placemarks
• 6 HTML templates
• Collaborative
• Read Tutorial
Google Earth Outreach Tutorials: earth.google.com/outreach
f_in = open('data.csv', 'r')
f_out = open('data.kml', 'w')
f_out.write('<Document>')
for row in f_in:
name, lat, lng = row.strip().split(',')
kml = '''
<Placemark>
<name>%s</name>
<Point>
<coordinates>%s,%s</coordinates>
</Point>
</Placemark>''' % (name, lng, lat)
f_out.write(kml)
f_out.write('</Document>')
Google Confidential and Proprietary
User's Guide,36.2,-84.4
Coal River Mountain,37.9,-81.4
Gauley Mountain,38.1,-81.1
Blair Mountain,37.8,-81.8
Huckleberry Ridge,37.0,-83.3
Creating KML with python
KML for programmers
code.google.com/apis/kml
• KML Reference
• Developers's Guide: Touring, time animation, extendedData, etc.
• Articles:
o CSV -> KML with python - link
o PHP & MySQL -> KML - link
• Geo Developers Blog
• KML Developer Support Group
• KML supported by Google Maps
ExtendedData
<Placemark>
  <name>Club house</name>
  <ExtendedData>
    <Data name="holeNumber">
      <value>1</value>
    </Data>
    <Data name="holeYardage">
      <value>234</value>
    </Data>
    <Data name="holePar">
      <value>4</value>
    </Data>
  </ExtendedData>
  <Point>
    <coordinates>-111.956,33.5043</coordinates>
  </Point>
</Placemark>
ExtendedData +
BalloonStyle
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Data+BalloonStyle</name>
<Style id="golf-balloon-style">
<BalloonStyle>
<text>
<![CDATA[
This is $[name]
This is hole $[holeNumber]
The par for this hole is $[holePar]
The yardage is $[holeYardage]
]]>
</text>
</BalloonStyle>
</Style>
<Placemark>
<name>Club house</name>
<styleUrl>#golf-balloon-style</styleUrl>
<ExtendedData>
<Data name="holeNumber">
<value>1</value>
</Data>
<Data name="holeYardage">
<value>234</value>
</Data>
<Data name="holePar">
<value>4</value>
</Data>
</ExtendedData>
<Point>
<coordinates>-111.956,33.5043</coordinates>
</Point>
</Placemark>
</Document>
</kml>
Easy Map Embedding
Embed Google My Maps:
• Create your map, click "Link" at upper right
• Choose URL or HTML embed code
• Tutorial
Import your KML into My Maps:
• Create new map, click on "Import"
• Choose your GeoRSS or KML file
Embed Google Earth & KML file:
• Embedded KML Gadget: tr.im/embedkml
Embed Google Earth & Tour file:
• Embedded Tour Gadget: tr.im/embedtour
Embedding Google Maps API
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;
key= YOURAPIKEY" type="text/javascript"></script>
<script type="text/javascript">
var map;
var geoXml;
function init() {
if (GBrowserIsCompatible()) {
geoXml = new GGeoXml("http://path/to/your.kml");
map = new GMap2(document.getElementById("map_canvas"));
map.addOverlay(geoXml);
}
}
</script> ...
<body onload="init()">
<div id="map_canvas"></div>
...
code.google.com/apis/maps
<script src="http://www.google.com/jsapi?key=YOURAPIKEY"></script>
<script>
google.load('earth', '1');
var ge = null;
function init() {
google.earth.createInstance('map3d', initCallback, failureCallback);
}
function initCallback(pluginInstance) {
pluginInstance.getWindow().setVisibility(true);
addKmlFromUrl('http://path/to/your.kml');
}
function addKmlFromUrl(kmlUrl) {
var link = ge.createLink('');
link.setHref(kmlUrl);
var networkLink = ge.createNetworkLink('');
networkLink.setLink(link);
ge.getFeatures().appendChild(networkLink);
}
</script>
....
<body onload="init()">
<div id="map3d"></div>
3...
Embedding Google Earth Plugin/API
code.google.com/apis/earth
Google Confidential and Proprietary
Resources:
• NPO Intro to GMapping
• Google My Maps
• Google Earth
• Google Maps API
• Google Earth API
• KML Reference
More Examples:
• Google Earth Gallery
• Outreach Showcase
tr.im/map4npo (TechSoup)
maps.google.com > "My Maps"
earth.google.com
code.google.com/apis/maps
code.google.com/apis/earth
code.google.com/apis/kml
earth.google.com > "Gallery"
earth.google.com/outreach > "Showcase"
Links to examples:
• ilovemountains.org & "Global Awareness" in Google Earth
• NAIL: mountainresource.org/nail
• Conservation Solutions for Renewable Energy
• Crisis in Darfur: at ushmm.org & "Global Awareness" Layer
• Geo-Thermal Energy Potential: google.org/egs
• Oil Imports Map: move.rmi.org
More Mapping examples:
• Google Earth Outreach Showcase
• Google Earth Gallery
• Google LatLong blog
• Google Earth blog
• OgleEarth blog

Contenu connexe

Similaire à Askayworkshop

CHUG_presentation_Hope
CHUG_presentation_HopeCHUG_presentation_Hope
CHUG_presentation_HopeLara Juliusson
 
CTOs Perspective on Adding Geospatial and Location-based Information
CTOs Perspective on Adding Geospatial and Location-based InformationCTOs Perspective on Adding Geospatial and Location-based Information
CTOs Perspective on Adding Geospatial and Location-based InformationBradley Brown
 
NAPSG 2010 Fire/EMS Conference - Data Sharing Basics
NAPSG 2010 Fire/EMS Conference - Data Sharing BasicsNAPSG 2010 Fire/EMS Conference - Data Sharing Basics
NAPSG 2010 Fire/EMS Conference - Data Sharing Basicspdituri
 
Saving Money with Open Source GIS
Saving Money with Open Source GISSaving Money with Open Source GIS
Saving Money with Open Source GISbryanluman
 
R spatial presentation
R spatial presentationR spatial presentation
R spatial presentationTodd Barr
 
Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Gill Cleeren
 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesMicrosoft Tech Community
 
Geodaten & Drupal 7
Geodaten & Drupal 7Geodaten & Drupal 7
Geodaten & Drupal 7Michael Milz
 
WFS Tutorial OGC Interoperability Day - Toluca mexico - May 30 2013
WFS Tutorial   OGC Interoperability Day - Toluca mexico - May 30 2013WFS Tutorial   OGC Interoperability Day - Toluca mexico - May 30 2013
WFS Tutorial OGC Interoperability Day - Toluca mexico - May 30 2013Luis Bermudez
 
Global mapper tutorial Jimma University Ethiopia
Global mapper tutorial Jimma University EthiopiaGlobal mapper tutorial Jimma University Ethiopia
Global mapper tutorial Jimma University Ethiopiachala hailu
 
Drupal and the GeoSpatial Web
Drupal and the GeoSpatial WebDrupal and the GeoSpatial Web
Drupal and the GeoSpatial WebAndrew Turner
 
Building infrastructure with Terraform (Google)
Building infrastructure with Terraform (Google)Building infrastructure with Terraform (Google)
Building infrastructure with Terraform (Google)Radek Simko
 
Mongo db washington dc 2014
Mongo db washington dc 2014Mongo db washington dc 2014
Mongo db washington dc 2014ikanow
 
PostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACIDPostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACIDOleg Bartunov
 
Of Nodes and Maps (Web Mapping with Drupal - Part II)
Of Nodes and Maps (Web Mapping with Drupal - Part II)Of Nodes and Maps (Web Mapping with Drupal - Part II)
Of Nodes and Maps (Web Mapping with Drupal - Part II)Ranel Padon
 

Similaire à Askayworkshop (20)

CHUG_presentation_Hope
CHUG_presentation_HopeCHUG_presentation_Hope
CHUG_presentation_Hope
 
CTOs Perspective on Adding Geospatial and Location-based Information
CTOs Perspective on Adding Geospatial and Location-based InformationCTOs Perspective on Adding Geospatial and Location-based Information
CTOs Perspective on Adding Geospatial and Location-based Information
 
NAPSG 2010 Fire/EMS Conference - Data Sharing Basics
NAPSG 2010 Fire/EMS Conference - Data Sharing BasicsNAPSG 2010 Fire/EMS Conference - Data Sharing Basics
NAPSG 2010 Fire/EMS Conference - Data Sharing Basics
 
Saving Money with Open Source GIS
Saving Money with Open Source GISSaving Money with Open Source GIS
Saving Money with Open Source GIS
 
Day 6 - PostGIS
Day 6 - PostGISDay 6 - PostGIS
Day 6 - PostGIS
 
R spatial presentation
R spatial presentationR spatial presentation
R spatial presentation
 
Edina Geoservices Review - Emma Diffley
Edina Geoservices Review - Emma DiffleyEdina Geoservices Review - Emma Diffley
Edina Geoservices Review - Emma Diffley
 
Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!Comparing XAML and HTML: FIGHT!
Comparing XAML and HTML: FIGHT!
 
What are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilitiesWhat are customers building with new Bing Maps capabilities
What are customers building with new Bing Maps capabilities
 
Geodaten & Drupal 7
Geodaten & Drupal 7Geodaten & Drupal 7
Geodaten & Drupal 7
 
WFS Tutorial OGC Interoperability Day - Toluca mexico - May 30 2013
WFS Tutorial   OGC Interoperability Day - Toluca mexico - May 30 2013WFS Tutorial   OGC Interoperability Day - Toluca mexico - May 30 2013
WFS Tutorial OGC Interoperability Day - Toluca mexico - May 30 2013
 
Geolocation and Mapping
Geolocation and MappingGeolocation and Mapping
Geolocation and Mapping
 
Global mapper tutorial Jimma University Ethiopia
Global mapper tutorial Jimma University EthiopiaGlobal mapper tutorial Jimma University Ethiopia
Global mapper tutorial Jimma University Ethiopia
 
Learning with counts
Learning with countsLearning with counts
Learning with counts
 
Agi08 Jeremy Morley
Agi08 Jeremy MorleyAgi08 Jeremy Morley
Agi08 Jeremy Morley
 
Drupal and the GeoSpatial Web
Drupal and the GeoSpatial WebDrupal and the GeoSpatial Web
Drupal and the GeoSpatial Web
 
Building infrastructure with Terraform (Google)
Building infrastructure with Terraform (Google)Building infrastructure with Terraform (Google)
Building infrastructure with Terraform (Google)
 
Mongo db washington dc 2014
Mongo db washington dc 2014Mongo db washington dc 2014
Mongo db washington dc 2014
 
PostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACIDPostgreSQL 9.4: NoSQL on ACID
PostgreSQL 9.4: NoSQL on ACID
 
Of Nodes and Maps (Web Mapping with Drupal - Part II)
Of Nodes and Maps (Web Mapping with Drupal - Part II)Of Nodes and Maps (Web Mapping with Drupal - Part II)
Of Nodes and Maps (Web Mapping with Drupal - Part II)
 

Plus de sconnin

RRLC Workshop
RRLC WorkshopRRLC Workshop
RRLC Workshopsconnin
 
Berea visual literacy
Berea visual literacyBerea visual literacy
Berea visual literacysconnin
 
Data graphics - CAMP
Data graphics - CAMPData graphics - CAMP
Data graphics - CAMPsconnin
 
Newest visual literacy
Newest  visual literacyNewest  visual literacy
Newest visual literacysconnin
 
Critical thinking with data
Critical thinking with dataCritical thinking with data
Critical thinking with datasconnin
 
New visual literacy
New visual literacyNew visual literacy
New visual literacysconnin
 

Plus de sconnin (8)

UWEX P
UWEX PUWEX P
UWEX P
 
RRLC Workshop
RRLC WorkshopRRLC Workshop
RRLC Workshop
 
Berea visual literacy
Berea visual literacyBerea visual literacy
Berea visual literacy
 
Data graphics - CAMP
Data graphics - CAMPData graphics - CAMP
Data graphics - CAMP
 
Newest visual literacy
Newest  visual literacyNewest  visual literacy
Newest visual literacy
 
Critical thinking with data
Critical thinking with dataCritical thinking with data
Critical thinking with data
 
New visual literacy
New visual literacyNew visual literacy
New visual literacy
 
AUGE
AUGEAUGE
AUGE
 

Dernier

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 

Dernier (20)

Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Askayworkshop

  • 1. Mapping for Sustainability Google Mapping Workshop http://tr.im/sustain_workshop Sean Askay
  • 2. Geometries Points, Lines, Polygons: • Clickable • Altitude Modes (clamped, relative, absolute) • Extruded / Tessellated / Styling • Multi-Geometries 3D Models: • Sketchup / Collada • Not clickable (but can combined w/ multigeometry) Ground Overlays: • Latlong box or quad-point tie-down • Altitude modes • Super Overlays Photo Overlays & Screen Overlays: • Immersive Panoramas • On-Screen Legends Interactive KML Sampler
  • 3. Working with large datasets Tiling Raster Data
  • 4. Working with large datasets Regionating Vector Data
  • 5. Working with GIS Data Free, cheap and easy tools: • shp2kml (vector) • kml2shp online (vector) Free but complex tools: • gdal & ogr (raster / vector: prog. libraries & binary tools) * • ogr2gui (vector: standalone win/os X) • MapTiler (raster: standalone OS X) * • Regionator (raster / vector: python library) Commercial tools: • Arc2Earth (ArcGIS plugin) - $300 * • SuperOverlay (raster) - $20/35/90 * • KMLer - (ArcGIS plugin) $20/35/50 • kml2kml - (standalone) $50/95/195 * • shape2earth - (standalone) $30 Reviews & info at: freegeographytools.com * - performs tiling / regionation Don't use Google Earth Pro to import vector data!
  • 7. Charts API: bar chart http://chart.apis.google.com/chart? cht=bhs (bar chart) &chs=400x225 (dimensions) &chd=t:10,50,60,80,40|50,60,100,40,20 (data) &chco=4d89f9,c6d9fd (colors) &chbh=20 (bar width) test link code.google.com/p/google-chartwrapper/
  • 8. Create maps without coding Create in Google Earth: • Easy, but not scalable • Earth User's Guide Google My Maps: • Easy to use / Collaborative • Public vs. Unlisted • Embedding / • KML & view in Earth • User's Guide • YouTube video Spreadsheet Mapper: • 400 point placemarks • 6 HTML templates • Collaborative • Read Tutorial Google Earth Outreach Tutorials: earth.google.com/outreach
  • 9. f_in = open('data.csv', 'r') f_out = open('data.kml', 'w') f_out.write('<Document>') for row in f_in: name, lat, lng = row.strip().split(',') kml = ''' <Placemark> <name>%s</name> <Point> <coordinates>%s,%s</coordinates> </Point> </Placemark>''' % (name, lng, lat) f_out.write(kml) f_out.write('</Document>') Google Confidential and Proprietary User's Guide,36.2,-84.4 Coal River Mountain,37.9,-81.4 Gauley Mountain,38.1,-81.1 Blair Mountain,37.8,-81.8 Huckleberry Ridge,37.0,-83.3 Creating KML with python
  • 10. KML for programmers code.google.com/apis/kml • KML Reference • Developers's Guide: Touring, time animation, extendedData, etc. • Articles: o CSV -> KML with python - link o PHP & MySQL -> KML - link • Geo Developers Blog • KML Developer Support Group • KML supported by Google Maps
  • 12. ExtendedData + BalloonStyle <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>Data+BalloonStyle</name> <Style id="golf-balloon-style"> <BalloonStyle> <text> <![CDATA[ This is $[name] This is hole $[holeNumber] The par for this hole is $[holePar] The yardage is $[holeYardage] ]]> </text> </BalloonStyle> </Style> <Placemark> <name>Club house</name> <styleUrl>#golf-balloon-style</styleUrl> <ExtendedData> <Data name="holeNumber"> <value>1</value> </Data> <Data name="holeYardage"> <value>234</value> </Data> <Data name="holePar"> <value>4</value> </Data> </ExtendedData> <Point> <coordinates>-111.956,33.5043</coordinates> </Point> </Placemark> </Document> </kml>
  • 13. Easy Map Embedding Embed Google My Maps: • Create your map, click "Link" at upper right • Choose URL or HTML embed code • Tutorial Import your KML into My Maps: • Create new map, click on "Import" • Choose your GeoRSS or KML file Embed Google Earth & KML file: • Embedded KML Gadget: tr.im/embedkml Embed Google Earth & Tour file: • Embedded Tour Gadget: tr.im/embedtour
  • 14. Embedding Google Maps API <script src="http://maps.google.com/maps?file=api&amp;v=2&amp; key= YOURAPIKEY" type="text/javascript"></script> <script type="text/javascript"> var map; var geoXml; function init() { if (GBrowserIsCompatible()) { geoXml = new GGeoXml("http://path/to/your.kml"); map = new GMap2(document.getElementById("map_canvas")); map.addOverlay(geoXml); } } </script> ... <body onload="init()"> <div id="map_canvas"></div> ... code.google.com/apis/maps
  • 15. <script src="http://www.google.com/jsapi?key=YOURAPIKEY"></script> <script> google.load('earth', '1'); var ge = null; function init() { google.earth.createInstance('map3d', initCallback, failureCallback); } function initCallback(pluginInstance) { pluginInstance.getWindow().setVisibility(true); addKmlFromUrl('http://path/to/your.kml'); } function addKmlFromUrl(kmlUrl) { var link = ge.createLink(''); link.setHref(kmlUrl); var networkLink = ge.createNetworkLink(''); networkLink.setLink(link); ge.getFeatures().appendChild(networkLink); } </script> .... <body onload="init()"> <div id="map3d"></div> 3... Embedding Google Earth Plugin/API code.google.com/apis/earth
  • 16. Google Confidential and Proprietary Resources: • NPO Intro to GMapping • Google My Maps • Google Earth • Google Maps API • Google Earth API • KML Reference More Examples: • Google Earth Gallery • Outreach Showcase tr.im/map4npo (TechSoup) maps.google.com > "My Maps" earth.google.com code.google.com/apis/maps code.google.com/apis/earth code.google.com/apis/kml earth.google.com > "Gallery" earth.google.com/outreach > "Showcase"
  • 17. Links to examples: • ilovemountains.org & "Global Awareness" in Google Earth • NAIL: mountainresource.org/nail • Conservation Solutions for Renewable Energy • Crisis in Darfur: at ushmm.org & "Global Awareness" Layer • Geo-Thermal Energy Potential: google.org/egs • Oil Imports Map: move.rmi.org More Mapping examples: • Google Earth Outreach Showcase • Google Earth Gallery • Google LatLong blog • Google Earth blog • OgleEarth blog

Notes de l'éditeur

  1. As you have seen from the keynote API traffic is increasing steadily We are now getting roughly 1 billion hits per day across our APIs So increasingly we have users using our data in other places than google.com
  2. As you have seen from the keynote API traffic is increasing steadily We are now getting roughly 1 billion hits per day across our APIs So increasingly we have users using our data in other places than google.com
  3. As you have seen from the keynote API traffic is increasing steadily We are now getting roughly 1 billion hits per day across our APIs So increasingly we have users using our data in other places than google.com
  4. As you have seen from the keynote API traffic is increasing steadily We are now getting roughly 1 billion hits per day across our APIs So increasingly we have users using our data in other places than google.com