diff --git a/lib/active_record_extensions/geometry_columns.rb b/lib/active_record_extensions/geometry_columns.rb
index <HASH>..<HASH> 100644
--- a/lib/active_record_extensions/geometry_columns.rb
+++ b/lib/active_record_extensions/geometry_columns.rb
@@ -57,6 +57,15 @@ module Geos
 						@geometry_columns
 					end
 
+					# Grabs a geometry column based on name.
+					def geometry_column_by_name(name)
+						@geometry_column_by_name ||= self.geometry_columns.inject(HashWithIndifferentAccess.new) do |memo, obj|
+							memo[obj.name] = obj
+							memo
+						end
+						@geometry_column_by_name[name]
+					end
+
 				protected
 					# Sets up nifty setters and getters for geometry columns.
 					# The methods created look like this:
New method for grabbing a particular geometry column by its'
column name.


git-svn-id: file:///usr/local/svnroot/ruby_extensions/geos_extensions/trunk@<I> <I>ac<I>-ee<I>-4e<I>-b<I>-<I>b<I>ff<I>b