Nhibernate.Spatial updated

96 views
Skip to first unread message

Surya Pratap

unread,
Sep 5, 2012, 4:11:42 AM9/5/12
to Nhibernate
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
Message has been deleted

Tonio

unread,
Sep 10, 2012, 11:20:13 AM9/10/12
to nhu...@googlegroups.com
Hi,

All test fails... :(

Tonio

unread,
Sep 10, 2012, 12:06:15 PM9/10/12
to nhu...@googlegroups.com

...the problem is reference to nhibernate.bytecodecastle

remove reference from the configuration...

properties[Environment.ProxyFactoryFactoryClass] = typeof(ProxyFactoryFactory).AssemblyQualifiedName;

.after that only few test fails

thanks

tonio

Ted Parnefors

unread,
Sep 15, 2012, 3:24:31 PM9/15/12
to nhu...@googlegroups.com
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.
>

Reply all
Reply to author
Forward
0 new messages