### Install Git (System Default) - Bash Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_Ubuntu.md Installs the default version of Git available in the Ubuntu repositories using apt-get. This is a straightforward installation for basic Git functionality. ```bash sudo apt-get install git ``` -------------------------------- ### Install Open GEE Server Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Installs the Open GEE Server component. Similar to Fusion installation, this command navigates to the installer directory and executes the server installation script. It supports default or custom staging directories and provides help via the '-h' flag. ```bash cd earth_enterprise/src/installer sudo ./install_server.sh ``` -------------------------------- ### Install Open GEE Fusion Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Installs the Open GEE Fusion component. The command navigates to the installer directory and executes the install script. It can use a default staging directory or a user-specified location. Running with '-h' provides help on available customizations. ```bash cd earth_enterprise/src/installer sudo ./install_fusion.sh ``` -------------------------------- ### Install Git (Latest Version) - Bash Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_Ubuntu.md Installs the latest version of Git by adding a Personal Package Archive (PPA) and then updating the package list before installing Git. This ensures you have the most recent features and bug fixes. ```bash sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git ``` -------------------------------- ### Prepare Tutorial Files for Open GEE Build Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Navigates to the tutorial directory within the Open GEE source code and executes a script to download necessary tutorial files. This is an optional step before building the install package. ```bash cd earthenterprise/earth_enterprise/tutorial/FusionTutorial sudo ./download_tutorial.sh ``` -------------------------------- ### Start GEE Server Services (Bash) Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/docs/landing_page/previous_fusion_versions/4.4/fusion/html/install/cl_install.html This command sequence starts the Google Earth Fusion and GEE Server services. It's used after installation or if the services were manually stopped. Root privileges are necessary. ```bash /etc/init.d/gefusion start /etc/init.d/geserver start ``` -------------------------------- ### Install System Default Git Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_RHEL_CentOS.md Installs the system's default Git package using YUM. This is an alternative to installing from IUS repositories and typically provides an older version of Git. ```bash sudo yum install -y git ``` -------------------------------- ### Install Git from IUS Repositories for RHEL/CentOS 7 Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_RHEL_CentOS.md Installs a recent version of Git (git224) from the IUS repositories on RHEL 7 and CentOS 7 systems. This provides a newer Git version than the default distribution packages. ```bash sudo yum install -y https://repo.ius.io/ius-release-el7.rpm sudo yum install -y git224 ``` -------------------------------- ### Example GEE Server Access Log Entries Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/raw_sources/answer/troubleshooting/troubleshootConnectionServer.rst.txt These are example log entries that indicate a successful connection and data retrieval from the GEE Server by the Google Earth EC client. Successful requests typically start with a GET for 'dbRoot' followed by 'flatfile' requests. ```log 192.168.1.199 - - [08/Feb/2016:09:10:25 -0800] "GET /3d/dbRoot.v5?hl=en&gl=us&output=proto&cv=7.1.5.1557&ct=ec HTTP/1.1" 200 4512 "-" "GoogleEarth/7.1.5.1557(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:EC;type:default)" 192.168.1.199 - - [08/Feb/2016:09:10:27 -0800] "GET /3d/dbRoot.v5?db=tm&hl=en&gl=us&output=proto&cv=7.1.5.1557&ct=ec HTTP/1.1" 200 1161 "-" "GoogleEarth/7.1.5.1557(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:EC;type:default)" 192.168.1.199 - - [08/Feb/2016:09:10:27 -0800] "GET /3d/flatfile?lf-0-icons/help_l.png&h=32 HTTP/1.1" 200 426 "-" "GoogleEarth/7.1.5.1557(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:EC;type:default)" ``` -------------------------------- ### Globe Building Process with Command Line Tools Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/raw_sources/answer/portable/portableGlobeServer5_2.rst.txt Illustrates the sequence of command-line tools used to build a globe. This process involves converting polygons to quadtree nodes, rewriting the database root, grabbing KML files, and finally building the portable globe. ```bash Building LevelFive ... No description given. Added globe directory: /tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive Ok Saved polygon to /tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive/earth/polygon.kml Convert polygon to quadtree nodes ... Executing: /opt/google/bin/gepolygontoqtnodes --qt_nodes_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/qt_nodes.txt --kml_polygon_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive/earth/polygon.kml --max_level=18 0 qtnodes Ok Rewrite dbroot ... Executing: /opt/google/bin/gerewritedbroot --source=http://earth.localdomain/default_ge/ --icon_directory=/tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive/icons --dbroot_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/dbroot.v5 --search_server=localhost --search_port=9335 --kml_server=localhost --kml_port=9335 --kml_map_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/kml_map.txt 8 icons Executing: cp /tmp/globe_builder/LevelFive_4282_1287494655.545115/dbroot.v5 /tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive/dbroot/dbroot_localhost_9335 Ok Grab kml files ... Executing: /opt/google/bin/gekmlgrabber --kml_map_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/kml_map.txt --output_directory=/tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive/kml --source=http://earth.localdomain/default_ge/ --kml_server=localhost --kml_port=9335 0 kml files Ok Build globe ... Executing: /opt/google/bin/geportableglobebuilder --source=http://earth.localdomain/default_ge/ --default_level=5 --max_level=5 --hires_qt_nodes_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/qt_nodes.txt --metadata_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/earth/metadata.json --globe_directory=/tmp/globe_builder/LevelFive_4282_1287494655.545115/LevelFive --dbroot_file=/tmp/globe_builder/LevelFive_4282_1287494655.545115/dbroot.v5 > /tmp/globe_builder/LevelFive_4282_1287494655.545115/packet_info.txt & Ok ``` -------------------------------- ### Create a Mapplet with Map and Marker (XML/JavaScript) Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/docs/landing_page/previous_fusion_versions/4.4/apis/maps_api/apis/maps/documentation/mapplets/basics.html This example demonstrates creating a Mapplet that displays a map, centers it on a specific location, adds a marker, and opens an info window with a 'Hello World!' message. It requires the 'sharedmap' feature and uses JavaScript for map interactions. ```xml Hello World! ]]> ``` -------------------------------- ### Copy Example Configuration File Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/raw_sources/answer/geeServerConfigAndSecurity/setupHTTPS.rst.txt This command copies a sample location configuration file from the examples folder to the virtual servers directory. This file will be further edited to configure the HTTPS virtual server. ```bash cp /opt/google/share/gehttpd/examples/ /opt/google/gehttpd/conf.d/virtual_servers/https_mymap.location ``` -------------------------------- ### Build Documentation with Make Source: https://github.com/google/earthenterprise/wiki/Development:-Release-Process This snippet shows the commands to clean the build directory and then build the HTML documentation. It assumes a standard make-based build system. ```bash $ rm -rf build $ make html ``` -------------------------------- ### Configuring a New Tutorial Asset Root and Source Volume Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/sources/answer/fusionTutorial/confTutorialWS.rst.txt Command to create a new asset root and source volume for a tutorial user. This involves specifying a unique path for the user's assets and linking it to the tutorial source directory. ```bash geconfigureassetroot --new --assetroot --chown /username/assets # Follow prompts to create a new source volume, entering # /opt/google/share/tutorials/fusion when asked for the directory. ``` -------------------------------- ### Run Google Earth Fusion Installer (Bash) Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/docs/landing_page/previous_fusion_versions/4.4/fusion/html/install/cl_install.html This command executes the Google Earth Fusion installation script. It can be run directly if the DVD has execute privileges, or with 'sh' if not. The script guides the user through the installation process. ```bash ./InstallGEFusion.sh ``` ```bash sh ./InstallGEFusion.sh ``` -------------------------------- ### Create a Basic Gadget Spec (XML) Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/docs/landing_page/previous_fusion_versions/4.4/apis/maps_api/apis/maps/documentation/mapplets/basics.html This XML defines a simple gadget specification for a 'Hello World' display. It includes metadata like title, description, and author, and specifies HTML content to be rendered. This serves as a foundation for more complex Mapplets. ```xml Hello World! ]]> ``` -------------------------------- ### Install Git LFS Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_RHEL_CentOS.md Installs Git Large File Storage (LFS) on all supported platforms. This involves adding the packagecloud repository for Git LFS and then installing the git-lfs package. ```bash curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh \ | sudo bash sudo yum install -y git-lfs ``` -------------------------------- ### Generate Makefile using qmake Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/src/fusion/fusionui/notes.txt This command generates a Makefile for the project using qmake. It assumes a standard qmake environment is available. ```bash qmake -o Makefile fusion.pro ``` -------------------------------- ### Install FIPS Packages Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_RHEL_CentOS.md Installs the necessary `dracut-fips-aesni` and `dracut-fips` packages, which provide FIPS-compliant cryptographic modules and utilities for the initramfs. ```bash $ sudo yum -y install dracut-fips-aesni dracut-fips ``` -------------------------------- ### Enable Repositories for CentOS 6 Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Enables the devtools-2 repository and installs the EPEL repository on CentOS 6 systems. This involves downloading a repository configuration file and then installing the EPEL release package. ```bash sudo wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo sudo yum install -y epel-release ``` -------------------------------- ### Configure Tutorial Asset Root (Shell) Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/answer/fusionTutorial/setup.html This command sets the tutorial asset root directory for Google Earth Enterprise Fusion. Users need to replace '/username/assets' with their actual tutorial asset root path. This is crucial for separating tutorial data from production data. ```shell geselectassetroot --assetroot /username/assets ``` -------------------------------- ### Install PIL.Image Module on Ubuntu Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Installs the Python Imaging Library (PIL) module, specifically the Image component, on Ubuntu systems using the apt-get package manager. This is a runtime requirement for Open GEE. ```bash sudo apt-get install python-pil ``` -------------------------------- ### Run Portable Server on Windows Source: https://github.com/google/earthenterprise/wiki/Portable-Server Starts the Portable Server on Windows by executing its main Python script. Configuration can be adjusted via .cfg files. ```bash cd portableserver-windows-5.1.3-20170412\server\ python portable_server.py ``` -------------------------------- ### Install Git LFS - Bash Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_Ubuntu.md Installs Git Large File Storage (LFS) by downloading and executing a script from packagecloud.io, followed by installing the git-lfs package. This is essential for managing large binary files in Git repositories. ```bash curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash sudo apt-get install git-lfs ``` -------------------------------- ### Install a Mapplet Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/docs/landing_page/previous_fusion_versions/4.4/apis/maps_api/apis/maps/documentation/mapplets/guide.html Instructions on how to install a Mapplet by adding it via URL from the Google Maps Directory. ```APIDOC ## Install a Mapplet ### Description Install a Mapplet by navigating to the Google Maps Directory, clicking 'Add by URL', entering the Mapplet's URL, and clicking 'Add'. The Mapplet will then appear under the 'My Maps' tab. ### Method GET ### Endpoint `/gadgets/directory?synd=mpl` ### Parameters #### Query Parameters - **synd** (string) - Required - Specifies the syndication type, typically 'mpl' for Mapplets. #### Request Body None ### Request Example None ### Response #### Success Response (200) - **HTML Page** - The Google Maps Directory page where users can add Mapplets. #### Response Example None ``` -------------------------------- ### Enable Repositories for RHEL 6 Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Enables specific Red Hat Enterprise Linux 6 repositories and installs the EPEL repository. This includes commands for workstation, server, and optional repositories, followed by the EPEL installation. ```bash # For RHEL 6 Workstation: sudo subscription-manager repos --enable=rhel-x86_64-workstation-dts-2 # For RHEL 6 Server: sudo subscription-manager repos --enable=rhel-server-dts2-6-rpms # For all RHEL 6 Editions: sudo subscription-manager repos --enable=rhel-6-server-optional-rpms sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm ``` -------------------------------- ### Enable EPEL Repository for RHEL 7 Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Installs the Extra Packages for Enterprise Linux (EPEL) repository for RHEL 7 systems by downloading and installing the RPM package. This repository is necessary for accessing additional software packages. ```bash sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ``` -------------------------------- ### Example GetCapabilities Response (XML) Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/raw_sources/answer/geeServerAdmin/makeWMSRequests.rst.txt An example XML response to a GetCapabilities request. This output details the WMS service, supported image formats (e.g., image/png, image/jpeg), layers, spatial projections (e.g., EPSG:4326), and bounding box information. ```xml OGC:WMS Google Earth WMS service. text/xml image/png image/jpeg application/vnd.ogc.se_xml Google Earth WMS service. Earth Imagery EPSG:4326 ``` -------------------------------- ### Enable EPEL Repository for CentOS 7 Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Installs the Extra Packages for Enterprise Linux (EPEL) repository on CentOS 7 systems, which provides additional software packages not included in the default repositories. This is a prerequisite for installing certain development tools. ```bash sudo yum install epel-release ``` -------------------------------- ### Install Required Packages - Bash Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/BUILD_Ubuntu.md Installs a comprehensive list of development packages required for building Google Earth Enterprise on Ubuntu. This command uses apt-get to install numerous libraries and tools, including compilers, build utilities, and specific development headers. ```bash sudo apt-get install \ alien autoconf automake bison++ bisonc++ cmake doxygen dpkg \ flex freeglut3-dev g++ gcc gettext \ libboost-all-dev libc6 libc6-dev libcap-dev libfreetype6 libfreetype6-dev \ libgdbm-dev libgeos-dev libgeos++-dev libgif-dev libgtest-dev \ libjpeg-dev libjpeg8-dev libmng-dev libogdi3.2-dev \ libperl4-corelibs-perl libpng12-0 libpng12-dev libpq-dev libproj-dev \ libstdc++6 libtool libtiff-dev libgtk2.0-dev libglib2.0-dev \ libx11-dev libxcursor-dev libxerces-c-dev libxft-dev libxinerama-dev \ libxml2-dev libxml2-utils libxmu-dev libxrandr-dev libyaml-cpp-dev \ openssl libpcre3 libpcre3-dev \ python-dev python-imaging python-psycopg2 \ python-setuptools python2.7 python2.7-dev python-git \ scons shunit2 xorg-dev zlib1g-dev ``` -------------------------------- ### Select Tutorial Asset Root using geselectassetroot Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/answer/fusionTutorial/confTutorialWS.html This command allows users to select a specific asset root for tutorial data. It is essential when multiple users share a workstation or when switching between tutorial and production environments. Ensure the system manager is stopped before execution and restarted afterward. ```bash /etc/init.d/gefusion stop geselectassetroot --assetroot /username/assets /etc/init.d/gefusion start ``` -------------------------------- ### Install PIL.Image Module on Red Hat Source: https://github.com/google/earthenterprise/wiki/Install-Fusion-or-Earth-Server Installs the Python Imaging Library (PIL) module, specifically the Image component, on Red Hat-based systems (like CentOS or RHEL) using the yum package manager. This is a runtime requirement for Open GEE. ```bash sudo yum install python-imaging ``` -------------------------------- ### Install Python Packages with Pip Source: https://github.com/google/earthenterprise/wiki/Portable-Server Installs necessary Python packages 'pexpect' and 'tornado' using pip. This is a prerequisite for building and running the Portable Server. ```bash cd \Python27\Scripts pip install pexpect tornado ``` -------------------------------- ### Install Python Library using pip Source: https://github.com/google/earthenterprise/blob/master/docs/geedocs/5.3.8/answer/developers/addPythonLibToGEPython.html Demonstrates the command-line usage of 'pip' to install a Python library. This is a common method for adding external packages to a Python environment, including the GEE Python setup. Ensure you have 'pip' installed and consider any dependencies the library might have. ```bash pip install ``` -------------------------------- ### Copyright Constructor Example in ActionScript Source: https://github.com/google/earthenterprise/blob/master/earth_enterprise/docs/landing_page/previous_fusion_versions/4.4/apis/maps_api/apis/maps/documentation/flash/reference.html Provides an example of constructing Copyright instances. It shows how to define copyright information for different geographical regions and zoom levels, including supplemental copyrights. This involves specifying an ID, bounds, minimum zoom, text, and optionally maximum zoom and supplemental status. ```actionscript // Create two Copyright instances. Company A's data is used // throughout all zoom levels over a region spanning 10 degrees of latitude // and 40 degrees of longitude. Company B's data supplements this over a // much smaller region at zoom levels 14 and higher. var regionCopyright:Copyright = new Copyright( 'my_tileset_0', new LatLngBounds(new LatLng(10, 20), new LatLng(20, 60)), 'Company A', 0); var cityCopyright:Copyright = new Copyright( 'my_tileset_1', new LatLngBounds(new LatLng(12, 20), new LatLng(13, 21)), 'Company B', 14, true); ```