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
> --
> You received this message because you are subscribed to the Google Groups "nhusers" group.
> To post to this group, send email to
nhu...@googlegroups.com.
> To unsubscribe from this group, send email to
nhusers+u...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.
>