1 / 7

1 – Incorporating a Google Maps instance into your website

1 – Incorporating a Google Maps instance into your website. Sign up for a API key http://code.google.com/apis/maps/signup.html Good for one web directory Cut and paste the example snippet into a new HTML document Example: http://www.fsl.orst.edu/sdmg/googlemaps/index.html.

Sharon_Dale
Download Presentation

1 – Incorporating a Google Maps instance into your website

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1 – Incorporating a Google Maps instance into your website • Sign up for a API key • http://code.google.com/apis/maps/signup.html • Good for one web directory • Cut and paste the example snippet into a new HTML document • Example: http://www.fsl.orst.edu/sdmg/googlemaps/index.html

  2. 1 – Incorporating a Google Maps instance into your website (cont.) • Read the API documentation and customize • Resizing the map • Adding controls • Adding random points • Documentation intro: • http://code.google.com/apis/maps/documentation/introduction.html • Examples: • http://code.google.com/apis/maps/documentation/examples/

  3. 2 – Converting your imagery into tiles that can be used by GE and GM (using GDAL2Tiles) • gdal2tiles is a Python script written primarily by Klokan Petr Přidal as a Google Summer of Code (SoC) project • Incorporated as a sample script with the GDAL-OGR distribution • Program tiles an image into many pyramid layers and creates the Keyhole Markup Language (KML) to navigate seamlessly between layers • For more info: • http://wiki.osgeo.org/wiki/GDAL2Tiles_SoC_2007

  4. 2 – Converting your imagery into tiles that can be used by GE and GM (using GDAL2Tiles) (cont.) • Convert your imagery into an RGB image • This can be accomplished with GDAL tools like gdal_translate (format changing, clipping), gdal_warp (projection) and pct2rgb.py (palette-to-RGB) • Run gdal2tiles.py with –forcekml flag, e.g: • gdal2tiles.py –forcekml temp3.tif • Output is a hierarchical directory structure with clipped (128x128) images • Can be viewed in either Google Earth or Google Maps

  5. 3 – Creating ‘plot footprint’ KML from coordinate files • We needed a system of ‘plot screening’ – deciding which plots to use when modeling with GNN • We have screened in ArcMap with the 2005 NAIP, but context was sometimes hard to determine. • Because Google Earth has Oregon 2005 NAIP, we could screen in here as well • Needed to convert plot locations to KML

  6. 3 – Creating ‘plot footprint’ KML from coordinate files • KML reference: • http://code.google.com/apis/kml/ • Quick start guide: • http://code.google.com/apis/kml/documentation/kml_tut.html • Stack: • Python, GDAL-OGR, Genshi (*ML Processing Toolkit)

  7. 3 – Creating ‘plot footprint’ KML from coordinate files • Workflow: • Create points, subplots, pixel ‘footprints’ in native coordinate system • Project all coordinates from native system to WGS84 using OGR • In conjunction with a KML template, generate the KML for all plots using Genshi

More Related