[Python] Geopandas: how to convert the column geometry to string?

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I have a geopandas dataframe

    geometry idx
    0 POLYGON ((-74.25559 40.91553, -74.24559 40.915... 0
    1 POLYGON ((-74.25559 40.90553, -74.24559 40.905... 1
    2 POLYGON ((-74.25559 40.89553, -74.24559 40.895... 2
    3 POLYGON ((-74.25559 40.88553, -74.24559 40.885... 3
    4 POLYGON ((-74.25559 40.87553, -74.24559 40.875... 4


    where

    gridDF['geometry'][0]
    <shapely.geometry.polygon.Polygon at 0x7fa4cc6ccc50>


    I would like to convert the entries in the column geometry as a string.

    Continue reading...

Compartilhe esta Página