lib/turf/boolean_point_in_polygon.rb
def in_bbox(point, bbox)
    bbox[0] <= point[0] &&
      bbox[1] <= point[1] &&
      bbox[2] >= point[0] &&
      bbox[3] >= point[1]
  end
# Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon. The polygon
# can be convex or concave. The function accounts for holes.
# @see http://turfjs.org/docs/#booleanPointInPolygon
# @param point [Coord] input point
# @param polygon [Feature<(Polygon | MultiPolygon)>] input polygon or multipolygon
# @param ignore_boundary [boolean] True if polygon boundary should be ignored when determining if the point is
# inside
# the polygon otherwise false.
# @return [boolean] true if the Point is inside the Polygon; false if the Point is not inside the Polygon
Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon. The polygon
can be convex or concave. The function accounts for holes.
Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon . The polygon can be convex or concave . The function accounts for holes .
def in_bbox(point, bbox)
    bbox[0] <= point[0] &&
      bbox[1] <= point[1] &&
      bbox[2] >= point[0] &&
      bbox[3] >= point[1]
  end
def in_bbox ( point , bbox ) bbox [ 0 ] <= point [ 0 ] && bbox [ 1 ] <= point [ 1 ] && bbox [ 2 ] >= point [ 0 ] && bbox [ 3 ] >= point [ 1 ] end
Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon.
Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon .
true if the Point is inside the Polygon; false if the Point is not inside the Polygon
true if the Point is inside the Polygon ; false if the Point is not inside the Polygon
boolean
point
None
bbox
polygon
input polygon or multipolygon
input polygon or multipolygon
ignore_boundary
True if polygon boundary should be ignored when determining if the point is inside the polygon otherwise false.
True if polygon boundary should be ignored when determining if the point is inside the polygon otherwise false .
see
None