nofxx/postgis_adapter — Issue #32: MultiPolygon.from_coordinates?
Author: tyrauber
Created: 2012-02-28 22:54:13+00:00
State: open

Is there an equivalent of Point.from_x_y(1,2)) for creating the geometry for Polygons or MultiPolygons. I have been importing raw sql into PostGIS with MULTIPOLYGON(((x y, ...)...)), but I would like to find an ActiveRecord friendly way of doing the same. MultiPolygon.from_coordinates throws an "unknown attribute: x" error. Any help would be greatly appreciated.