M-File Help: EarthView View code for EarthView

EarthView

Image from Google maps

A concrete subclass of ImageSource that acquires images from Google maps.

Methods

grab Grab a frame from Google maps
size Size of image
close Close the image source
char Convert the object parameters to human readable string

Examples

Create an EarthView camera

ev = EarthView();

Zoom into QUT campus in Brisbane

ev.grab(-27.475722,153.0285, 17);

Show aerial view of Brisbane in satellite and map view

ev.grab('brisbane', 14)
ev.grab('brisbane', 14, 'map')

Notes

Author

Peter Corke, with some lines of code from from get_google_map by Val Schmidt.

See also

ImageSource


EarthView.EarthView

Create EarthView object

ev = EarthView(options)

Options

'satellite' Retrieve satellite image
'map' Retrieve map image
'hybrid' Retrieve satellite image with map overlay
'scale' Google map scale (default 18)
'width', W Set image width to W (default 640)
'height', H Set image height to H (default 640)
'key', S The Google maps key string

see also options for ImageSource.

Notes

Notes

See also

ImageSource, EarthView.grab


EarthView.char

Convert to string

EV.char() is a string representing the state of the EarthView object in human readable form.

See also

EarthView.display


EarthView.grab

Grab an aerial image

im = EV.grab(lat, long, options) is an image of the Earth centred at the geographic coordinate (lat, long).

im = EarthView.grab(lat, long, zoom, options) as above with the specified zoom. zoom is an integer between 1 (zoom right out) to a maximum of 18-20 depending on where in the world you are looking.

[im,E,n] = EarthView.grab(lat, long, options) as above but also returns the estimated easting E and northing n. E and n are both matrices, the same size as im, whose corresponding elements are the easting and northing are the coordinates of the pixel.

[im,E,n] = EarthView.grab(name, options) as above but uses a geocoding web site to resolve the name to a location.

Options

'satellite' Retrieve satellite image
'map' Retrieve map image
'hybrid' Retrieve satellite image with map overlay
'scale' Google map scale (default 18)

Examples

Zoom into QUT campus in Brisbane

ev.grab(-27.475722,153.0285, 17);

Show aerial view of Brisbane in satellite and map view

ev.grab('brisbane', 14)
ev.grab('brisbane', 14, 'map')

Notes


 

© 1990-2012 Peter Corke.