I am trying to populate my database with the geographic locations of my country. One of my tables has 4 fields: ID [PK], latitude. longitude ande geoPoint
EDIT `SCDBs`.`Punto_Geografico`;
SET @lat = 18.469692;
SET @lon = -63.93212;
SET @g = 'POINT(@lat @lon)';
UPDATE Punto_Geografico SET latitude = @lat, longitude =@lon, geoPoint =@g WHERE idpunto_geografico = 0;
im gets the following error: Error code: 1416 Unable to get the geometry object from the data sent to the GEOMETRY field.
I am sure that the "geoPoint" field is a POINT field with a spatial index. I havenโt lost anything .14
source
share