Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Select multiple points on an image

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #183156 by tpartner
Replied by tpartner on topic Select multiple points on an image
The data is simply recorded in the order that the markers are found in the DOM.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #183157 by Joffm
Replied by Joffm on topic Select multiple points on an image
They are stored in reverse order:
I set
1st: upper left corner: coords: 1,1 stored in SQ010-SQ012
2nd: upper right corner: coords: 99,1 stored in SQ007-SQ009
3rd: lower left corner: coords: 1,99 stored in SQ004-SQ006
4th: lower right corner: coords: 99,99 stored in SQ001-SQ003

So, to know the order you may do some restructuring in a spreadsheet.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
4 years 11 months ago #183161 by pixelT
Replied by pixelT on topic Select multiple points on an image
Thank you both for your answers!

If it was reverse order it would not be a problem for me as you can easily reorder it. But the problem is, it isn't just stored backwards. I made a few examples and tested them:
I will attach a picture.
on the left side is the order I placed the markers- on the right i marked the displayed stored coordinates after completing the survey.
Attachments:
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #183164 by Joffm
Replied by Joffm on topic Select multiple points on an image
As far as I know,
if there is an algorhythm, it works always identical.

And looking at your pictures:
Seems to be in reverse order, but maybe you are confused about the coords.
0,0 upper left
100,100 lower right.

All your examples show it correctly, if we do just a symmetrical mirroring
Your last example:
1st: top middle -> 4 bottom middle
2nd: bottom middle -> 3 top middle
3rd: middle right -> 2 middle left
4th: middle left -> 1 middle right

As long as I use this, and in a dashboard show the results afterwards, it never worked differently

Joffm

Write the position into the comment and compare in database.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
4 years 11 months ago #183170 by pixelT
Replied by pixelT on topic Select multiple points on an image
Oh god!! I really messed up with reading the coordinates!!
I assumed a normal x and y axis- x the bottom horizontal line and y the left vertical line- but it is different here.

Thank you sooo much this made me think for hours!!





Im attaching my pictures with the corrected coordinates- for future readers.
The topic has been locked.
More
4 years 4 months ago #191528 by gremlin
Replied by gremlin on topic Select multiple points on an image
Hi!

Sorry to ask amateurish questions
1) Where should I upload the ZIP file to? In the plug-in folder?
2) How do I effect these changes to the ZIP folder?
The topic has been locked.
More
4 years 4 months ago #191529 by gremlin
Replied by gremlin on topic Select multiple points on an image
Sorry I missed the instructions on Github earlier! Saw the instructions on second look! Thanks for this!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose