Complete Methodology To Create WEBGIS Using Free and Open Source Tool: Opengeo Suite
Complete Methodology To Create WEBGIS Using Free and Open Source Tool: Opengeo Suite
Complete Methodology To Create WEBGIS Using Free and Open Source Tool: Opengeo Suite
net/publication/306111829
Complete methodology to create WEBGIS using Free and Open Source tool:
OPENGEO SUITE
CITATIONS READS
0 4,514
4 authors:
Some of the authors of this publication are also working on these related projects:
Creation of Digital Database of Rural Drinking Water Supply Sources (RWSS) in Punjab View project
All content following this page was uploaded by Harpinder Singh on 16 August 2016.
Geospatial
Science
COMPLETE METHODOLOGY TO CREATE WEB-
GIS USING FREE AND OPEN SOURCE TOOL:
OPENGEO SUITE
Sagar Taneja*, Dheeraj Gambhir, Harpinder Singh and Amardeep Singh
Punjab Remote Sensing Centre, Ludhiana -141001, India (* [email protected])
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ABSTRACT: Online and web based dissemination of geo-spatial data is gaining a lot of popularity today. A Web-GIS
(Geographic Information Systems) application provides easy access to GIS data to a large number of people. This Study
reviews the method to develop a Web-GIS Application using OpenGeo Suite. OpenGeo Suite is a complete geospatial
platform having customizable GIS tools which are used to publish GIS data on the web. OpenGeo Suite contains
GeoServer, PostgreSQL and a GXP template along with various tools to develop a Web-GIS application.
2. OBJECTIVES: Objective of this study is to create a web based GIS application having basic functionalities like
Pan, Zoom, Identify, Measure, Legend, Query etc, using OpenGeo Suite which is a free and open source software.
TOOLS USED: Free edition of OpenGeo Suite 4.6, PostgreSQL 9.4 and JDK8-u5
Install the Java Development Kit (JDK) downloaded from [1]. JDK is required to run and develop Java
application on the computer system.
Install the OpenGeo Suite package downloaded from [2].
Refer [3] for the installation process. While installation enable/check the Dev Tools component.
Open „Postgis Shape file Import/Export Manager‟ and establish a connection by clicking „View
connection details‟ and provide the connection parameters like Username, Password, Database, Server.
Usually the values will be, Host= „localhost‟ and Port=‟5433‟.
Browse Shape file using „Add File‟ button and click on Import button.
3.4 APPLICATION DEVELOPMENT WITH SDK:Create a Web-GIS application using OpenGeo Suite SDK with
help of following commands in windows command prompt. These commands create a basic application (template)
and further plugins can be added to it.
Now run the basic start-up Web-GIS application (FIG.I) in browser using URL: http://localhost:9080.
3.5 ADDING LAYERS: Open the file app.js (in the path /to/Myapp/src/app/) and edit the “map and layers” section.
Replace the layer „name: “usa:states”‟ with the desired layer source in GeoServer with workgroup name and layer
name like „name:”Workgroup_Name:Layer_Name”‟.
Preview the added layer in the application (in browser). To zoom at a particular location on the added layer by
default, change the „center‟ points in map section and zoom level can also be increased or decreased by editing the
„zoom‟ property in map component of the same section.
Taneja, et. al./Geospatial Science, Vol.2, No. 1 13
* @require plugins/Legend.js .
Also, add the code snippet in the „tools‟ section of the app.js file.
{
ptype: "gxp_legend",
outputTarget: "legendpanel"
}
In the app.js file, replace the code of the westpanel block with the code given below:
Code before:
{
id: "westpanel",
xtype: "container",
layout: "fit",
region: "west",
width: 200
}
Code after:
{
id: "westcontainer",
xtype: "container",
layout: "vbox",
region: "west",
width: 200,
defaults: {
width: "100%",
layout: "fit"
},
items: [{
title: "Layers",
id: "westpanel",
border: false,
flex: 1
}, {
id: "legendpanel",
height: 250
}]
}
After adding any plug-in the application, stop the debug process using the command prompt (Ctrl-C). Now again
debug the application with the command: suite-sdk debug /path/to/myapp
paging: true,
autoSetLayer: true
}
Add the following Query Form dependency at the top of the app.js file
* @require plugins/QueryForm.js.
Add the code snippet in the „tools‟ section of the app.js file.
ptype: "gxp_queryform",
featureManager: "states_manager",
outputConfig:{width: 360},
actionTarget: "map.tbar"
Add the following Measure tool dependency at the top of the app.js file
* @require plugins/Measure.js.
Add the code snippet in the „tools‟ section of the app.js file.
ptype: "gxp_measure",
actionTarget: "map.tbar"
3.13 PACKAGING AND DEPLOYING OF APPLICATION: After the application development, application can
be deployed. Use the following procedure for packaging and deploying of the application.
Debug the application.
Find the „.war‟ file at the destination location and then extract the .war file to the following path:
C:\Program Files\Boundless\OpenGeo\jetty\webapps\
4. RESULTS: The Web-GIS application created using the above methodology can be seen in Fig. II.
Run the application by using the following address in the browser.
http://localhost:9080/YourApplicationName
Taneja, et. al./Geospatial Science, Vol.2, No. 1 15
5. CONCLUSION: From, this study we can conclude that powerful Web-GIS applications can be created within a
short period of time, using free and open source tools.
REFERENCES:
[1] http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
[2] http://boundlessgeo.com/solutions/opengeo-suite/download/
[3] http://suite.opengeo.org/4.1/installation/windows/install.html
[4] http://www.enterprisedb.com/products-services-training/pgdownload#windows
[5] http://www.postgresqltutorial.com/install-postgresql/
[6] http://docs.geoserver.org/stable/en/user/gettingstarted/postgis-quickstart/index.html
[7] http://suite.opengeo.org/opengeo-docs/webapps/gxp/viewer/featureinfo.html
[8] http://suite.opengeo.org/opengeodocs/webapps/gxp/viewer/geocoder.html
[9] http://suite.opengeo.org/opengeo-docs/webapps/gxp/editor/featuregrid.html