Thursday, December 7, 2017

How to Develop Interactive WebGIS system in 5 mins

WebGIS is one of the latest technologies in GIS to publish data, Due to complexity and and lack of knowledge about Web Programming always a difficult barrier for GIS personals.  With QGIS2Web plugin anyone can easily develop attractive Web page.


Step 1,

Open QGIS --> Plugin and then Install QGIS2Web



Step 2,

Add required layers to the QGIS



Step 3,

Go to Web in the Toolbar and select QGIS2Web



Step 4,

X on the required layers to be displayed  


Step 5,

Set Zoom level to the layers, make sure to keep minimum  zoom level at 1.   



Step 6,

This Web page allow users to perform address search, Hence X on Address search and, Appearance in important in Web Pages, Therefore select Collapsed or extended option to display layers. 


Step 7,

This Web page allows users to Geolocate their locations for that X on the Geolocate user, and X on the Highlight on hover and Select required attribute to be search in layer search. Example : District 



Step 8,

X on measure Tool to add measure tool to web page and select other required options.  


Step 9,

Select required folder to export web page and users can always view the preview of the web page by pressing update Preview button. 


Step 10,

Select export button to Export your web system,


Select required background map, Such as OSM, Thunderforest etc...




Your exported web page will automatically open in the default web browser or you can open it later by browsing to given folder. 



Step 11,

Once you open your web system in the browser, you have to allow your location (only if you selected Geolocate user option)




Select location option to check your location,





Step 12,

Users can On and Off layers and possible to search for the layers, (According to given layers search option, In this example I have given District name to be searched) 




Step 13,

You can user measure tool to measure distance,  




Monday, October 9, 2017

How to develop 3D models using Qgis2threejs plugin

Qgis2threejs is a plugin which developed for the Qgis to generate 3D and view over the web browser. three.js is a 3D library for Java.  Using this plugin users can  export Terrain data, image like orthomosaic etc.. or any other vector data in 3D format to browser.



Step 1,

Go to plugin and search for the Qgis2threejs and install the plugin.





Step 2,

Add DEM (either DTM or DSM) which you need as elevation model for your 3D output.



Step 3,

Add any-other layers as you required, here I have used orthomosaic image to overlay over the DTM.



Step 4,

Go to Web tab in the too bar and select Qgis2threejs,


Step 5,

Select coordinate system you required, you can change the map canvas size and other parameters also.



Step 6,

In DEM tab select your DEM as DEM layer, and select overlaying image as Layer Image or you can select any-other image files, and then browse to set path to output folder, finally RUN the tool. 


Step 7,




3D model will open in your web browser (your web browser must support WebGL). Press anywhere in the 3D model and you can see the  Coordinate of the location and the Elevation.


Step 8,

if you are interest in flood model or similar product you can use controllers in the Right hand side, 
in Layer option you can hide, remove the bottom or change the opacity level, and in custom plane you can select color to the plane and change the height according to your acquirement,






Tuesday, January 24, 2017

How to add spatial data to GeoServer

In this post we will learn how to add spatial data to the GeoServer.

 Following link will teach you how to download and install GeoServer.
http://effective-gis.blogspot.com/2016/06/geo-server.html

Step 1,
Run GeoServer


Step 2,

To add new data source first we have to create new "workspace" in the GeoServer, 



Click on the "Workspaces" and you can see existing workspaces. 

Step 3,

Click on the "Add New Workspace"


Step 4,

Assign any name as you wish for the workspace name and assign relevant name after the http://geoserver.org/       in "Namespace".



Step 5,

Then we can enable WFS, WCF,WMS services, and we can add the name, contact, e-mails etc... 



Step 6,

Press save button and you can see newly created workspace been added to the Workspaces



Step 7, 

After creating workspace we have to create store to add data, then click on "Add new store",



Step 8,

In this practical we are adding an ESRI shapefile, hence select ESRI shapefile option in the view,


Step 9,

Select created workspace to add new data from the drop down list,


Step 10,

Type name of the data source (you can give any name as your wish) and always better to give related description about the data,





Step 11,

Then press "Browse" to select the required shapefile to be added, then press save.



Step 12,

We have to publish the added data in-order to display in the server. Press "publish"



Step 13, 

Press "Data" tab and fill where necessary and we have to concern more on Coordinate system (SRS). we can select required coordinate system by clicking on "Find"button. 




  
Then click on click on "compute from data" to generate bounding box,



Step 14,

Then select "Publishing"  tab and fill required fields which is not mandatory in this stage. Once you finish press save.




Step 15, 

Newly created data layer will be displayed in "Layers".



Step 16,

Select "Layer Preview" to view the added data in GeoServer.




 Select OpenLayers option to view the data as an openlayer,


Click over the data layer to view the attributes.                                                                           

Click on "Toggle option toolbar " to add toolbar to the viewer. 

We can change the width and the height and many other options using toggle editor tool bar.      


Step 17,

We can download KML file directly from the GeoServer by clicking on the KML option.




Step 18,

We can download data in many formats from the GeoServer and in the next post we will learn how to connect to the GeoServer through Local host and from a different Network.