Tuesday, January 5, 2016

Automated Volume Calculation from Spot Elevation Point Data

So many GIS and Engineering Design Software facilitating Volume Calculation
 include Open and Free Source Software also. However Most of that user should follow some steps of Mouse Clicks then its need User interaction. But when you try to Make automated using Sever and Client its Can not help you. that time you want to write up a sophisticated code block for that part. Its time consuming and Error prone also.

In this Place the SAGA GIS will Help you. its an Open Source Software from SourceFrog. Further its a command prompt software. So we can Write up our Steps in a *.bat file and Execute that on Sever through php Code block.  

The Sample command Prompt Code for Volume Calculation:

@ECHO OFF

REM SET SAGA_MLB=C:\SAGA\Modules
REM SET PATH=%PATH%;C:\SAGA

REM Tool: Convert Table to Points

saga_cmd shapes_points 0 -POINTS= -TABLE=path for input point *.txt file -X=0 -Y=1 -Z=2 -POINTS=C:\SAGA\output.shp path for output *.shp file

@ECHO OFF

REM Tool: Triangulation

saga_cmd grid_gridding 5 -SHAPES=C:\SAGA\output.shp -FIELD=2 -TARGET_DEFINITION=0 -TARGET_USER_XMIN=X minimum of Dataset -TARGET_USER_XMAX=X maximum of Dataset -TARGET_USER_YMIN= Y minimum of Dataset -TARGET_USER_YMAX=Y maximum of Dataset -TARGET_USER_SIZE=0.5 -TARGET_USER_FITS=0 -TARGET_OUT_GRID=C:\SAGA\output.sgrd

REM Tool: Grid Volume
saga_cmd grid_calculus 2 -GRID=C:\SAGA\output.sgrd  -METHOD=0 -LEVEL=0.000000



Further Details you can Refer
http://saga-gis.org/en/index.html

This is an example application of SAGA GIS it can be Used for several Automated GIS Applications.

0 comments: