Open nexushoratio opened 3 months ago
Hi @nexushoratio I think I never tried with compute geometry columns before but I can reproduce your issue. As far as I can see, the computed column is properly created (except for MySQL) despite the error messages. I think you can ignore them but it would be nice to support this feature properly in GeoAlchemy2. I will see what I can do but I don't have much time for this atm (maybe @sdp5, @jjgarrett0 or @krishnaglodha ?). And unfortunately it's a bit hard to hide these error messages because they are not sent by python code, so you could use https://github.com/minrk/wurlitzer to capture them for example, or just create a specific context manager based on this: https://eli.thegreenplace.net/2015/redirecting-all-kinds-of-stdout-in-python/
FWIW, in my real (toy) app, I'm keeping the lat,lng string a the primary key and using a computed column to parse the string to create a point. Effectively moving the logic from python to sql.
Describe the problem
I get the following messages when creating a table with a computed point column:
Everything appears to work properly, but those are scary looking messages and I want to make sure I'm not doing anything wrong. And if I am doing things right, how to suppress or avoid them.
Show what you tried to do.
Describe what you expected.
The
updateTableTriggers()
messages should no be present.If I execute the resulting 'CREATE TABLE` directly via /usr/bin/spatialite, I do not see similar messages.
Error
No response
Additional context
This seems restricted to computed columns. I strongly suspect I am doing something wrong, I just can't figure it out yet.
Using up-to-date Debian/stable (see output for various bits). My preference is not to get involved with things like pip and what not, so trying to go with what comes on the system.
But, also:
GeoAlchemy 2 Version in Use
0.12.5