Area calculation using vertices

  • Asked
  • Active
  • Viewed 3425 times
0

Hi OFT, I am trying to develop a form that will survey of particular forest area and the forest user group territory. It would be worthy when user can get instant area he/she surveyed and make decision instantly with forest user group.I want to calculate the area in collect mobile (SRS system will be projected). For this I need to calculate x1 * y2. I thought it will be easier using idm:position() or idm:index() function but I was wrong. Now things are being messy. How can be done such type of calculation? or is their any solution to calculate area using vertices?

0

Accepted answer

I solved one issue: x1*y2 using expression (location/@x(parent()/coordinate[idm:position($this/parent()) -1]/location/@y))-(location/@y(parent()/coordinate[idm:position($this/parent()) - 1]/location/@x)) Apply when idm:position($this/parent()) = 1 expression (location/@x(parent()/coordinate[idm:position($this/parent()) -1]/location/@y))-(location/@y(parent()/coordinate[idm:position($this/parent()) - 1]/location/@x)) Apply when idm:position($this/parent()) !=1. probably my apply when condition is not ok, I am not sure. I checked in excel everything is right. Now my problem is that I want same calculation as above but that would be with last and first position of the coordinate. How can I perform that work?

0

Accepted answer

Hi all, I am able to calculate area using vertices somehow. It can be calculate in desktop version but not in mobile version. I am waiting whether it will be done in future releases in mobile. Thank you.

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.