You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warnings.warn("srid not enforced when geometry_type is None")
If there is no geometry, it is obvious that srid is not enforced. The warnings pollute the output, for example when running pytest (the warnings can be suppressed in pytest, but it would be clearer if they were not output at all).
The text was updated successfully, but these errors were encountered:
Hi @jwkaltz
Thanks for your report!
You're right, these warnings do not make any sense for the Raster type. Nevertheless, it does not make sense to provide geometry_type=None and a specific SRID for Geometry and Geography types, so I would prefer to keep the warning in this case. Is it ok for you? If not, could you give me some details about which case these warnings bother you?
Thanks for the explanation @adrien-berchet , I found the missing test data in our case which lead to this warning. For me it's OK to proceed as you propose.
I think there should be no warning about srid not being enforced when geometry_type is None,
I think these 2 lines should be removed:
geoalchemy2/geoalchemy2/types.py
Lines 247 to 248 in 3337e5e
If there is no geometry, it is obvious that srid is not enforced. The warnings pollute the output, for example when running pytest (the warnings can be suppressed in pytest, but it would be clearer if they were not output at all).
The text was updated successfully, but these errors were encountered: