Fix linestring hit detection bug
Merge pull request #1435 from elemoine/vector-api-hit-bug

[vector-api] Fix linestring hit detection bug