IWS 3.0b Fact Sheet Connecting to Google Earth

advertisement
Image Web Server
Sheet 3.0b
July 2013
Connecting to Google Earth
Introduction
Entering Key words
ECW and JPEG2000 (JP2) images located on the Image
Web Server can be viewed in Google Earth.
To view a particular image of interest from DEPI’s IWS you
will need to edit the bold red text.
Simply create a KML text file which can be opened directly
by Google Earth. The KML file provides Google Earth with
the instructions on how and where to access image data as
well as access methods, geographic registration and
display information.
The first line of the red text refers to the location of the ECW
file on the IWS. Edit the path and file name to the image you
wish to view in Google Earth.
Note: Imagery loaded into Google Earth must be in a
Geographic coordinate system. (i.e Datum:GDA94 and
Projection: GEODETIC).
Secondly, the image bounding coordinates will need to be
added. To do this;

Open ArcGIS.

Add your image via IWS in the normal way.

Right click on the ECW or JP2 image in the layers table
of contents and select properties.

Select the source tab.

Scroll down to where it describes Extent.
The example provided below will zoom to the State of
Victoria (see <LookAt>) and display an image from DEPI’s
IWS (see <Url>) when opened in Google Earth.

Copy and paste Top, Left, Right and Bottom coordinates
into the KML file where ;
MAXBBOX=(left),(bottom),(right),(top)
Google Earth accesses image requests via a WMS
‘reflector’ (php) script, which is supported by IWS. This
script translates the image requests from Google Earth to a
WMS interface.
The blue text may be edited but is not compulsory.
Creating a KML file
To create a KML file either copy and paste an existing file
or type the syntax below into a text browser (eg. Wordpad).
For more information on KML code please refer to;
https://developers.google.com/kml/documentation/kml_tut
Under <NetworkLink>, edit <name> and <description> and
save the KML file.
Now open the KML file in Google Earth (via the File > Open
menu options) and the image should display.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Folder>
<name>DEPI Imagery</name>
<visibility>0</visibility>
<open>1</open>
<LookAt>
<longitude>145.00000</longitude>
<latitude>-37.00000</latitude>
<range>1000000</range>
<tilt>4.282479420791605e-010</tilt>
<heading>0.9994548461649331</heading>
</LookAt>
<NetworkLink>
<name>VICMAP-Aerial 2006</name>
<description>Melbourne Orthophoto mosaic captured 2005-6</description>
<visibility>0</visibility>
<Url>
<href>http://image1/AerialsExpress-wms-reflector.php?
&LAYERS=/sii-images/aerial/melbourne_2005dec11_air_vis_35cm_dd94.ecw
&MAXBBOX=144.1783006,-38.5028987,145.7825991,-37.4846752</href>
<viewRefreshMode>onStop</viewRefreshMode>
<viewRefreshTime>1</viewRefreshTime>
</Url>
</NetworkLink>
</Folder>
</kml>
Image Web Server Contact Details
The Information Services Division (DEPI) is managing the IWS.
Please address any feedback or queries to
GIS.Helpdesk@depi.vic.gov.au
Information Services Division (DEPI) produced this document, 2013. Refer to back for contact details.
The information contained within this document is not to be used for purposes other than those explicitly
stated as being work completed by or on behalf of DEPI. DEPI will not be held accountable for the stated
information being used outside of the Departments’ stated needs.
Download