Quiz03: CE318L GIS/RS for Civil Engineers Fall14

This quiz is on following topics:

    Raster Analysis
    Delimited Text
    Geoprocessing

First Enter your full name, registration#, class#, section and email. You are required to answer all questions. Select only one option. Time limit is 10 minutes. Good luck.

Quiz03: CE318L GIS/RS for Civil Engineers Fall14

Full Name *
Reg# *
Class# *
Section *
Email *

Quiz02: CE318L GIS/RS for Civil Engineers Fall14

This quiz is on following topics:

    Creating Point, Line and Polygon
    Georeferencing
    Digitization
    Geocoding

First Enter your full name, registration#, class#, section and email. You are required to answer all questions. Select only one option. Time limit is 10 minutes. Good luck.

Quiz02: CE318L GIS/RS for Civil Engineers Fall14

Full Name *
Reg# *
Class# *
Section *
Email *

QGIS Lab05 Fall14: QGIS Practice Session – Displaying flood data using CSV file.

Introduction:

This is fifth video tutorial in urdu language for QGIS. It is overview lecture on practice session using csv to display flood data.

Summary:

  1. Display Flood data using CSV.
  2. Delimited Text, text/csv file, excel spreedsheet.

Below is the full video lecture. Use full screen for clear content of video. The download link of below video is ogg video or mp4 video. You can play it in vlc player or open it in web browser.

The example files that are used in video can be downloaded from here .

Reference:

  1. CSV files in QGIS
  2. How to Create Beautiful Maps in QGIS
  3. Stamen Maps for QGIS

QGIS Lab04 Fall14: QGIS Delimited Text, Contour from Vector Points, Geoprocessing

Introduction:

This is fourth video tutorial in urdu language for QGIS. It is overview lecture on basic tasks such as loading delimited text, working with text/csv file, working with excel spreadsheet and geoprocessing.

Summary:

  1. Delimited Text, text/csv file, excel spreedsheet.
  2. Contour from Point Vector layer
  3. Geoprocessing

    Below is the full video lecture. Use full screen for clear content of video. The download link of below video is ogg video or mp4 video. You can play it in vlc player or open it in web browser.

    More better explanation for importing polygons using csv files is in below video. It explains use of different delimiter other than comma (,).
    The download link of below video is ogg video or mp4 video. You can play it in vlc player or open it in web browser.

    The example files that are used in video can be downloaded from here .

    Reference:

  1. CSV files in QGIS
  2. Contour from Points
  3. Geoprocessing
  4. Slides on Geoprocessing

epc – enggprog compute

enggprog compute – epc is GPL web based CalculiX CrunchiX – ccx solver for solving multiphysics problems using Finite Element analysis. It is written in PHP.

How it works:

Upload ccx input file and get tar output. You can find online instance at: enggprog.net

Prerequisite:

  1. Dedicated debian server with CalculiX CrunchiX installed.
  2.  Apache2
  3.  PHP
  4. mod_expires, mod_headers activated.

Download:

You can download the tar files of epc package from here.

Installation:

  1. Extract the package files of epc in web root.
  2. Change site name in core/config.php.
  3. Open index.php in web browser.

Note:

  1. enggprog.net is in alpha stage running on Pentium 4 with 1MBPS home based connection. It may not handle heavy traffic.
    Or sometimes you may face downtime on enggprog.net.
  2. Apache security features not implemented yet. Number of active users at given time is not limited yet.

Future Development:

  1. Implementing apache security features.
  2. Limiting simultaneous active session.
  3. Adding feature to excute fbd+inp file.

References:

  1. CalculiX Portal.
  2. CalculiX Forum.
  3. CalculiX Binary for Debian 32bit.
  4. CalculiX Binary for Debian 64bit.
  5. CalculiX Buildbot for Debian 32bit.
  6. CalculiX Buildbot for Debian 64bit.

QGIS Lab03 Fall14: QGIS Openlayer Plugin, Geocoding, Bulk Geocoding, and Raster Analysis

Introduction:

This is third video tutorial in urdu language for QGIS. It is overview lecture on basic tasks such as openlayer, geocoding and raster analysis.

Summary:

  1. Openlayer (google map and open street maps)
  2. Geocoding and reverse geocoding, bulk geocoding using MMQGIS (block/bulk of addresses at same time)
  3. Raster Analysis
    1. Interpolation
    2. Heat Map
    3. Terrain Analysis
    4. Slope
    5. Hill Shade
    6. Projection Wrap Projection
    7. Extraction:
      1. Contour
    8. Clipper/subsetting (corp)
    9. Miscellaneous
      1. Merge/mosaic (combine)

Below is the full video lecture. Use full screen for clear content of video. The download link of below video is ogg video or mp4 video. You can play it in vlc player or open it in web browser.

The example files that are used in video can be downloaded from here .

Reference:

  1. Openlayer
  2. Geocoding
  3. Raster Based Terrain Analysis Techniques
  4. Clipper and Contour
  5. Mosaicing and Clipping

QGIS Lab02 Fall14: New Vector Layer, Georeferencing, Digitization, Geocoding

Introduction:

This is second video tutorial in urdu language for QGIS. It is overview lecture on basic tasks such as creating a shape file (point, line and polygon), georeferencing, digitization, and geocoding.

Summary:

  1. Creating Point, Line and Polygon (creating shape files), adding attribute data.
  2. Georeferencing (Georerefercing satellite image from google earth in QGIS)
  3.  Digitization/Vectorization (Digitizing satellite image in QGIS by creating vector overlay)
  4. Geocoding

Below is the full video lecture. Use full screen for clear content of video. You can watch directly on tune.pk from this link: http://tune.pk/video/4523903/lab02-qgis-new-vector-layer-georeferencing-digitization-geocoding

Or you can play HTML5 video below or download it which is playable in VLC player. Use full screen for clear view. The download link of below video is ogg video or mp4 video.

The example files that are used in video can be downloaded from here .

Reference:

  1. Georeferencing
  2. Geocoding

QGIS Lab01 Fall14: Intro to QGIS

Introduction:

This is first video tutorial in urdu language for QGIS. It is introductory lecture. The purpose of this series is to get started with using QGIS. QGIS is a free software package for Geographic Information System (GIS). You can download qgis for free from qgis.org.

Summery:

  1. Adding existing vector layer
  2. Adding existing raster layer
  3. Zoom layer, working with layers, adding new layer, show hide layer, Table of content/ Manage layer pan
  4. Saving vector and raster layer
  5. Working with attribute/properties
  6. Identify feature
  7. Search/Query vector layer
  8. Working with style/color
  9. Symbols
  10. Label

Below is the full video lecture. Use full screen for clear content of video. You can watch directly on tune.pk from this link: http://tune.pk/video/4517058/lab01-intro-to-qgis


Or you can play HTML5 video below or download it which is playable in VLC player. Use full screen for clear view. The download link of below video is ogg video or mp4 video.

The example files that are used in video can be downloaded from here .

Reference:

  1. QGIS tutorials and tips
  2. Free and opensource GIS ramblings
  3. QGIS official website

Updating your WEBAPP using PHP Functions – uploadapp program

Introduction:

This app download, extract the gunzip, backup the given config folder (single folder only) and replace the existing app file with updated files.

The app is tested on updating wordpress files. You can use if for update of owncloud, piwik, or modify it to upload files to your host server from your client computer. It make use of cURL and phar class of PHP. It works for gunzip update files only. For zip files, you would need to modify code of extr.php.

Main Code:

Important code for this app is:

  1. downloading file to host server
  2. extracting the gunzip
  3. and moving the backup and update files

PHP code for uploading a gunzip file to your host server with progress bar javascript:

PHP code for extracting gunzip file:

PHP code for moving and backup of folder:

 

Installation:

  1.  Download the app from http://enggprog.com/Download/Projects/upload/uploadapp.zip and extract on your computer.
  2.  Edit config.php and change following variables:
    • $remoteFile = url of download package.
    • $webpath = full absolute webpath of the app including the folder.
    • $dstwebpath = full absolute webpath of the owncloud/req app including the folder. Files will be extracted here.
    • $srcfoldername = extracted files will be in this folder. It shall be the name of root folder of update package.
    • $dstfoldername = extracted files will be moved to this folder. This folder must exist on your server.
    • $cfgfolder = single folder (usually config folder) that is inside $dstfoldername folder to backup during update.
    • $cfgfolderbak = name of backup folder
    • $ctimeout = timeout of download time, increase for large files.
  3. Copy the url of index.php file of this app and paste it in your browser.

Download:

Download source code of uploadapp v0.1

Note:

  1.  Incorrect folder/file name can produce error.
  2.  Backup your full app directory before first time use.

References:

  1. stackoverflow.com
  2. php.net

Engineering Analysis & Design