⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

how to populating spatial columns mysql?



Yothin Samrandee
  • profile picture
  • Member

Posted 22 May 2013 - 16:56 PM

I can not insert my point column with these code

...
$crud->callback_before_insert(array($this,'build_position_callback'));
...

public function build_position_callback($post_array)
{
   $post_array["Position"] = "GeomFromText('POINT(".$post_array['Latitude'].",".$post_array['Longitude'].")')";
   return $post_array;
}

Thank you


victor
  • profile picture
  • Member

Posted 23 May 2013 - 15:57 PM

explain what do you want.