I’ve resurrected some old (GMT ver5) code that simply tested if a point (or points) was inside a polygon (poly.txt). The point gets written to a file (test.txt) and then:
gmtspatial <test.txt -Npoly.text+z
This produces zero output.
If I try:
gmtspatial <test.txt -Npoly.text+r
The response is:
Middle point from table 0 segment 0 is inside polygon # 999
even though there are six test points in the file (five of which are in the polygon).
What does it mean by “middle point”?
How can I get it to simply output the point plus the Z value?
The code worked previously but something has changed somewhere.
Thanks.