Skip to content

Bug when loading data to geopandas and crs is autodetected from geometry #8

@jh-RLI

Description

@jh-RLI

Working solution

saio.register_schema("model_draft", engine)
df_rli_pa_wind_1000 = saio.as_pandas(session.query(RLI_pa_wind_1000), geometry="geometry", crs="EPSG:4326")

Crs is not detected correctly:

saio.register_schema("model_draft", engine)
df_rli_pa_wind_1000 = saio.as_pandas(session.query(RLI_pa_wind_1000), geometry="geometry")

srid = shapely.geos.lgeos.GEOSGetSRID(load_geom(obj)._geom)

Raises:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions