I have a database with a field for spatial data and a cakephp
interface for it. In MySQL I can save the data by doing:

INSERT INTO nodes (Location) VALUES (GeomFromText('POINT(42.450071
-76.487664)'))

How can I make Cake take the latitude and longitude from a web form
and insert it in this manner? I made a model that reads spatial data
but I can't figure out how to make it write in spatial format.

Thanks for any insight.

-Andrew

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to