Hi,

I wanted to have a look at NHibernate.Spatial and I used your repo of Spatial. 
I'm probably doing something terribly wrong but I'm getting this error message 
when ever I try to do any spatial queries with parameters:

- the custom type 'GeoAPI.Geometries.IGeometry' handled by 
'NHibernate.Spatial.Type.MsSql2008GeographyType' is not Serializable: 
- and the query ends up missing the parameter.

My model looks like this:
public class Region : Entity
{
    public virtual string Name { get; set; }
    public virtual IGeometry Area { get; set; }
}

And a query could be like this:
-session.QueryOver<Region>().WhereSpatialRestrictionOn(r => 
r.Area).Contains(new Point(-9.0, 39.0)).List();

Sounds familiar? Any hints what I'm missing?

Cheers,
Ted


5 sep 2012 kl. 10:11 skrev Surya Pratap <[email protected]>:

> I am not sure this is the place to post it, anyway here goes,
> 
> I have tried to update the existing NHSpatial code from NHContrib repo in 
> souceforge, the updated code has been put in Github, do feel free to take a 
> look, changes are welcome I do not know if the original souce is being 
> maintained anymore.
> 
> the github souce is at https://github.com/suryapratap/Nhibernate.Spatial
> 
> Regards
> Surya
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "nhusers" 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/nhusers?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to