Hello,
I would like to make use of JTable::store to update a Geometry value in my database.
The Geometry value is given like "POINT(x,y)". If I make the query by myself it must make use of ST_GeomFromText, e.g.
UPDATE '#__com_tbl' SET 'location' = ST_GeomFromText("POINT(x,y)")
The JTable::store function calls however a quotation-function which alters the query - if I use store to:
UPDATE '#__com_tbl' SET 'location' = "ST_GeomFromText(POINT(x,y))"
which doesn't work due to the mysql-Instruction ST_GeomFromText which is now considered as text.
Are there any possibilities?
I would like to make use of JTable::store to update a Geometry value in my database.
The Geometry value is given like "POINT(x,y)". If I make the query by myself it must make use of ST_GeomFromText, e.g.
UPDATE '#__com_tbl' SET 'location' = ST_GeomFromText("POINT(x,y)")
The JTable::store function calls however a quotation-function which alters the query - if I use store to:
UPDATE '#__com_tbl' SET 'location' = "ST_GeomFromText(POINT(x,y))"
which doesn't work due to the mysql-Instruction ST_GeomFromText which is now considered as text.
Are there any possibilities?
Statistics: Posted by JayJoom — Sun Jul 07, 2024 2:15 pm