Skip to content

Instantly share code, notes, and snippets.

@chingchai
Last active October 15, 2016 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chingchai/2ebde82a5544e70f678f5a8f4e703caf to your computer and use it in GitHub Desktop.
Save chingchai/2ebde82a5544e70f678f5a8f4e703caf to your computer and use it in GitHub Desktop.
การคำนวณเนื้อที่ไร่ งาน และตารางวา ในโปรแกรม QGIS

Author: Chingchai Humhong (chingchai.h@gmail.com)

Date: 2016/10/15

1. create field rai ngan and sqrwa in QGIS

  • rai type integer length 5
  • ngan type integer length 5
  • sqrwa type double length 10,2

2. calculate field rai in QGIS

  floor($area/1600)

3. calculate field ngan in QGIS

 floor((($area/1600)-"rai")*4)

4. calculate field sqrwa in QGIS

  (((($area/1600)-"rai")*4)-"ngan")*100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment