Point in polygon using shapely?
问题 I am running the following script which I believe should be returning TRUE for the point being in the polygon but it is returning FALSE. from shapely import geometry polygon = [(-1571236.8349707182, 8989180.222117377), (1599362.9654156454, 8924317.946336618), (-1653179.0745812152, 8922145.163675062), (-1626237.6614402141, 8986445.107619021)] Point_X = -1627875.474 Point_Y = 8955472.968 line = geometry.LineString(polygon) point = geometry.Point(Point_X, Point_Y) print(line.contains(point))