Dear OF Team,

I have noticed that it is not possible to retrieve information from SPD based on just one key attribute resulting in a set of values.

The reason I am asking for this is to be able to retrieve whether a cluster is permanent or not. For that I would like to be able to use

idm:samplingPointData('psp',id)[1] = "yes"

Where id is the cluster ID. I have 3 plots in a cluster, hence the subsetting [1].

Thanks for your help!

Andras

asked 07 Jan '19, 13:58

Andras's gravatar image

Andras
18481952
accept rate: 0%


Hi Andras, The expression should be idm:samplingPointData('psp', id, 1) = "yes" The second argument is the cluster ID, the third argument is the plot ID.
Let us know, thanks.
Open Foris Team

permanent link

answered 08 Jan '19, 13:15

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.7k19
accept rate: 20%

Believe it or not, I just thought of it this morning :) Thanks a lot!

(08 Jan '19, 13:45) Andras Andras's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×493

question asked: 07 Jan '19, 13:58

question was seen: 2,178 times

last updated: 08 Jan '19, 13:45