0% found this document useful (0 votes)
22 views35 pages

11 - Introduction To GeoServer and GeoNetwork

Good
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views35 pages

11 - Introduction To GeoServer and GeoNetwork

Good
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

SDI Introduction to GeoServer

• GeoServer is a J2EE implementation of OpenGIS web


server specification.
• GeoServer can easily publish map data and allow users to
update, delete and insert feature data.
• GeoServer can easily and quickly share spatial geographic
information among users.
• GeoServer is a community open source project, which can
be downloaded directly through the community website.
Introduction to GeoServer

GeoServer is a J2EE implementation of OpenGIS web server


specification.
Main features of GeoServer

• Compatible with WMS and WFS features; support


PostgreSQL, Shapefile, ArcSDE, Oracle, VPF, MySQL,
MapInfo; support hundreds of projections; can output
network map to jpeg, gif, png, SVG, KML and other formats;
can run on any J2EE/Servlet-based container; embed
MapBuilder support AJAX map client OpenLayers;, in
addition to many other features.
Installation
There are many ways to install GeoServer on your system. This
section will discuss the various installation paths available.
Warning
• GeoServer requires a Java 11 or Java 17 environment (JRE) to
be installed on your system, available
from OpenJDK, Adoptium for Windows and macOS
installers, or provided by your OS distribution.
This must be done prior to installation.
Windows installer

• The Windows installer provides an easy way to set up


GeoServer on your system, as it requires no configuration
files to be edited or command line settings.
• Make sure you have a Java Runtime Environment (JRE)
installed on your system. GeoServer requires a Java
11 or Java 17 environment.
Windows installer
Windows installer
• After downloading, double-click the file to launch.
• At the Welcome screen, click Next.
Windows installer
• Read the License and click I Agree.
Select the directory of the installation, then click Next.
• Select the Start Menu directory name and location, then
click Next.
Select the directory of the installation,
then click Next.
Select the Start Menu directory name and
location, then click Next.
• Enter the username and password for administration of
GeoServer.
• GeoServer’s Web administration interface requires
authentication for management, and what is entered here will
become those administrator credentials.
• The defaults are admin / geoserver. It is recommended to
change these from the defaults. When finished, click Next.
• Enter the port that GeoServer will respond on. This affects the
location of the GeoServer Web administration interface, as well
as the endpoints of the GeoServer services such as Web Map
Service (WMS) and Web Feature Service (WFS). The default
port is 8080, though any valid and unused port will work. When
finished, click Next.
• If you installed GeoServer as a service, it is already running.
Otherwise, you can start GeoServer by going to the Start
Menu, and clicking Start GeoServer in the GeoServer
folder.
• Navigate to http://localhost:8080/geoserver (or wherever
you installed GeoServer) to access the GeoServer Web
administration interface.
• If you see the GeoServer Welcome page, then GeoServer is
successfully installed.
GeoNetwork

• GeoNetwork is a catalog application to manage spatially


referenced resources. It provides powerful metadata
editing and search functions as well as an interactive web
map viewer.
• It is currently used in numerous Spatial Data
Infrastructure initiatives across the world.
GeoNetwork

• GeoNetwork provides an easy to use web interface to search


geospatial data across multiple catalogs.
• The search provides full-text search as well as faceted search
on keywords, resource types, organizations, scale, … Users
can easily refine the search and quickly get to the records of
interest.
Installing GeoNetwork on
Windows

• GeoNetwork is an open-source cataloging


application for managing and publishing geospatial
metadata. Below is a step-by-step guide to install and
configure GeoNetwork on a Windows machine.
Installing GeoNetwork on
Windows

Prerequisites

1.Java Development Kit (JDK):


•GeoNetwork requires Java 11 or higher.
•Download from Oracle or OpenJDK.
•Ensure the JAVA_HOME environment variable is set.
2.Apache Tomcat (Optional):
•GeoNetwork can run as a standalone application or be deployed
in a servlet container like Apache Tomcat.
•Download Tomcat 9+ from Tomcat's official site
Installing GeoNetwork on
Windows

• PostgreSQL Database (Optional):


• GeoNetwork can use an embedded database or PostgreSQL for
better performance.
• Download PostgreSQL from PostgreSQL's official site.
Step-by-Step Installation

Step 1: Download GeoNetwork


1.Go to the GeoNetwork Releases page.
2.Download the latest stable version for your system (e.g.,
GeoNetwork ZIP package for Windows).
Step 2: Install GeoNetwork
1.Extract the ZIP Archive:
•Extract the downloaded GeoNetwork package to a directory
(e.g., C:\GeoNetwork).
2.Navigate to the Installation Directory:
•Open a terminal (Command Prompt or PowerShell).
•Go to the GeoNetwork directory: cd C:\GeoNetwork
Step-by-Step Installation
Run GeoNetwork:
•Start GeoNetwork by running the start.bat script
•start.bat
• This will start GeoNetwork's embedded Jetty server.
• Access GeoNetwork:
• Open a web browser and navigate to
http://localhost:8080/geonetwork

•The default username and password are:


•Username: admin
•Password: admin
Step-by-Step Installation

•If GeoNetwork doesn't start, ensure the JAVA_HOME environment


variable is set:
1.Go to Control Panel > System > Advanced System Settings >
Environment Variables.
2.Add a new system variable:
•Variable Name: JAVA_HOME
•Variable Value: Path to your JDK installation (e.g., C:\Program
Files\Java\jdk-11).
Step-by-Step Installation

Step 4: Configure Database (Optional)


1.Install PostgreSQL and create a new database (e.g., geonetwork).
2.Configure GeoNetwork to use PostgreSQL:
•Edit the config.xml file located
in C:\GeoNetwork\webapps\geonetwork\WEB-INF\config-db.
•Replace the embedded database configuration with PostgreSQL
settings:
Step-by-Step Installation

• <db type="postgresql">

<url>jdbc:postgresql://localhost:5432/geonetwork</url
>
• <user>your_db_user</user>
• <password>your_db_password</password>
• </db>
Restart GeoNetwork.
Step-by-Step Installation

Step 5: Test and Verify Installation


• Log in to the GeoNetwork interface.
• Add a sample metadata record to confirm the catalog
is functioning.
• Use the search interface to query records.
Optional: Deploy GeoNetwork on
Apache Tomcat
Deploy GeoNetwork on Apache
Tomcat

• Download and install Apache Tomcat.


• Place the GeoNetwork WAR file (geonetwork.war) in
the webapps directory of Tomcat.
• Start Tomcat and access GeoNetwork at
http://localhost:8080/geonetwork
QUESTIONS

You might also like