Of course, Here's my situation,

I am using spatial-adapter for a rails 3.1 app [ spatial-adapter
worked just fine for a rails 3.0 app ], I followed the usual steps and
created a geometry column with migrations and afterwards when I tried
to create a new record in the database I got the following error:

ERROR: parse error - invalid geometry
HINT: You must specify a valid OGC WKT geometry type such as POINT,
LINESTRING or POLYGON

I googled a bit and this link came up ( which is one month old and
didn't answer my question )
http://stackoverflow.com/questions/5956315/rails-postgis-postgis-adapter-geometry-problem

So I jumped into the rails code [ for the first time ], and found/
think that type_cast is the problem. I've patched the spatial-adapter
code for project [ Actually I've change Quoting::type_cast through
monkey patching, but It's easy to do it the other way. ]

Btw, I didn't know about the prepared statement, It's a grandiose
feature to have. :)

--
Sincerely,
Omid

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to