Skip to content

Visiting the interior of a shape #928

Answered by dr-jts
Captain-Chaos asked this question in Q&A
Discussion options

You must be logged in to vote

If I'm understanding your requirements correctly, then JTS may or may not have objects and functions that do what you want.

  • You can create line and polygon geometry with integer coordinates. There is no way to represent splines directly.
  • You could compute a grid of integer coordinates and then use JTS to test whether each one lies inside a polygon in an efficient way
  • Not sure what you mean by "visit points along a path in integer coordinate space". You could potentially do this by creating the grid of all points in the extent (bounding box) of a path (as a JTS LineString), and then test to find ones which are near the actual path (given some tolerance distance).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dr-jts
Comment options

You must be logged in to vote
3 replies
@dr-jts
Comment options

@Captain-Chaos
Comment options

@dr-jts
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants