Answer the question
In order to leave comments, you need to log in
What data type to store points in?
Good afternoon,
I'm doing a crop.
I have selection coordinates of 4 of them, what is the best way to store them?
4 fields or points type?
If points, then maybe you can tell me how to handle it easier - to enter data and extract it. Thank you.
Maybe a helper, who saw what?
Answer the question
In order to leave comments, you need to log in
Given that you will use them 99% of the time in js, it’s easier to store them in json, for which you have a column of type string (100) in the database,
while in php they can easily be turned into an array and back into json using
json_encode() and json_decode
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question