I've imported a row from a Postgres DB using sqlalchemy.
One of the column types is GEOMETRY from postgis and upon import
I convert to a shapely polygon (the object type I need)
boundary_geom = row.geom shapely_geom = to_shape(boundary_geom) >>>> type(shapely_geom) <class 'shapely.geometry.multipolygon.MultiPolygon'>
I'm trying to check the crs before using the object but it does not appear to have one.
I checked in the database
select ST_SRID(geom) from public.inner_london_boundary;
for the row in question
27700 is British national grid which is what is expected.
The Well Know Binary data passed to the function should contain the SRID.
edit: i just checked and it does:
>>>> boundary_geom.srid 27700
Why is the shapely object missing the projection metadata?
Am I just checking for it incorrectly?
do I need to set it manually no matter what?