Jump to content


how to populating spatial columns mysql?

mysql point spatial geo

  • Please log in to reply
1 reply to this topic

#1 Yothin Samrandee

Yothin Samrandee

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 22 May 2013 - 04: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



#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 23 May 2013 - 03:57 PM

explain what do you want.





Also tagged with one or more of these keywords: mysql, point, spatial, geo

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users