{"library":"pygeos","title":"PyGEOS","description":"PyGEOS provides GEOS (Geometry Engine - Open Source) operations wrapped in NumPy ufuncs for vectorized geospatial operations. Its development has ceased, and its core functionality has been merged into Shapely starting with version 2.0. The last release is 0.14, and no further major releases are expected as users are encouraged to migrate to Shapely 2.x.","language":"python","status":"deprecated","last_verified":"Fri Apr 17","install":{"commands":["pip install pygeos"],"cli":null},"imports":["import pygeos"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pygeos\n\n# Create a single point\npoint_a = pygeos.points(0, 0)\n\n# Create an array of points\npoints_array = pygeos.points([\n    [1, 1],\n    [2, 2],\n    [3, 3]\n])\n\n# Create a polygon\npolygon = pygeos.polygons([(0, 0), (0, 4), (4, 4), (4, 0), (0, 0)])\n\n# Perform a spatial operation: check intersection\nintersects = pygeos.intersects(polygon, points_array)\n\nprint(f\"Point A: {point_a}\")\nprint(f\"Points array: {points_array}\")\nprint(f\"Polygon: {polygon}\")\nprint(f\"Intersects with polygon: {intersects}\") # Expected: [True, True, True]","lang":"python","description":"Demonstrates creating basic geometry objects (points, polygon) and performing a vectorized spatial operation (intersects).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}