> 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
> 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.
look in the cake source/test cases for any example using $db-