# SpatialAssociations Plugin

**URL:** <https://www.ruby-forum.com/t/spatialassociations-plugin/142547>\
**Category:** Rails\
**Created:** [July 9, 2008, 2:49am UTC](https://www.ruby-forum.com/t/spatialassociations-plugin/142547 "2008-07-09T02:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bspaulding](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a587f6/32.png) [@bspaulding](https://www.ruby-forum.com/u/bspaulding)\
**Post date:** [July 9, 2008, 2:49am UTC](https://www.ruby-forum.com/t/spatialassociations-plugin/142547/1 "2008-07-09T02:49:02Z")

</div>

As part of a location-aware project I’ve been working on, I’ve started  
work on this SpatialAssociations plugin.

It provides model helpers like ‘has\_many’ and ‘belongs\_to’ for spatial  
associations, those whose results are determined by the result of a  
spatial function linking two models.

So far there’s only one type, is\_enclosed\_by / encloses, but I hope to  
include several more common spatial associations that would be  
helpful.

I’ve just started up the github here: [bspaulding (Bradley Spaulding) · GitHub](http://github.com/bspaulding/)  
spatialassociations.

I’d appreciate it if anyone who’s interested would take a look and  
tell me what you think of the idea, plus any associations you’d like  
to see implemented.
