{
  "id": "task_libraries:geospatial/python",
  "path": "/exapedia/python-geospatial-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python geospatial libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python geospatial libraries read, analyze, and transform data tied to locations on Earth, such as points, boundaries, and satellite images. Vector data stores each shape as coordinates rather than as the grid of cell values that raster data uses. These libraries let mapping apps, logistics tools, and AI agents answer questions about places and distances."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python geospatial libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#shapely",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F139"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyproj",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hthree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#geopandas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyogrio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rtree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#geopy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "text",
                  "text": "Not on GitHub"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rasterio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F277"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "pypi"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#shapely",
          "label": [
            {
              "t": "text",
              "text": "Shapely"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F140"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Vector dataset I/O",
            "Raster dataset I/O",
            "Native CRS transformations",
            "Geometry predicates or buffers",
            "Spatial indexing",
            "Ellipsoidal geodesic distances"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#shapely",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F139"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyproj",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hthree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F179"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#geopandas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyogrio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rtree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#geopy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rasterio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F277"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "shapely",
          "name": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/shapely/shapely"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/shapely"
            },
            {
              "label": "Docs",
              "href": "https://shapely.readthedocs.io/en/stable/manual.html#coordinate-systems"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F6"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://shapely.readthedocs.io/en/stable/manual.html#coordinate-systems",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F139"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mahdin75/gis-mcp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@gis_mcp.tool()\ndef project_geometry(geometry: str, source_crs: str, \n                    target_crs: str) -> Dict[str, Any]:\n    \"\"\"Project a geometry between CRS.\"\"\"\n    try:\n        from shapely import wkt\n        from shapely.ops import transform\n        from pyproj import Transformer\n        geom = wkt.loads(geometry)\n        transformer = Transformer.from_crs(source_crs, target_crs, always_xy=True)\n        projected = transform(transformer.transform, geom)\n        return {\n            \"status\": \"success\",\n            \"geometry\": projected.wkt,\n            \"source_crs\": source_crs,\n            \"target_crs\": target_crs,\n            \"message\": \"Geometry projected successfully\"\n        }\n    except Exception as e:\n        logger.error(f\"Error projecting geometry: {str(e)}\")\n        raise ValueError(f\"Failed to project geometry: {str(e)}\")\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mahdin75/gis-mcp/blob/be8a33d25aefccf256136f3de0f18124f6efa16f/src/gis_mcp/pyproj_functions.py#L64-L84",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F154"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20shapely%20for%20geospatial%20transformations%20and%20spatial%20analysis&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F139"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from shapely import Point\n\npoint = Point(0, 0)\nbuffer = point.buffer(1)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://shapely.readthedocs.io/en/stable/manual.html#coordinate-systems",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyproj",
          "name": [
            {
              "t": "fact",
              "fact": "F157"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pyproj4/pyproj"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/pyproj"
            },
            {
              "label": "Docs",
              "href": "https://pyproj4.github.io/pyproj/stable/examples.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pyproj4.github.io/pyproj/stable/examples.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F157"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mahdin75/gis-mcp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@gis_mcp.tool()\ndef transform_coordinates(coordinates: List[float], source_crs: str, \n                        target_crs: str) -> Dict[str, Any]:\n    \"\"\"Transform coordinates between CRS.\"\"\"\n    try:\n        from pyproj import Transformer\n        transformer = Transformer.from_crs(source_crs, target_crs, always_xy=True)\n        x, y = coordinates\n        x_transformed, y_transformed = transformer.transform(x, y)\n        return {\n            \"status\": \"success\",\n            \"coordinates\": [x_transformed, y_transformed],\n            \"source_crs\": source_crs,\n            \"target_crs\": target_crs,\n            \"message\": \"Coordinates transformed successfully\"\n        }\n    except Exception as e:\n        logger.error(f\"Error transforming coordinates: {str(e)}\")\n        raise ValueError(f\"Failed to transform coordinates: {str(e)}\")\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mahdin75/gis-mcp/blob/be8a33d25aefccf256136f3de0f18124f6efa16f/src/gis_mcp/pyproj_functions.py#L44-L62",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pyproj%20for%20geospatial%20transformations%20and%20spatial%20analysis&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F157"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/geopandas/geopandas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _to_file_fiona(df, filename, driver, schema, crs, mode, metadata, **kwargs):\n    if not HAS_PYPROJ and crs:\n        raise ImportError(\n            \"The 'pyproj' package is required to write a file with a CRS, but it is not\"\n            \" installed or does not import correctly.\"\n        )\n\n    if schema is None:\n        schema = infer_schema(df)\n\n    if crs:\n        from pyproj import CRS\n\n        crs = CRS.from_user_input(crs)\n    else:\n        crs = df.crs\n\n    with fiona_env():\n        crs_wkt = None\n        try:\n            gdal_version = Version(\n                fiona.env.get_gdal_release_name().strip(\"e\")\n            )  # GH3147\n        except (AttributeError, ValueError):\n            gdal_version = Version(\"2.0.0\")  # just assume it is not the latest\n        if gdal_version >= Version(\"3.0.0\") and crs:\n            crs_wkt = crs.to_wkt()\n        elif crs:\n            crs_wkt = crs.to_wkt(\"WKT1_GDAL\")\n        with fiona.open(\n            filename, mode=mode, driver=driver, crs_wkt=crs_wkt, schema=schema, **kwargs\n        ) as colxn:\n            if metadata is not None:\n                colxn.update_tags(metadata)\n            colxn.writerecords(df.iterfeatures())",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/geopandas/geopandas/blob/f596bc16071809a3e86c550fb3a9158c9bae5292/geopandas/io/file.py#L744-L778",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F176"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pyproj%20for%20geospatial%20transformations%20and%20spatial%20analysis&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F157"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pyproj import Transformer\n\ntransformer = Transformer.from_crs(4326, 3857, always_xy=True)\nx, y = transformer.transform(-75, 40)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pyproj4.github.io/pyproj/stable/examples.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "examples.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F162"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "hthree",
          "name": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/uber/h3-py"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/h3"
            },
            {
              "label": "Docs",
              "href": "https://uber.github.io/h3-py/api_quick.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://uber.github.io/h3-py/api_quick.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/DahnJ/H3-Pandas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F197"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@sequential_deduplication\ndef linetrace(geometry: MultiLineOrLine, resolution: int) -> Iterator[str]:\n    \"\"\"h3.polyfill equivalent for shapely (Multi)LineString\n    Does not represent lines with duplicate sequential cells,\n    but cells may repeat non-sequentially to represent\n    self-intersections\n\n    Parameters\n    ----------\n    geometry : LineString or MultiLineString\n        Line to trace with H3 cells\n    resolution : int\n        H3 resolution of the tracing cells\n\n    Returns\n    -------\n    Set of H3 addresses\n\n    Raises\n    ------\n    TypeError if geometry is not a LineString or a MultiLineString\n    \"\"\"\n    if isinstance(geometry, MultiLineString):\n        # Recurse after getting component linestrings from the multiline\n        for line in map(lambda geom: linetrace(geom, resolution), geometry.geoms):\n            yield from line\n    elif isinstance(geometry, LineString):\n        coords = zip(geometry.coords, geometry.coords[1:])\n        while (vertex_pair := next(coords, None)) is not None:\n            i, j = vertex_pair\n            a = h3.latlng_to_cell(*i[::-1], resolution)\n            b = h3.latlng_to_cell(*j[::-1], resolution)\n            yield from h3.grid_path_cells(a, b)  # inclusive of a and b\n    else:\n        raise TypeError(f\"Unknown type {type(geometry)}\")",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/DahnJ/H3-Pandas/blob/4c112ca143203e2e93be1042283ede6c9fe6de0c/h3pandas/util/shapely.py#L67-L101",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=h3%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F179"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import h3\n\ncell = h3.latlng_to_cell(37.77, -122.42, 9)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://uber.github.io/h3-py/api_quick.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "api_quick.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "geopandas",
          "name": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/geopandas/geopandas"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/geopandas"
            },
            {
              "label": "Docs",
              "href": "https://geopandas.org/en/stable/docs/user_guide/projections.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F64"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://geopandas.org/en/stable/docs/user_guide/projections.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F199"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gboeing/osmnx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F215"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def project_gdf(\n    gdf: gpd.GeoDataFrame,\n    *,\n    to_crs: Any | None = None,  # noqa: ANN401\n    to_latlong: bool = False,\n) -> gpd.GeoDataFrame:\n    \"\"\"\n    Project a GeoDataFrame from its current CRS to another.\n\n    If `to_latlong` is True, this projects the GeoDataFrame to the coordinate\n    reference system defined by `settings.default_crs`. Otherwise it projects\n    it to the CRS defined by `to_crs`. If `to_crs` is `None`, it projects it\n    to the CRS of an appropriate UTM (or UPS) zone given `gdf`'s bounds.\n\n    Parameters\n    ----------\n    gdf\n        The GeoDataFrame to be projected.\n    to_crs\n        If None, project to an appropriate UTM zone. Otherwise project to\n        this CRS.\n    to_latlong\n        If True, project to `settings.default_crs` and ignore `to_crs`.\n\n    Returns\n    -------\n    gdf_proj\n        The projected GeoDataFrame.\n    \"\"\"\n    if gdf.crs is None or len(gdf) == 0:  # pragma: no cover\n        msg = \"`gdf` must have a valid CRS and cannot be empty.\"\n        raise ValueError(msg)\n\n    # if to_latlong is True, project the gdf to the default_crs\n    if to_latlong:\n        to_crs = settings.default_crs\n\n    # else if to_crs is None, choose an appropriate UTM zone\n    elif to_crs is None:\n        UTM_NORTH_LIMIT = 84\n        UTM_SOUTH_LIMIT = -80\n        centroid = gdf.union_all().centroid\n\n        # if gdf is already projected, temporarily re-project centroid to\n        # lat-long to check against UTM (lat-long) north/south limits\n        if is_projected(gdf.crs):\n            centroid, _ = project_geometry(centroid, crs=gdf.crs, to_latlong=True)\n\n        # if centroid is north or south of UTM limits, use UPS CRS instead\n        if centroid.y < UTM_SOUTH_LIMIT:\n            to_crs = \"epsg:32761\"\n        elif centroid.y > UTM_NORTH_LIMIT:\n            to_crs = \"epsg:32661\"\n        else:\n            # otherwise, we're within UTM limits, so choose a UTM zone\n            to_crs = gdf.estimate_utm_crs()\n\n    # project the gdf\n    gdf_proj = gdf.to_crs(to_crs)\n    crs_desc = f\"{gdf_proj.crs.to_string()} / {gdf_proj.crs.name}\"\n\n    msg = f\"Projected GeoDataFrame to {crs_desc!r}\"\n    utils.log(msg, level=lg.INFO)\n    return gdf_proj\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gboeing/osmnx/blob/0be7bf02dace325a66c0b7fcf06eca542db3a9a6/osmnx/projection.py#L81-L144",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F214"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20geopandas%20for%20geospatial%20transformations%20and%20spatial%20analysis&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F199"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import geopandas as gpd\nfrom shapely import Point\n\npoints = gpd.GeoSeries([Point(-75, 40)], crs=\"EPSG:4326\")\nprojected = points.to_crs(\"EPSG:3857\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://geopandas.org/en/stable/docs/user_guide/projections.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "create_geopandas_from_pandas.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyogrio",
          "name": [
            {
              "t": "fact",
              "fact": "F217"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/geopandas/pyogrio"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/pyogrio"
            },
            {
              "label": "Docs",
              "href": "https://pyogrio.readthedocs.io/en/latest/api.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pyogrio.readthedocs.io/en/latest/api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F217"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/geopandas/geopandas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F235"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _to_file_pyogrio(df, filename, driver, schema, crs, mode, metadata, **kwargs):\n    import pyogrio\n\n    if schema is not None:\n        raise ValueError(\n            \"The 'schema' argument is not supported with the 'pyogrio' engine.\"\n        )\n\n    if mode == \"a\":\n        kwargs[\"append\"] = True\n\n    if crs is not None:\n        raise ValueError(\"Passing 'crs' is not supported with the 'pyogrio' engine.\")\n\n    # for the fiona engine, this check is done in gdf.iterfeatures()\n    if not df.columns.is_unique:\n        raise ValueError(\"GeoDataFrame cannot contain duplicated column names.\")\n\n    pyogrio.write_dataframe(df, filename, driver=driver, metadata=metadata, **kwargs)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/geopandas/geopandas/blob/f596bc16071809a3e86c550fb3a9158c9bae5292/geopandas/io/file.py#L781-L799",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F234"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pyogrio%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F217"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pyogrio\n\ndrivers = pyogrio.list_drivers()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pyogrio.readthedocs.io/en/latest/api.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "api.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F222"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rtree",
          "name": [
            {
              "t": "fact",
              "fact": "F237"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Toblerity/rtree"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/rtree"
            },
            {
              "label": "Docs",
              "href": "https://rtree.readthedocs.io/en/stable/tutorial.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://rtree.readthedocs.io/en/stable/tutorial.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F237"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mikedh/trimesh",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def bounds_tree(bounds: ArrayLike) -> Any:\n    \"\"\"\n    Given a set of axis aligned bounds create an r-tree for\n    broad-phase collision detection.\n\n    Parameters\n    ------------\n    bounds : (n, 2D) or (n, 2, D) float\n      Non-interleaved bounds where D=dimension\n      E.G a 2D bounds tree:\n      [(minx, miny, maxx, maxy), ...]\n\n    Returns\n    ---------\n    tree : Rtree\n      Tree containing bounds by index\n    \"\"\"\n    import rtree\n\n    # make sure we've copied bounds\n    bounds = np.array(bounds, dtype=np.float64, copy=True)\n    if len(bounds.shape) == 3:\n        # should be min-max per bound\n        if bounds.shape[1] != 2:\n            raise ValueError(\"bounds not (n, 2, dimension)!\")\n        # reshape to one-row-per-hyperrectangle\n        bounds = bounds.reshape((len(bounds), -1))\n    elif len(bounds.shape) != 2 or bounds.size == 0:\n        raise ValueError(\"Bounds must be (n, dimension * 2)!\")\n\n    # check to make sure we have correct shape\n    dimension = bounds.shape[1]\n    if (dimension % 2) != 0:\n        raise ValueError(\"Bounds must be (n,dimension*2)!\")\n    dimension = int(dimension / 2)\n\n    properties = rtree.index.Property(dimension=dimension)\n    # stream load was verified working on import above\n    return rtree.index.Index(\n        zip(np.arange(len(bounds)), bounds, [None] * len(bounds)), properties=properties\n    )",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mikedh/trimesh/blob/7fe4ac4405ba5af02756c2db729da6822510304c/trimesh/util.py#L1883-L1923",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F254"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=rtree%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F237"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from rtree import index\n\nspatial_index = index.Index()\nspatial_index.insert(0, (0, 0, 1, 1))\nmatches = list(spatial_index.intersection((0.5, 0.5, 2, 2)))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://rtree.readthedocs.io/en/stable/tutorial.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "tutorial.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F242"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "geopy",
          "name": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/geopy/geopy"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/geopy"
            },
            {
              "label": "Docs",
              "href": "https://geopy.readthedocs.io/en/stable/#module-geopy.distance"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://geopy.readthedocs.io/en/stable/#module-geopy.distance",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/geopandas/geopandas",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _query(data, forward, provider, throttle_time, **kwargs):\n    # generic wrapper for calls over lists to geopy Geocoders\n    from geopy.geocoders import get_geocoder_for_service\n    from geopy.geocoders.base import GeocoderQueryError\n\n    if forward:\n        if not isinstance(data, pd.Series):\n            data = pd.Series(data)\n    else:\n        if not isinstance(data, geopandas.GeoSeries):\n            data = geopandas.GeoSeries(data)\n\n    if isinstance(provider, str):\n        provider = get_geocoder_for_service(provider)\n\n    coder = provider(**kwargs)\n    results = {}\n    for i, s in data.items():\n        try:\n            if forward:\n                results[i] = coder.geocode(s)\n            else:\n                results[i] = coder.reverse((s.y, s.x), exactly_one=True)\n        except (GeocoderQueryError, ValueError):\n            results[i] = (None, None)\n        time.sleep(throttle_time)\n\n    df = _prepare_geocode_result(results)\n    return df",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/geopandas/geopandas/blob/f596bc16071809a3e86c550fb3a9158c9bae5292/geopandas/tools/geocoding.py#L119-L147",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=geopy%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from geopy.distance import geodesic\n\ndistance_km = geodesic((41.49, -71.31), (41.5, -81.69)).km\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://geopy.readthedocs.io/en/stable/#module-geopy.distance",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F262"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rasterio",
          "name": [
            {
              "t": "fact",
              "fact": "F277"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/rasterio/rasterio"
            },
            {
              "label": "pypi",
              "href": "https://pypi.org/project/rasterio"
            },
            {
              "label": "Docs",
              "href": "https://rasterio.readthedocs.io/en/stable/quickstart.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F88"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://rasterio.readthedocs.io/en/stable/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F277"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cogeotiff/rio-tiler",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F293"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def point(\n    src_dst: DatasetReader | DatasetWriter | WarpedVRT,\n    coordinates: tuple[float, float],\n    indexes: Indexes | None = None,\n    coord_crs: CRS = WGS84_CRS,\n    nodata: NoData | None = None,\n    vrt_options: dict | None = None,\n    out_dtype: str | numpy.dtype | None = None,\n    resampling_method: RIOResampling = \"nearest\",\n    reproject_method: WarpResampling = \"nearest\",\n    interpolate: bool = False,\n    unscale: bool = False,\n    post_process: Callable[[numpy.ma.MaskedArray], numpy.ma.MaskedArray] | None = None,\n) -> PointData:\n    \"\"\"Read a pixel value for a point.\n\n    Args:\n        src_dst (rasterio.io.DatasetReader or rasterio.io.DatasetWriter or rasterio.vrt.WarpedVRT): Rasterio dataset.\n        coordinates (tuple): Coordinates in form of (X, Y).\n        indexes (sequence of int or int, optional): Band indexes.\n        coord_crs (rasterio.crs.CRS, optional): Coordinate Reference System of the input coords. Defaults to `epsg:4326`.\n        nodata (int or float, optional): Overwrite dataset internal nodata value.\n        vrt_options (dict, optional): Options to be passed to the rasterio.warp.WarpedVRT class.\n        resampling_method (RIOResampling, optional): RasterIO resampling algorithm. Only used when `interpolate=True`. Defaults to `nearest`.\n        reproject_method (WarpResampling, optional): WarpKernel resampling algorithm. Defaults to `nearest`.\n        interpolate (bool, optional): Interpolate pixels around the coordinates. Defaults to `False`.\n        unscale (bool, optional): Apply dataset's 'scales' and 'offsets' on output data value. Defaults to `False`.\n        post_process (callable, optional): Function to apply on output data and mask values.\n\n    Returns:\n        PointData\n\n    \"\"\"\n    indexes = cast_to_sequence(indexes)\n\n    with contextlib.ExitStack() as ctx:\n        # Use WarpedVRT when User provided Nodata or VRT Option (cutline)\n        if nodata is not None or vrt_options:\n            vrt_params = {\n                \"add_alpha\": True,\n                \"resampling\": Resampling[reproject_method],\n                \"dtype\": src_dst.dtypes[0],\n            }\n            nodata = nodata if nodata is not None else src_dst.nodata\n            if nodata is not None:\n                vrt_params.update(\n                    {\"nodata\": nodata, \"add_alpha\": False, \"src_nodata\": nodata}\n                )\n\n            if has_alpha_band(src_dst):\n                vrt_params.update({\"add_alpha\": False})\n\n            if vrt_options:\n                vrt_params.update(**vrt_options)\n\n            dataset = ctx.enter_context(WarpedVRT(src_dst, **vrt_params))\n\n        else:\n            dataset = src_dst\n\n        lon, lat = coordinates\n        if coord_crs != dataset.crs:\n            xs, ys = transform_coords(coord_crs, dataset.crs, [lon], [lat])\n            lon, lat = xs[0], ys[0]\n\n        dataset_min_lon, dataset_min_lat, dataset_max_lon, dataset_max_lat = (\n            dataset.bounds\n        )\n        # check if latitude is inverted\n        if dataset_min_lat > dataset_max_lat:\n            warnings.warn(\n                \"BoundingBox of the dataset is inverted (minLat > maxLat).\",\n                UserWarning,\n            )\n\n        dataset_min_lat, dataset_max_lat = (\n            min(dataset_min_lat, dataset_max_lat),\n            max(dataset_min_lat, dataset_max_lat),\n        )\n        if not (\n            (dataset_min_lon < lon < dataset_max_lon)\n            and (dataset_min_lat < lat < dataset_max_lat)\n        ):\n            raise PointOutsideBounds(\"Point is outside dataset bounds\")\n\n        if interpolate:\n            # Ref: https://github.com/cogeotiff/rio-tiler/issues/793\n            # https://github.com/OSGeo/gdal/blob/a3d68b069e6b3676ba437faca5dca6ae2076ce24/swig/python/gdal-utils/osgeo_utils/samples/gdallocationinfo.py#L185-L197\n            rows, cols = rowcol(dataset.transform, xs=[lon], ys=[lat], op=lambda x: x)\n            row, col = float(rows[0]), float(cols[0])\n            row_off, col_off = row - 0.5, col - 0.5\n\n        else:\n            if resampling_method != \"nearest\":\n                warnings.warn(\n                    f\"{resampling_method} resampling will be ignored when `interpolate=False`.\",\n                    UserWarning,\n                )\n\n            row, col = dataset.index(lon, lat)\n            row_off, col_off = row, col\n\n        window = windows.Window(row_off=row_off, col_off=col_off, width=1, height=1)\n\n        img = read(\n            dataset,\n            indexes=indexes,\n            window=window,\n            out_dtype=out_dtype,\n            resampling_method=resampling_method,\n            unscale=unscale,\n            post_process=post_process,\n        )\n\n        return PointData(\n            img.array[:, 0, 0],\n            band_names=img.band_names,\n            band_descriptions=img.band_descriptions,\n            coordinates=coordinates,\n            crs=coord_crs,\n            pixel_location=(col, row),\n            nodata=img.nodata,\n            metadata=img.metadata,\n        )\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cogeotiff/rio-tiler/blob/f0197bfc5ec95215451bf401e0e0f3092b41e64e/rio_tiler/reader.py#L521-L644",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F292"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20rasterio%20for%20geospatial%20transformations%20and%20spatial%20analysis&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F277"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import rasterio\n\nwith rasterio.open(\"example.tif\") as dataset:\n    band = dataset.read(1)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://rasterio.readthedocs.io/en/stable/quickstart.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F282"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python geospatial library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#geopandas",
          "label": [
            {
              "t": "text",
              "text": "GeoPandas"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most vector analysis, with geometry columns on a pandas DataFrame. "
        },
        {
          "t": "link",
          "href": "#shapely",
          "label": [
            {
              "t": "text",
              "text": "Shapely"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits operations on individual geometries. "
        },
        {
          "t": "link",
          "href": "#rasterio",
          "label": [
            {
              "t": "text",
              "text": "Rasterio"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits satellite images and other raster datasets."
        }
      ]
    },
    {
      "q": "What is GeoPandas?",
      "a": [
        {
          "t": "link",
          "href": "#geopandas",
          "label": [
            {
              "t": "text",
              "text": "GeoPandas"
            }
          ]
        },
        {
          "t": "text",
          "text": " extends pandas with geometry columns, spatial operations, and reading and writing of geospatial files."
        }
      ]
    },
    {
      "q": "What is Shapely?",
      "a": [
        {
          "t": "link",
          "href": "#shapely",
          "label": [
            {
              "t": "text",
              "text": "Shapely"
            }
          ]
        },
        {
          "t": "text",
          "text": " manipulates and analyzes geometric objects such as points, lines, and polygons in a Cartesian plane. "
        },
        {
          "t": "link",
          "href": "#pyproj",
          "label": [
            {
              "t": "text",
              "text": "pyproj"
            }
          ]
        },
        {
          "t": "text",
          "text": " handles transformations between coordinate systems."
        }
      ]
    },
    {
      "q": "What is geopy?",
      "a": [
        {
          "t": "link",
          "href": "#geopy",
          "label": [
            {
              "t": "text",
              "text": "geopy"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a geocoding toolbox that turns addresses into coordinates and coordinates into addresses through outside geocoding services."
        }
      ]
    },
    {
      "q": "What is Rasterio?",
      "a": [
        {
          "t": "link",
          "href": "#rasterio",
          "label": [
            {
              "t": "text",
              "text": "Rasterio"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads and writes geospatial raster datasets as NumPy arrays."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, shapely",
      "display": "Shapely",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, shapely",
      "display": "75.3M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, shapely",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, shapely",
      "display": "2.2.0, Oct 2026",
      "asOf": "2026-10-07"
    },
    "F5": {
      "label": "Package release date, shapely",
      "display": "Oct 2026",
      "asOf": "2026-10-07"
    },
    "F6": {
      "label": "Repository stars, shapely",
      "display": "4.5K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Vector overlays, shapely",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Array inputs, shapely",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "CRS transforms, shapely",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Output formats, shapely",
      "display": "GeoJSON",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, shapely",
      "display": "pip install shapely",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, shapely",
      "display": "Manipulates and analyzes geometric objects in a Cartesian plane.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, shapely",
      "display": "Combines and intersects shapes",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, shapely",
      "display": "Use union and intersection for operations on individual geometries.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, shapely",
      "display": "Processes arrays of geometries",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, shapely",
      "display": "Apply vectorized functions to geometry arrays.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, shapely",
      "display": "Geometric analysis ignores height",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, shapely",
      "display": "Use another approach when height must affect geometric measurements.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, shapely",
      "display": "CRS conversion needs another engine",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, shapely",
      "display": "Use PyProj when converting between coordinate reference systems.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, shapely",
      "display": "from shapely import Point\n\npatch = Point(0.0, 0.0).buffer(10.0)\n\npatch\n\npatch.area\n\nimport shapely\n\nimport numpy as np\n\ngeoms = np.array([Point(0, 0), Point(1, 1), Point(2, 2)])\n\npolygon = shapely.box(0, 0, 2, 2)\n\nshapely.contains(polygon, geoms)\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, shapely",
      "display": "@gis_mcp.tool()\ndef project_geometry(geometry: str, source_crs: str, \n                    target_crs: str) -> Dict[str, Any]:\n    \"\"\"Project a geometry between CRS.\"\"\"\n    try:\n        from shapely import wkt\n        from shapely.ops import transform\n        from pyproj import Transformer\n        geom = wkt.loads(geometry)\n        transformer = Transformer.from_crs(source_crs, target_crs, always_xy=True)\n        projected = transform(transformer.transform, geom)\n        return {\n            \"status\": \"success\",\n            \"geometry\": projected.wkt,\n            \"source_crs\": source_crs,\n            \"target_crs\": target_crs,\n            \"message\": \"Geometry projected successfully\"\n        }\n    except Exception as e:\n        logger.error(f\"Error projecting geometry: {str(e)}\")\n        raise ValueError(f\"Failed to project geometry: {str(e)}\")\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, shapely",
      "display": "pyproj_functions.py · project_geometry()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, shapely",
      "display": "mahdin75/gis-mcp",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, mahdin75/gis-mcp",
      "display": "207",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, mahdin75/gis-mcp",
      "display": "Aug 2026",
      "asOf": "2026-08-21"
    },
    "F27": {
      "label": "Library name, pyproj",
      "display": "pyproj",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, pyproj",
      "display": "25.2M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, pyproj",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, pyproj",
      "display": "3.8.0, Sep 2026",
      "asOf": "2026-09-05"
    },
    "F31": {
      "label": "Package release date, pyproj",
      "display": "Sep 2026",
      "asOf": "2026-09-05"
    },
    "F32": {
      "label": "Repository stars, pyproj",
      "display": "1.2K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Array inputs, pyproj",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "CRS transforms, pyproj",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Output formats, pyproj",
      "display": "WKT",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, pyproj",
      "display": "pip install pyproj",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, pyproj",
      "display": "Provides Python access to PROJ for coordinate transformations and projection definitions.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, pyproj",
      "display": "Transforms between coordinate systems",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, pyproj",
      "display": "Use Transformer for coordinate and datum conversions.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, pyproj",
      "display": "Accepts coordinate arrays",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, pyproj",
      "display": "Transform batches of coordinate values through the same API.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, pyproj",
      "display": "Axis order can change",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, pyproj",
      "display": "Use always_xy when the caller supplies longitude before latitude.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, pyproj",
      "display": "Transformation grids are installed separately",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, pyproj",
      "display": "Install required grids when a chosen datum conversion needs them.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, pyproj",
      "display": "from pyproj import Transformer\n\ntransformer = Transformer.from_crs(\"EPSG:4326\", \"EPSG:26917\", always_xy=True)\n\ntransformer.transform(-80, 50)\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, pyproj",
      "display": "@gis_mcp.tool()\ndef transform_coordinates(coordinates: List[float], source_crs: str, \n                        target_crs: str) -> Dict[str, Any]:\n    \"\"\"Transform coordinates between CRS.\"\"\"\n    try:\n        from pyproj import Transformer\n        transformer = Transformer.from_crs(source_crs, target_crs, always_xy=True)\n        x, y = coordinates\n        x_transformed, y_transformed = transformer.transform(x, y)\n        return {\n            \"status\": \"success\",\n            \"coordinates\": [x_transformed, y_transformed],\n            \"source_crs\": source_crs,\n            \"target_crs\": target_crs,\n            \"message\": \"Coordinates transformed successfully\"\n        }\n    except Exception as e:\n        logger.error(f\"Error transforming coordinates: {str(e)}\")\n        raise ValueError(f\"Failed to transform coordinates: {str(e)}\")\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, pyproj",
      "display": "pyproj_functions.py · transform_coordinates()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, pyproj",
      "display": "mahdin75/gis-mcp",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, mahdin75/gis-mcp",
      "display": "207",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, mahdin75/gis-mcp",
      "display": "Aug 2026",
      "asOf": "2026-08-21"
    },
    "F52": {
      "label": "Library name, geopandas",
      "display": "GeoPandas",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, geopandas",
      "display": "14.5M",
      "asOf": "2026-11-16"
    },
    "F54": {
      "label": "License, geopandas",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, geopandas",
      "display": "1.2.0, Sep 2026",
      "asOf": "2026-09-28"
    },
    "F56": {
      "label": "Package release date, geopandas",
      "display": "Sep 2026",
      "asOf": "2026-09-28"
    },
    "F57": {
      "label": "Repository stars, geopandas",
      "display": "5.3K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Vector overlays, geopandas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Array inputs, geopandas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "CRS transforms, geopandas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Writes spatial files, geopandas",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Output formats, geopandas",
      "display": "GeoJSON",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, geopandas",
      "display": "pip install geopandas matplotlib geodatasets",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, geopandas",
      "display": "Extends pandas with geometry columns, spatial operations, and geospatial file handling.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, geopandas",
      "display": "Combines geometry with table columns",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, geopandas",
      "display": "Retain attributes from both tables when overlaying spatial datasets.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, geopandas",
      "display": "Reprojects geometry columns",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, geopandas",
      "display": "Use to_crs to transform the active geometry column.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, geopandas",
      "display": "Dateline crossings distort reprojection",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, geopandas",
      "display": "Check geometries that cross the dateline or other projection boundaries.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, geopandas",
      "display": "import pandas as pd\nimport geopandas\nimport matplotlib.pyplot as plt\nfrom geodatasets import get_path\n\n\ndf = pd.DataFrame(\n    {\n        \"City\": [\"Buenos Aires\", \"Brasilia\", \"Santiago\", \"Bogota\", \"Caracas\"],\n        \"Country\": [\"Argentina\", \"Brazil\", \"Chile\", \"Colombia\", \"Venezuela\"],\n        \"Latitude\": [-34.58, -15.78, -33.45, 4.60, 10.48],\n        \"Longitude\": [-58.66, -47.91, -70.66, -74.08, -66.86],\n    }\n)\n\n\ngdf = geopandas.GeoDataFrame(\n    df, geometry=geopandas.points_from_xy(df.Longitude, df.Latitude), crs=\"EPSG:4326\"\n)\n\n\nprint(gdf.head())\n\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, geopandas",
      "display": "def project_gdf(\n    gdf: gpd.GeoDataFrame,\n    *,\n    to_crs: Any | None = None,  # noqa: ANN401\n    to_latlong: bool = False,\n) -> gpd.GeoDataFrame:\n    # ...\n    if gdf.crs is None or len(gdf) == 0:  # pragma: no cover\n        msg = \"`gdf` must have a valid CRS and cannot be empty.\"\n        raise ValueError(msg)\n\n    # if to_latlong is True, project the gdf to the default_crs\n    if to_latlong:\n        to_crs = settings.default_crs\n\n    # else if to_crs is None, choose an appropriate UTM zone\n    elif to_crs is None:\n        UTM_NORTH_LIMIT = 84\n        UTM_SOUTH_LIMIT = -80\n        centroid = gdf.union_all().centroid\n\n        # if gdf is already projected, temporarily re-project centroid to\n        # lat-long to check against UTM (lat-long) north/south limits\n        if is_projected(gdf.crs):\n            centroid, _ = project_geometry(centroid, crs=gdf.crs, to_latlong=True)\n\n        # if centroid is north or south of UTM limits, use UPS CRS instead\n        if centroid.y < UTM_SOUTH_LIMIT:\n            to_crs = \"epsg:32761\"\n        elif centroid.y > UTM_NORTH_LIMIT:\n            to_crs = \"epsg:32661\"\n        else:\n            # otherwise, we're within UTM limits, so choose a UTM zone\n            to_crs = gdf.estimate_utm_crs()\n\n    # project the gdf\n    gdf_proj = gdf.to_crs(to_crs)\n    crs_desc = f\"{gdf_proj.crs.to_string()} / {gdf_proj.crs.name}\"\n\n    msg = f\"Projected GeoDataFrame to {crs_desc!r}\"\n    utils.log(msg, level=lg.INFO)\n    return gdf_proj\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, geopandas",
      "display": "projection.py · project_gdf()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, geopandas",
      "display": "gboeing/osmnx",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, gboeing/osmnx",
      "display": "5.9K",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, gboeing/osmnx",
      "display": "Nov 2026",
      "asOf": "2026-11-15"
    },
    "F77": {
      "label": "Library name, rasterio",
      "display": "Rasterio",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, rasterio",
      "display": "7.0M",
      "asOf": "2026-11-16"
    },
    "F79": {
      "label": "License, rasterio",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, rasterio",
      "display": "1.5.2, Sep 2026",
      "asOf": "2026-09-30"
    },
    "F81": {
      "label": "Package release date, rasterio",
      "display": "Sep 2026",
      "asOf": "2026-09-30"
    },
    "F82": {
      "label": "Repository stars, rasterio",
      "display": "2.6K",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Array inputs, rasterio",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "CRS transforms, rasterio",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Writes spatial files, rasterio",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Output formats, rasterio",
      "display": "GeoTIFF",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, rasterio",
      "display": "pip install rasterio",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, rasterio",
      "display": "Reads and writes geospatial raster datasets through NumPy-based Python APIs.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, rasterio",
      "display": "Works directly with raster arrays",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, rasterio",
      "display": "Read and write pixel bands as array data.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, rasterio",
      "display": "Reprojects raster grids",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, rasterio",
      "display": "Use reproject to map arrays into another geospatial grid.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, rasterio",
      "display": "Writing support varies by driver",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, rasterio",
      "display": "Use GeoTIFF for the best-supported writing path.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Quickstart, rasterio",
      "display": "import rasterio\n\nimport numpy as np\n\nx = np.linspace(-4.0, 4.0, 240)\n\ny = np.linspace(-3.0, 3.0, 180)[::-1]\n\nX, Y = np.meshgrid(x, y)\n\nZ1 = np.exp(-2 * np.log(2) * ((X - 0.5) ** 2 + (Y - 0.5) ** 2) / 1 ** 2)\n\nZ2 = np.exp(-3 * np.log(2) * ((X + 0.5) ** 2 + (Y + 0.5) ** 2) / 2.5 ** 2)\n\nZ = 10.0 * (Z2 - Z1)\n\nfrom rasterio.transform import Affine\n\nres = (x[-1] - x[0]) / 240.0\n\ntransform = Affine.translation(x[0] - res / 2, y[0] + res / 2) * Affine.scale(res, -res)\n\ntransform\n\nwith rasterio.open(\n    '/tmp/new.tif',\n    'w',\n    driver='GTiff',\n    height=Z.shape[0],\n    width=Z.shape[1],\n    count=1,\n    dtype=Z.dtype,\n    crs='+proj=latlong',\n    transform=transform,\n) as dst:\n    dst.write(Z, 1)\n\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project function, rasterio",
      "display": "def point(\n    src_dst: DatasetReader | DatasetWriter | WarpedVRT,\n    coordinates: tuple[float, float],\n    indexes: Indexes | None = None,\n    coord_crs: CRS = WGS84_CRS,\n    nodata: NoData | None = None,\n    vrt_options: dict | None = None,\n    out_dtype: str | numpy.dtype | None = None,\n    resampling_method: RIOResampling = \"nearest\",\n    reproject_method: WarpResampling = \"nearest\",\n    interpolate: bool = False,\n    unscale: bool = False,\n    post_process: Callable[[numpy.ma.MaskedArray], numpy.ma.MaskedArray] | None = None,\n) -> PointData:\n    # ...\n    indexes = cast_to_sequence(indexes)\n\n    with contextlib.ExitStack() as ctx:\n        # Use WarpedVRT when User provided Nodata or VRT Option (cutline)\n        if nodata is not None or vrt_options:\n            vrt_params = {\n                \"add_alpha\": True,\n                \"resampling\": Resampling[reproject_method],\n                \"dtype\": src_dst.dtypes[0],\n            }\n            nodata = nodata if nodata is not None else src_dst.nodata\n            if nodata is not None:\n                vrt_params.update(\n                    {\"nodata\": nodata, \"add_alpha\": False, \"src_nodata\": nodata}\n                )\n\n            if has_alpha_band(src_dst):\n                vrt_params.update({\"add_alpha\": False})\n\n            if vrt_options:\n                vrt_params.update(**vrt_options)\n\n            dataset = ctx.enter_context(WarpedVRT(src_dst, **vrt_params))\n\n        else:\n            dataset = src_dst\n\n        lon, lat = coordinates\n        if coord_crs != dataset.crs:\n            xs, ys = transform_coords(coord_crs, dataset.crs, [lon], [lat])\n            lon, lat = xs[0], ys[0]\n\n        dataset_min_lon, dataset_min_lat, dataset_max_lon, dataset_max_lat = (\n            dataset.bounds\n        )\n        # check if latitude is inverted\n        if dataset_min_lat > dataset_max_lat:\n            warnings.warn(\n                \"BoundingBox of the dataset is inverted (minLat > maxLat).\",\n                UserWarning,\n            )\n\n        dataset_min_lat, dataset_max_lat = (\n            min(dataset_min_lat, dataset_max_lat),\n            max(dataset_min_lat, dataset_max_lat),\n        )\n        if not (\n            (dataset_min_lon < lon < dataset_max_lon)\n            and (dataset_min_lat < lat < dataset_max_lat)\n        ):\n            raise PointOutsideBounds(\"Point is outside dataset bounds\")\n\n        if interpolate:\n            # Ref: https://github.com/cogeotiff/rio-tiler/issues/793\n            # https://github.com/OSGeo/gdal/blob/a3d68b069e6b3676ba437faca5dca6ae2076ce24/swig/python/gdal-utils/osgeo_utils/samples/gdallocationinfo.py#L185-L197\n            rows, cols = rowcol(dataset.transform, xs=[lon], ys=[lat], op=lambda x: x)\n            row, col = float(rows[0]), float(cols[0])\n            row_off, col_off = row - 0.5, col - 0.5\n\n        else:\n            if resampling_method != \"nearest\":\n                warnings.warn(\n                    f\"{resampling_method} resampling will be ignored when `interpolate=False`.\",\n                    UserWarning,\n                )\n\n            row, col = dataset.index(lon, lat)\n            row_off, col_off = row, col\n\n        window = windows.Window(row_off=row_off, col_off=col_off, width=1, height=1)\n\n        img = read(\n            dataset,\n            indexes=indexes,\n            window=window,\n            out_dtype=out_dtype,\n            resampling_method=resampling_method,\n            unscale=unscale,\n            post_process=post_process,\n        )\n\n        return PointData(\n            img.array[:, 0, 0],\n            band_names=img.band_names,\n            band_descriptions=img.band_descriptions,\n            coordinates=coordinates,\n            crs=coord_crs,\n            pixel_location=(col, row),\n            nodata=img.nodata,\n            metadata=img.metadata,\n        )\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project function reference, rasterio",
      "display": "reader.py · point()",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project repository, rasterio",
      "display": "cogeotiff/rio-tiler",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project stars, cogeotiff/rio-tiler",
      "display": "594",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project push date, cogeotiff/rio-tiler",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F101": {
      "label": "Developer need",
      "display": "Spatial tables and attributes",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose geopandas",
      "display": "combining geometry with table columns",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "spatial tables and attributes",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Individual shape operations",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose shapely",
      "display": "intersecting and combining geometries",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "individual shape operations",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider geopandas",
      "display": "spatial operations must preserve table attributes",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Coordinate-system transformations",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose pyproj",
      "display": "coordinate and datum conversions",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "coordinate-system transformations",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider geopandas",
      "display": "an entire geometry column needs reprojection",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need",
      "display": "Raster grid workflows",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Why choose rasterio",
      "display": "reading and writing raster bands",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need in introduction",
      "display": "raster grid workflows",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Page introduction",
      "display": "Python geospatial libraries let developers analyze geometry and geographic coordinates.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which Python geospatial library should I choose?",
      "display": "GeoPandas combines geometry with tabular data.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which Python geospatial library should I choose?",
      "display": "Shapely manipulates geometric objects in a Cartesian plane.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which Python geospatial library should I choose?",
      "display": "pyproj provides coordinate-system transformations.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Which Python geospatial library should I choose?",
      "display": "Rasterio reads and writes raster datasets.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: What is the difference between a geometry overlay and raster masking?",
      "display": "GeoPandas overlays perform intersections, unions, and differences at the table level.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: What is the difference between a geometry overlay and raster masking?",
      "display": "Shapely intersection operates on geometric objects.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: What is the difference between a geometry overlay and raster masking?",
      "display": "Rasterio’s example reads a raster validity mask and extracts its feature shapes.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does Shapely include coordinate-reference-system conversion?",
      "display": "Shapely does not perform coordinate-system transformation on its own.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Shapely include coordinate-reference-system conversion?",
      "display": "Its reprojection example uses PyProj as the coordinate engine.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does Shapely use height in distance and area analysis?",
      "display": "Geometric analysis is planar and ignores the height coordinate.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does GeoPandas to_crs model curved geodesic segments?",
      "display": "It transforms points and assumes connecting segments are straight in the current projection, rather than geodesics.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: What happens when a GeoPandas geometry crosses the dateline?",
      "display": "Reprojection can produce undesirable behavior for shapes crossing the dateline or another projection boundary.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Why can pyproj swap latitude and longitude?",
      "display": "Axis order follows the source and destination CRS definitions.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Why can pyproj swap latitude and longitude?",
      "display": "always_xy preserves conventional x,y coordinate order.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Are transformation grids bundled with pyproj wheels?",
      "display": "The documented wheels do not include transformation grids.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: What kinds of arrays do these libraries accept?",
      "display": "GeoPandas can build point geometries from coordinate iterables.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: What kinds of arrays do these libraries accept?",
      "display": "Shapely vectorized functions operate on arrays of geometries.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: What kinds of arrays do these libraries accept?",
      "display": "pyproj Transformer accepts scalar or array coordinate values.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: What kinds of arrays do these libraries accept?",
      "display": "Rasterio writes array data into raster bands.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Does geometry serialization mean the library writes a dataset file?",
      "display": "Shapely to_geojson returns a GeoJSON geometry representation.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Does geometry serialization mean the library writes a dataset file?",
      "display": "GeoPandas to_file writes a GeoDataFrame to a spatial format.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: Does pyproj WKT output contain the geometry?",
      "display": "CRS.to_wkt converts the projection definition to a WKT string.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "FAQ: Which raster writing format has the strongest Rasterio support?",
      "display": "Its own writing guidance recommends GeoTIFF as the best-tested and best-supported writing format.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "Library name, shapely",
      "display": "Shapely",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Monthly downloads, shapely",
      "display": "78.4M",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "License, shapely",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Package release, shapely",
      "display": "2.2.0",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Package release date, shapely",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Install, shapely",
      "display": "python -m pip install shapely==2.2.0",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Quickstart, shapely",
      "display": "from shapely import Point\n\npoint = Point(0, 0)\nbuffer = point.buffer(1)\n",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Vector dataset I/O, shapely",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Raster dataset I/O, shapely",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Native CRS transformations, shapely",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Geometry predicates or buffers, shapely",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Spatial indexing, shapely",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Ellipsoidal geodesic distances, shapely",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Native GIS workflow, shapely",
      "display": "Planar geometry predicates, buffers, overlays, and STRtree; geometries do not carry CRS.",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project function, shapely",
      "display": "@gis_mcp.tool()\ndef project_geometry(geometry: str, source_crs: str, \n                    target_crs: str) -> Dict[str, Any]:\n    \"\"\"Project a geometry between CRS.\"\"\"\n    try:\n        from shapely import wkt\n        from shapely.ops import transform\n        from pyproj import Transformer\n        geom = wkt.loads(geometry)\n        transformer = Transformer.from_crs(source_crs, target_crs, always_xy=True)\n        projected = transform(transformer.transform, geom)\n        return {\n            \"status\": \"success\",\n            \"geometry\": projected.wkt,\n            \"source_crs\": source_crs,\n            \"target_crs\": target_crs,\n            \"message\": \"Geometry projected successfully\"\n        }\n    except Exception as e:\n        logger.error(f\"Error projecting geometry: {str(e)}\")\n        raise ValueError(f\"Failed to project geometry: {str(e)}\")\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project source file, shapely",
      "display": "src/gis_mcp/pyproj_functions.py",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Project full_name, shapely",
      "display": "mahdin75/gis-mcp",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project stargazers_count, shapely",
      "display": "207",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Library name, pyproj",
      "display": "pyproj",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Monthly downloads, pyproj",
      "display": "26.3M",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "License, pyproj",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Package release, pyproj",
      "display": "3.8.0",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Package release date, pyproj",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Install, pyproj",
      "display": "python -m pip install pyproj==3.8.0",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Quickstart, pyproj",
      "display": "from pyproj import Transformer\n\ntransformer = Transformer.from_crs(4326, 3857, always_xy=True)\nx, y = transformer.transform(-75, 40)\n",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Vector dataset I/O, pyproj",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Raster dataset I/O, pyproj",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Native CRS transformations, pyproj",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Geometry predicates or buffers, pyproj",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Spatial indexing, pyproj",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Ellipsoidal geodesic distances, pyproj",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Native GIS workflow, pyproj",
      "display": "PROJ CRS definitions and transformations plus ellipsoidal Geod calculations.",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project function, pyproj",
      "display": "@gis_mcp.tool()\ndef transform_coordinates(coordinates: List[float], source_crs: str, \n                        target_crs: str) -> Dict[str, Any]:\n    \"\"\"Transform coordinates between CRS.\"\"\"\n    try:\n        from pyproj import Transformer\n        transformer = Transformer.from_crs(source_crs, target_crs, always_xy=True)\n        x, y = coordinates\n        x_transformed, y_transformed = transformer.transform(x, y)\n        return {\n            \"status\": \"success\",\n            \"coordinates\": [x_transformed, y_transformed],\n            \"source_crs\": source_crs,\n            \"target_crs\": target_crs,\n            \"message\": \"Coordinates transformed successfully\"\n        }\n    except Exception as e:\n        logger.error(f\"Error transforming coordinates: {str(e)}\")\n        raise ValueError(f\"Failed to transform coordinates: {str(e)}\")\n",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project source file, pyproj",
      "display": "src/gis_mcp/pyproj_functions.py",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project full_name, pyproj",
      "display": "mahdin75/gis-mcp",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project stargazers_count, pyproj",
      "display": "207",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project function, pyproj",
      "display": "def _to_file_fiona(df, filename, driver, schema, crs, mode, metadata, **kwargs):\n    if not HAS_PYPROJ and crs:\n        raise ImportError(\n            \"The 'pyproj' package is required to write a file with a CRS, but it is not\"\n            \" installed or does not import correctly.\"\n        )\n\n    if schema is None:\n        schema = infer_schema(df)\n\n    if crs:\n        from pyproj import CRS\n\n        crs = CRS.from_user_input(crs)\n    else:\n        crs = df.crs\n\n    with fiona_env():\n        crs_wkt = None\n        try:\n            gdal_version = Version(\n                fiona.env.get_gdal_release_name().strip(\"e\")\n            )  # GH3147\n        except (AttributeError, ValueError):\n            gdal_version = Version(\"2.0.0\")  # just assume it is not the latest\n        if gdal_version >= Version(\"3.0.0\") and crs:\n            crs_wkt = crs.to_wkt()\n        elif crs:\n            crs_wkt = crs.to_wkt(\"WKT1_GDAL\")\n        with fiona.open(\n            filename, mode=mode, driver=driver, crs_wkt=crs_wkt, schema=schema, **kwargs\n        ) as colxn:\n            if metadata is not None:\n                colxn.update_tags(metadata)\n            colxn.writerecords(df.iterfeatures())",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project source file, pyproj",
      "display": "geopandas/io/file.py",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project full_name, pyproj",
      "display": "geopandas/geopandas",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project stargazers_count, pyproj",
      "display": "5.3K",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Library name, h3",
      "display": "h3-py",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Monthly downloads, h3",
      "display": "14.8M",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "License, h3",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Package release, h3",
      "display": "4.5.1",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release date, h3",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Install, h3",
      "display": "python -m pip install h3==4.5.1",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart, h3",
      "display": "import h3\n\ncell = h3.latlng_to_cell(37.77, -122.42, 9)\n",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Official description, h3",
      "display": "Indexes locations with the Uber hierarchical hexagonal geospatial indexing system.",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Quickstart source file, h3",
      "display": "api_quick.html",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Vector dataset I/O, h3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Raster dataset I/O, h3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Native CRS transformations, h3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Geometry predicates or buffers, h3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Spatial indexing, h3",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Ellipsoidal geodesic distances, h3",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Native GIS workflow, h3",
      "display": "Global hierarchical hexagonal geographic indexing and grid paths; not a bounding-box R-tree.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project function, h3",
      "display": "@sequential_deduplication\ndef linetrace(geometry: MultiLineOrLine, resolution: int) -> Iterator[str]:\n    \"\"\"h3.polyfill equivalent for shapely (Multi)LineString\n    Does not represent lines with duplicate sequential cells,\n    but cells may repeat non-sequentially to represent\n    self-intersections\n\n    Parameters\n    ----------\n    geometry : LineString or MultiLineString\n        Line to trace with H3 cells\n    resolution : int\n        H3 resolution of the tracing cells\n\n    Returns\n    -------\n    Set of H3 addresses\n\n    Raises\n    ------\n    TypeError if geometry is not a LineString or a MultiLineString\n    \"\"\"\n    if isinstance(geometry, MultiLineString):\n        # Recurse after getting component linestrings from the multiline\n        for line in map(lambda geom: linetrace(geom, resolution), geometry.geoms):\n            yield from line\n    elif isinstance(geometry, LineString):\n        coords = zip(geometry.coords, geometry.coords[1:])\n        while (vertex_pair := next(coords, None)) is not None:\n            i, j = vertex_pair\n            a = h3.latlng_to_cell(*i[::-1], resolution)\n            b = h3.latlng_to_cell(*j[::-1], resolution)\n            yield from h3.grid_path_cells(a, b)  # inclusive of a and b\n    else:\n        raise TypeError(f\"Unknown type {type(geometry)}\")",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Project source file, h3",
      "display": "h3pandas/util/shapely.py",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Project full_name, h3",
      "display": "DahnJ/H3-Pandas",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project stargazers_count, h3",
      "display": "223",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Library name, geopandas",
      "display": "GeoPandas",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Monthly downloads, geopandas",
      "display": "14.8M",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "License, geopandas",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Package release, geopandas",
      "display": "1.2.0",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Package release date, geopandas",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Install, geopandas",
      "display": "python -m pip install geopandas==1.2.0",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Quickstart, geopandas",
      "display": "import geopandas as gpd\nfrom shapely import Point\n\npoints = gpd.GeoSeries([Point(-75, 40)], crs=\"EPSG:4326\")\nprojected = points.to_crs(\"EPSG:3857\")\n",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Vector dataset I/O, geopandas",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Raster dataset I/O, geopandas",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Native CRS transformations, geopandas",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Geometry predicates or buffers, geopandas",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Spatial indexing, geopandas",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Ellipsoidal geodesic distances, geopandas",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Native GIS workflow, geopandas",
      "display": "Geometry-aware dataframes using Shapely, Pyproj, and vector I/O engines; package counters overlap those dependencies.",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Project function, geopandas",
      "display": "def project_gdf(\n    gdf: gpd.GeoDataFrame,\n    *,\n    to_crs: Any | None = None,  # noqa: ANN401\n    to_latlong: bool = False,\n) -> gpd.GeoDataFrame:\n    \"\"\"\n    Project a GeoDataFrame from its current CRS to another.\n\n    If `to_latlong` is True, this projects the GeoDataFrame to the coordinate\n    reference system defined by `settings.default_crs`. Otherwise it projects\n    it to the CRS defined by `to_crs`. If `to_crs` is `None`, it projects it\n    to the CRS of an appropriate UTM (or UPS) zone given `gdf`'s bounds.\n\n    Parameters\n    ----------\n    gdf\n        The GeoDataFrame to be projected.\n    to_crs\n        If None, project to an appropriate UTM zone. Otherwise project to\n        this CRS.\n    to_latlong\n        If True, project to `settings.default_crs` and ignore `to_crs`.\n\n    Returns\n    -------\n    gdf_proj\n        The projected GeoDataFrame.\n    \"\"\"\n    if gdf.crs is None or len(gdf) == 0:  # pragma: no cover\n        msg = \"`gdf` must have a valid CRS and cannot be empty.\"\n        raise ValueError(msg)\n\n    # if to_latlong is True, project the gdf to the default_crs\n    if to_latlong:\n        to_crs = settings.default_crs\n\n    # else if to_crs is None, choose an appropriate UTM zone\n    elif to_crs is None:\n        UTM_NORTH_LIMIT = 84\n        UTM_SOUTH_LIMIT = -80\n        centroid = gdf.union_all().centroid\n\n        # if gdf is already projected, temporarily re-project centroid to\n        # lat-long to check against UTM (lat-long) north/south limits\n        if is_projected(gdf.crs):\n            centroid, _ = project_geometry(centroid, crs=gdf.crs, to_latlong=True)\n\n        # if centroid is north or south of UTM limits, use UPS CRS instead\n        if centroid.y < UTM_SOUTH_LIMIT:\n            to_crs = \"epsg:32761\"\n        elif centroid.y > UTM_NORTH_LIMIT:\n            to_crs = \"epsg:32661\"\n        else:\n            # otherwise, we're within UTM limits, so choose a UTM zone\n            to_crs = gdf.estimate_utm_crs()\n\n    # project the gdf\n    gdf_proj = gdf.to_crs(to_crs)\n    crs_desc = f\"{gdf_proj.crs.to_string()} / {gdf_proj.crs.name}\"\n\n    msg = f\"Projected GeoDataFrame to {crs_desc!r}\"\n    utils.log(msg, level=lg.INFO)\n    return gdf_proj\n",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Project source file, geopandas",
      "display": "osmnx/projection.py",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Project full_name, geopandas",
      "display": "gboeing/osmnx",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Project stargazers_count, geopandas",
      "display": "5.9K",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Library name, pyogrio",
      "display": "Pyogrio",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Monthly downloads, pyogrio",
      "display": "14.2M",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "License, pyogrio",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Package release, pyogrio",
      "display": "0.13.0",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Package release date, pyogrio",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Install, pyogrio",
      "display": "python -m pip install pyogrio==0.13.0",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Quickstart, pyogrio",
      "display": "import pyogrio\n\ndrivers = pyogrio.list_drivers()\n",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Official description, pyogrio",
      "display": "Reads and writes spatial vector file formats in vectorized form through GDAL and OGR.",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Quickstart source file, pyogrio",
      "display": "api.html",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Vector dataset I/O, pyogrio",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Raster dataset I/O, pyogrio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Native CRS transformations, pyogrio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Geometry predicates or buffers, pyogrio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Spatial indexing, pyogrio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Ellipsoidal geodesic distances, pyogrio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Native GIS workflow, pyogrio",
      "display": "Bulk GDAL/OGR vector dataset I/O and spatial/SQL filtering; not a standalone geometry/CRS algorithm suite.",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Project function, pyogrio",
      "display": "def _to_file_pyogrio(df, filename, driver, schema, crs, mode, metadata, **kwargs):\n    import pyogrio\n\n    if schema is not None:\n        raise ValueError(\n            \"The 'schema' argument is not supported with the 'pyogrio' engine.\"\n        )\n\n    if mode == \"a\":\n        kwargs[\"append\"] = True\n\n    if crs is not None:\n        raise ValueError(\"Passing 'crs' is not supported with the 'pyogrio' engine.\")\n\n    # for the fiona engine, this check is done in gdf.iterfeatures()\n    if not df.columns.is_unique:\n        raise ValueError(\"GeoDataFrame cannot contain duplicated column names.\")\n\n    pyogrio.write_dataframe(df, filename, driver=driver, metadata=metadata, **kwargs)",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project source file, pyogrio",
      "display": "geopandas/io/file.py",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project full_name, pyogrio",
      "display": "geopandas/geopandas",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project stargazers_count, pyogrio",
      "display": "5.3K",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Library name, rtree",
      "display": "Rtree",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Monthly downloads, rtree",
      "display": "12.2M",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "License, rtree",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Package release, rtree",
      "display": "1.4.1",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Package release date, rtree",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Install, rtree",
      "display": "python -m pip install rtree==1.4.1",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Quickstart, rtree",
      "display": "from rtree import index\n\nspatial_index = index.Index()\nspatial_index.insert(0, (0, 0, 1, 1))\nmatches = list(spatial_index.intersection((0.5, 0.5, 2, 2)))\n",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Official description, rtree",
      "display": "Provides an R-tree spatial index for Python GIS.",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Quickstart source file, rtree",
      "display": "tutorial.html",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Vector dataset I/O, rtree",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Raster dataset I/O, rtree",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Native CRS transformations, rtree",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Geometry predicates or buffers, rtree",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Spatial indexing, rtree",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Ellipsoidal geodesic distances, rtree",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Native GIS workflow, rtree",
      "display": "Multidimensional bounding-box index over libspatialindex, with intersection/nearest queries and persistent indexes.",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Project function, rtree",
      "display": "def bounds_tree(bounds: ArrayLike) -> Any:\n    \"\"\"\n    Given a set of axis aligned bounds create an r-tree for\n    broad-phase collision detection.\n\n    Parameters\n    ------------\n    bounds : (n, 2D) or (n, 2, D) float\n      Non-interleaved bounds where D=dimension\n      E.G a 2D bounds tree:\n      [(minx, miny, maxx, maxy), ...]\n\n    Returns\n    ---------\n    tree : Rtree\n      Tree containing bounds by index\n    \"\"\"\n    import rtree\n\n    # make sure we've copied bounds\n    bounds = np.array(bounds, dtype=np.float64, copy=True)\n    if len(bounds.shape) == 3:\n        # should be min-max per bound\n        if bounds.shape[1] != 2:\n            raise ValueError(\"bounds not (n, 2, dimension)!\")\n        # reshape to one-row-per-hyperrectangle\n        bounds = bounds.reshape((len(bounds), -1))\n    elif len(bounds.shape) != 2 or bounds.size == 0:\n        raise ValueError(\"Bounds must be (n, dimension * 2)!\")\n\n    # check to make sure we have correct shape\n    dimension = bounds.shape[1]\n    if (dimension % 2) != 0:\n        raise ValueError(\"Bounds must be (n,dimension*2)!\")\n    dimension = int(dimension / 2)\n\n    properties = rtree.index.Property(dimension=dimension)\n    # stream load was verified working on import above\n    return rtree.index.Index(\n        zip(np.arange(len(bounds)), bounds, [None] * len(bounds)), properties=properties\n    )",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Project source file, rtree",
      "display": "trimesh/util.py",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Project full_name, rtree",
      "display": "mikedh/trimesh",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project stargazers_count, rtree",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Library name, geopy",
      "display": "geopy",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Monthly downloads, geopy",
      "display": "12.1M",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "License, geopy",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Package release, geopy",
      "display": "2.5.0",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release date, geopy",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Install, geopy",
      "display": "python -m pip install geopy==2.5.0",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Quickstart, geopy",
      "display": "from geopy.distance import geodesic\n\ndistance_km = geodesic((41.49, -71.31), (41.5, -81.69)).km\n",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Official description, geopy",
      "display": "Provides a geocoding toolbox for Python.",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Quickstart source file, geopy",
      "display": "index.html",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Vector dataset I/O, geopy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Raster dataset I/O, geopy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Native CRS transformations, geopy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Geometry predicates or buffers, geopy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Spatial indexing, geopy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Ellipsoidal geodesic distances, geopy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Native GIS workflow, geopy",
      "display": "Offline ellipsoidal/geodesic distances plus clients for geocoding services; only the latter require network providers.",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project function, geopy",
      "display": "def _query(data, forward, provider, throttle_time, **kwargs):\n    # generic wrapper for calls over lists to geopy Geocoders\n    from geopy.geocoders import get_geocoder_for_service\n    from geopy.geocoders.base import GeocoderQueryError\n\n    if forward:\n        if not isinstance(data, pd.Series):\n            data = pd.Series(data)\n    else:\n        if not isinstance(data, geopandas.GeoSeries):\n            data = geopandas.GeoSeries(data)\n\n    if isinstance(provider, str):\n        provider = get_geocoder_for_service(provider)\n\n    coder = provider(**kwargs)\n    results = {}\n    for i, s in data.items():\n        try:\n            if forward:\n                results[i] = coder.geocode(s)\n            else:\n                results[i] = coder.reverse((s.y, s.x), exactly_one=True)\n        except (GeocoderQueryError, ValueError):\n            results[i] = (None, None)\n        time.sleep(throttle_time)\n\n    df = _prepare_geocode_result(results)\n    return df",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project source file, geopy",
      "display": "geopandas/tools/geocoding.py",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project full_name, geopy",
      "display": "geopandas/geopandas",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Project stargazers_count, geopy",
      "display": "5.3K",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Library name, rasterio",
      "display": "Rasterio",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Monthly downloads, rasterio",
      "display": "7.4M",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "License, rasterio",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Package release, rasterio",
      "display": "1.5.2",
      "asOf": "2026-11-20"
    },
    "F281": {
      "label": "Package release date, rasterio",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F282": {
      "label": "Install, rasterio",
      "display": "python -m pip install rasterio==1.5.2",
      "asOf": "2026-11-20"
    },
    "F283": {
      "label": "Quickstart, rasterio",
      "display": "import rasterio\n\nwith rasterio.open(\"example.tif\") as dataset:\n    band = dataset.read(1)\n",
      "asOf": "2026-11-20"
    },
    "F284": {
      "label": "Vector dataset I/O, rasterio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F285": {
      "label": "Raster dataset I/O, rasterio",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F286": {
      "label": "Native CRS transformations, rasterio",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F287": {
      "label": "Geometry predicates or buffers, rasterio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F288": {
      "label": "Spatial indexing, rasterio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F289": {
      "label": "Ellipsoidal geodesic distances, rasterio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F290": {
      "label": "Native GIS workflow, rasterio",
      "display": "GDAL-backed georeferenced raster arrays, windows, reprojection, and resampling.",
      "asOf": "2026-11-20"
    },
    "F291": {
      "label": "Project function, rasterio",
      "display": "def point(\n    src_dst: DatasetReader | DatasetWriter | WarpedVRT,\n    coordinates: tuple[float, float],\n    indexes: Indexes | None = None,\n    coord_crs: CRS = WGS84_CRS,\n    nodata: NoData | None = None,\n    vrt_options: dict | None = None,\n    out_dtype: str | numpy.dtype | None = None,\n    resampling_method: RIOResampling = \"nearest\",\n    reproject_method: WarpResampling = \"nearest\",\n    interpolate: bool = False,\n    unscale: bool = False,\n    post_process: Callable[[numpy.ma.MaskedArray], numpy.ma.MaskedArray] | None = None,\n) -> PointData:\n    \"\"\"Read a pixel value for a point.\n\n    Args:\n        src_dst (rasterio.io.DatasetReader or rasterio.io.DatasetWriter or rasterio.vrt.WarpedVRT): Rasterio dataset.\n        coordinates (tuple): Coordinates in form of (X, Y).\n        indexes (sequence of int or int, optional): Band indexes.\n        coord_crs (rasterio.crs.CRS, optional): Coordinate Reference System of the input coords. Defaults to `epsg:4326`.\n        nodata (int or float, optional): Overwrite dataset internal nodata value.\n        vrt_options (dict, optional): Options to be passed to the rasterio.warp.WarpedVRT class.\n        resampling_method (RIOResampling, optional): RasterIO resampling algorithm. Only used when `interpolate=True`. Defaults to `nearest`.\n        reproject_method (WarpResampling, optional): WarpKernel resampling algorithm. Defaults to `nearest`.\n        interpolate (bool, optional): Interpolate pixels around the coordinates. Defaults to `False`.\n        unscale (bool, optional): Apply dataset's 'scales' and 'offsets' on output data value. Defaults to `False`.\n        post_process (callable, optional): Function to apply on output data and mask values.\n\n    Returns:\n        PointData\n\n    \"\"\"\n    indexes = cast_to_sequence(indexes)\n\n    with contextlib.ExitStack() as ctx:\n        # Use WarpedVRT when User provided Nodata or VRT Option (cutline)\n        if nodata is not None or vrt_options:\n            vrt_params = {\n                \"add_alpha\": True,\n                \"resampling\": Resampling[reproject_method],\n                \"dtype\": src_dst.dtypes[0],\n            }\n            nodata = nodata if nodata is not None else src_dst.nodata\n            if nodata is not None:\n                vrt_params.update(\n                    {\"nodata\": nodata, \"add_alpha\": False, \"src_nodata\": nodata}\n                )\n\n            if has_alpha_band(src_dst):\n                vrt_params.update({\"add_alpha\": False})\n\n            if vrt_options:\n                vrt_params.update(**vrt_options)\n\n            dataset = ctx.enter_context(WarpedVRT(src_dst, **vrt_params))\n\n        else:\n            dataset = src_dst\n\n        lon, lat = coordinates\n        if coord_crs != dataset.crs:\n            xs, ys = transform_coords(coord_crs, dataset.crs, [lon], [lat])\n            lon, lat = xs[0], ys[0]\n\n        dataset_min_lon, dataset_min_lat, dataset_max_lon, dataset_max_lat = (\n            dataset.bounds\n        )\n        # check if latitude is inverted\n        if dataset_min_lat > dataset_max_lat:\n            warnings.warn(\n                \"BoundingBox of the dataset is inverted (minLat > maxLat).\",\n                UserWarning,\n            )\n\n        dataset_min_lat, dataset_max_lat = (\n            min(dataset_min_lat, dataset_max_lat),\n            max(dataset_min_lat, dataset_max_lat),\n        )\n        if not (\n            (dataset_min_lon < lon < dataset_max_lon)\n            and (dataset_min_lat < lat < dataset_max_lat)\n        ):\n            raise PointOutsideBounds(\"Point is outside dataset bounds\")\n\n        if interpolate:\n            # Ref: https://github.com/cogeotiff/rio-tiler/issues/793\n            # https://github.com/OSGeo/gdal/blob/a3d68b069e6b3676ba437faca5dca6ae2076ce24/swig/python/gdal-utils/osgeo_utils/samples/gdallocationinfo.py#L185-L197\n            rows, cols = rowcol(dataset.transform, xs=[lon], ys=[lat], op=lambda x: x)\n            row, col = float(rows[0]), float(cols[0])\n            row_off, col_off = row - 0.5, col - 0.5\n\n        else:\n            if resampling_method != \"nearest\":\n                warnings.warn(\n                    f\"{resampling_method} resampling will be ignored when `interpolate=False`.\",\n                    UserWarning,\n                )\n\n            row, col = dataset.index(lon, lat)\n            row_off, col_off = row, col\n\n        window = windows.Window(row_off=row_off, col_off=col_off, width=1, height=1)\n\n        img = read(\n            dataset,\n            indexes=indexes,\n            window=window,\n            out_dtype=out_dtype,\n            resampling_method=resampling_method,\n            unscale=unscale,\n            post_process=post_process,\n        )\n\n        return PointData(\n            img.array[:, 0, 0],\n            band_names=img.band_names,\n            band_descriptions=img.band_descriptions,\n            coordinates=coordinates,\n            crs=coord_crs,\n            pixel_location=(col, row),\n            nodata=img.nodata,\n            metadata=img.metadata,\n        )\n",
      "asOf": "2026-11-20"
    },
    "F292": {
      "label": "Project source file, rasterio",
      "display": "rio_tiler/reader.py",
      "asOf": "2026-11-20"
    },
    "F293": {
      "label": "Project full_name, rasterio",
      "display": "cogeotiff/rio-tiler",
      "asOf": "2026-11-20"
    },
    "F294": {
      "label": "Project stargazers_count, rasterio",
      "display": "594",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python geospatial libraries GeoPandas Shapely pyproj Rasterio code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
