<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>NHibernateSpatial Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home</link><description>NHibernateSpatial Wiki Rss Description</description><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=25</link><description>&lt;div class="wikidoc"&gt;
__________________________________________________________________________________________________________&lt;br /&gt;&lt;h1&gt;
We're moving to &lt;a href="http://www.nhforge.org/wikis/spatial/default.aspx" class="externalLink"&gt;NHibernate Forge&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;&lt;b&gt;Thereinafter, please submit your bug reports or feature requests to &lt;a href="http://jira.nhibernate.org" class="externalLink"&gt;NH issue tracker&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;and support questions to &lt;a href="http://groups.google.com/group/nhusers" class="externalLink"&gt;NH Users mailing list&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;__________________________________________________________________________________________________________&lt;br /&gt; &lt;br /&gt;&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt; &lt;br /&gt;More info: &lt;a href="http://www.nhforge.org/wikis/spatial/introduction.aspx" class="externalLink"&gt;http://www.nhforge.org/wikis/spatial/introduction.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 08 Oct 2008 17:19:01 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20081008051901P</guid></item><item><title>Updated Wiki: Configuration and mapping</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration and mapping&amp;version=7</link><description>&lt;div class="wikidoc"&gt;
See &lt;a href="http://www.nhforge.org/wikis/spatial/configuration-and-mapping.aspx" class="externalLink"&gt;http://www.nhforge.org/wikis/spatial/configuration-and-mapping.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 08 Oct 2008 17:17:49 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Configuration and mapping 20081008051749P</guid></item><item><title>Updated Wiki: Sample usage</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample usage&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
See &lt;a href="http://www.nhforge.org/wikis/spatial/sample-usage.aspx" class="externalLink"&gt;http://www.nhforge.org/wikis/spatial/sample-usage.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 08 Oct 2008 17:17:16 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Sample usage 20081008051716P</guid></item><item><title>Updated Wiki: Sample usage</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample usage&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;a href="http://www.nhforge.org/wikis/spatial/sample-usage.aspx" class="externalLink"&gt;http://www.nhforge.org/wikis/spatial/sample-usage.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 08 Oct 2008 17:16:58 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Sample usage 20081008051658P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=24</link><description>&lt;div class="wikidoc"&gt;
__________________________________________________________________________________________________________&lt;br /&gt;&lt;h1&gt;
We're moving to &lt;a href="http://www.nhforge.org/wikis/spatial/default.aspx" class="externalLink"&gt;NHibernate Forge&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;&lt;b&gt;Thereinafter, please submit your bug reports or feature requests to &lt;a href="http://jira.nhibernate.org" class="externalLink"&gt;NH issue tracker&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;and support questions to &lt;a href="http://groups.google.com/group/nhusers" class="externalLink"&gt;NH Users mailing list&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;__________________________________________________________________________________________________________&lt;br /&gt; &lt;br /&gt;&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt;There is also a similar but independent effort for Java: &lt;a href="http://www.hibernatespatial.org/" class="externalLink"&gt;Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OGCspecifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx" class="externalLink"&gt;SQL Server 2008&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; support is at early stage. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. registering of geometry columns in metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll, GeoAPI.dll and to provider assembly (eg. NHibernate.Spatial.PostGis.dll).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Fri, 26 Sep 2008 22:40:59 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080926104059P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=23</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt;There is also a similar but independent effort for Java: &lt;a href="http://www.hibernatespatial.org/" class="externalLink"&gt;Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h1&gt;
We're moving to &lt;a href="http://www.nhforge.org/wikis/spatial/default.aspx" class="externalLink"&gt;NHibernate Forge&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;&lt;b&gt;Thereinafter, please submit your report bugs or feature requests to &lt;a href="http://jira.nhibernate.org" class="externalLink"&gt;NH JIRA&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;and support questions to &lt;a href="http://groups.google.com/group/nhusers" class="externalLink"&gt;NH Users mailing list&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OGCspecifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx" class="externalLink"&gt;SQL Server 2008&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; support is at early stage. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. registering of geometry columns in metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll, GeoAPI.dll and to provider assembly (eg. NHibernate.Spatial.PostGis.dll).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Fri, 26 Sep 2008 21:36:29 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080926093629P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=22</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt;There is also a similar but independent effort for Java: &lt;a href="http://www.hibernatespatial.org/" class="externalLink"&gt;Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h1&gt;
We're moving to &lt;a href="http://www.nhforge.org/" class="externalLink"&gt;NHibernate Forge&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;&lt;b&gt;Thereinafter, please submit your report bugs or feature requests to &lt;a href="http://jira.nhibernate.org" class="externalLink"&gt;NH JIRA&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;and support questions to &lt;a href="http://groups.google.com/group/nhusers" class="externalLink"&gt;NH Users mailing list&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OGCspecifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx" class="externalLink"&gt;SQL Server 2008&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; support is at early stage. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. registering of geometry columns in metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll, GeoAPI.dll and to provider assembly (eg. NHibernate.Spatial.PostGis.dll).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Fri, 26 Sep 2008 19:22:04 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080926072204P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=21</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt;There is also a similar but independent effort for Java: &lt;a href="http://www.hibernatespatial.org/" class="externalLink"&gt;Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h1&gt;
We're moving to &lt;a href="http://sourceforge.net/projects/nhcontrib/" class="externalLink"&gt;NH Contrib project&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/h1&gt;&lt;h1&gt;
More details coming soon.
&lt;/h1&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OGCspecifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx" class="externalLink"&gt;SQL Server 2008&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; support is at early stage. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. registering of geometry columns in metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll, GeoAPI.dll and to provider assembly (eg. NHibernate.Spatial.PostGis.dll).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Fri, 19 Sep 2008 19:00:49 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080919070049P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=20</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt;There is also a similar but independent effort for Java: &lt;a href="http://www.hibernatespatial.org/" class="externalLink"&gt;Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OGCspecifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. &lt;a href="http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx" class="externalLink"&gt;SQL Server 2008&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; support is at early stage. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. registering of geometry columns in metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll, GeoAPI.dll and to provider assembly (eg. NHibernate.Spatial.PostGis.dll).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Mon, 23 Jun 2008 10:01:54 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20080623100154A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=19</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br /&gt;
&lt;br /&gt;There is also a similar but independent effort for Java: &lt;a href="http://www.hibernatespatial.org/" class="externalLink"&gt;Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OpenGIS specifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. registering of geometry columns in metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll and GeoAPI.dll&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Tue, 06 Nov 2007 12:42:33 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20071106124233P</guid></item><item><title>UPDATED WIKI: Configuration and mapping</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration and mapping&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;h4&gt;
Dialect Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the NHibernate section of your configuration file add the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;hibernate.dialect&amp;quot;&amp;gt;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;If you're using &lt;a href="http://www.castleproject.org/activerecord/" class="externalLink"&gt;Castle ActiveRecord&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, the entry will look like this:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;add key=&amp;quot;hibernate.dialect&amp;quot; value=&amp;quot;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;Replace &lt;span class="codeInline"&gt;SomeSpatialDialect&lt;/span&gt; by the spatial dialect to be used. For example, &lt;span class="codeInline"&gt;MsSqlSpatialDialect&lt;/span&gt;.&lt;br /&gt;&lt;h4&gt;
Schema Generation Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Declarative:&lt;/b&gt; Use of &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html#mapping-database-object" class="externalLink"&gt;&amp;lt;database-object&amp;gt;&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; element is not supported.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Programmatic:&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
    Configuration cfg = new Configuration();
    // Your configuration code (eg. cfg.Configure(); )
    cfg.AddAuxiliaryDatabaseObject(new SpatialAuxiliaryDatabaseObject(cfg));
&lt;/pre&gt;Then you can use a &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/toolsetguide.html#toolsetguide-s1-3" class="externalLink"&gt;SchemaExport&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; object or the &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/session-configuration.html#configuration-optional" class="externalLink"&gt;hibernate.hbm2ddl.auto&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; configuration property for schema generation.&lt;br /&gt;&lt;h4&gt;
Metadata Mappings Configuration:
&lt;/h4&gt;There are two classes available for metadata mapping in the &lt;span class="codeInline"&gt;NHibernate.Spatial.Metadata&lt;/span&gt; namespace: &lt;span class="codeInline"&gt;GeometryColumn&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt;. You can add them selectively:&lt;br /&gt;&lt;pre&gt;
Configuration cfg = new Configuration();
// Your configuration code (eg. cfg.Configure(); )
Metadata.AddMapping(cfg, MetadataClass.GeometryColumn);
Metadata.AddMapping(cfg, MetadataClass.SpatialReferenceSystem);
&lt;/pre&gt;Then you can use them as normal mapped classes. For example, you could execute the following HQL query:&lt;br /&gt;&lt;pre&gt;
select srs.WellKnownText from SpatialReferenceSystem as srs where srs.SRID=4326
&lt;/pre&gt;&lt;b&gt;WARNING:&lt;/b&gt; DO NOT add metadata class mappings when using the &lt;span class="codeInline"&gt;SchemaExport&lt;/span&gt; utility. You could lose all contents of metadata tables.&lt;br /&gt;&lt;h4&gt;
NHibernate Mapping:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the XML mappings file, map all properties as usual but for geometry columns use the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot; type=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Optionally, for schema generation and default values setting, you can use type parameters. The available parameters are &lt;b&gt;&lt;span class="codeInline"&gt;srid&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span class="codeInline"&gt;subtype&lt;/span&gt;&lt;/b&gt;. For example:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot;&amp;gt;
    &amp;lt;type name=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;&amp;gt;
        &amp;lt;param name=&amp;quot;srid&amp;quot;&amp;gt;4326&amp;lt;/param&amp;gt;
        &amp;lt;param name=&amp;quot;subtype&amp;quot;&amp;gt;POLYGON&amp;lt;/param&amp;gt;
    &amp;lt;/type&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;In the mapped class, declare the corresponding property:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;h4&gt;
ActiveRecord Mapping:
&lt;/h4&gt; &lt;br /&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
         
[Property(&amp;quot;the_geom&amp;quot;, ColumnType = &amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;)]
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;b&gt;NOTE:&lt;/b&gt; Type parameters (see &lt;b&gt;NHibernate mapping&lt;/b&gt; above) are not supported in ActiveRecord.&lt;br /&gt;&lt;h4&gt;
ActiveWriter Mapping:
&lt;/h4&gt;&lt;a href="http://www.altinoren.com/activewriter/" class="externalLink"&gt;ActiveWriter&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; is a tool to visually model entities and relationships, and generate ActiveRecord classes or NHibernate mapping files. Since &lt;a href="http://www.altinoren.com/activewriter/downloads.htm" class="externalLink"&gt;Preview 3&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, it supports custom types, so we can use the GeometryType / IGeometry pair..&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example usage:&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Drag &amp;amp; drop a MsSqlSpatial table from Server Explorer/Data connections.&lt;/li&gt;&lt;li&gt;In the model, select &amp;quot;the_geom&amp;quot; property.&lt;/li&gt;&lt;li&gt;In the properties window, enter the following values:&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Property &lt;/th&gt;&lt;th&gt; Value &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;Custom&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Member Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;GeoAPI.Geometries.IGeometry&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;&lt;b&gt;NOTE:&lt;/b&gt; Type parameters (see &lt;b&gt;NHibernate mapping&lt;/b&gt; above) are not supported in ActiveRecord, so it is in ActiveWriter.&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Thu, 14 Jun 2007 16:43:20 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Configuration and mapping 20070614044320P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=18</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br/&gt;
&lt;br /&gt;There is also a similar but independent effort for Java:  &lt;a href="http://www.cadrie.com/projects/majas-hibernate/hibernate-spatial/" class="externalLink"&gt;MAJAS Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OpenGIS specifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; Spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; Spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. insert rows into geometry columns metadata table).&lt;/li&gt;&lt;li&gt;&lt;b&gt;Metadata mappings:&lt;/b&gt; Built-in mappings to spatial metadata through &lt;span class="codeInline"&gt;GeometryColumns&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt; classes.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll and GeoAPI.dll&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 13 Jun 2007 19:58:04 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20070613075804P</guid></item><item><title>UPDATED WIKI: Configuration and mapping</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration and mapping&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;h4&gt;
Dialect Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the NHibernate section of your configuration file add the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;hibernate.dialect&amp;quot;&amp;gt;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;If you're using &lt;a href="http://www.castleproject.org/activerecord/" class="externalLink"&gt;Castle ActiveRecord&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, the entry will look like this:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;add key=&amp;quot;hibernate.dialect&amp;quot; value=&amp;quot;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;Replace &lt;span class="codeInline"&gt;SomeSpatialDialect&lt;/span&gt; by the spatial dialect to be used. For example, &lt;span class="codeInline"&gt;MsSqlSpatialDialect&lt;/span&gt;.&lt;br /&gt;&lt;h4&gt;
Schema Generation Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Declarative:&lt;/b&gt; Use of &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html#mapping-database-object" class="externalLink"&gt;&amp;lt;database-object&amp;gt;&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; element is not supported.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Programmatic:&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
    Configuration cfg = new Configuration();
    // Your configuration code (eg. cfg.Configure(); )
    cfg.AddAuxiliaryDatabaseObject(new SpatialAuxiliaryDatabaseObject(cfg));
&lt;/pre&gt;Then you can use a &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/toolsetguide.html#toolsetguide-s1-3" class="externalLink"&gt;SchemaExport&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; object or the &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/session-configuration.html#configuration-optional" class="externalLink"&gt;hibernate.hbm2ddl.auto&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; configuration property for schema generation.&lt;br /&gt;&lt;h4&gt;
Metadata Mappings Configuration:
&lt;/h4&gt;There are two classes available for metadata mapping in the &lt;span class="codeInline"&gt;NHibernate.Spatial.Metadata&lt;/span&gt; namespace: &lt;span class="codeInline"&gt;GeometryColumn&lt;/span&gt; and &lt;span class="codeInline"&gt;SpatialReferenceSystem&lt;/span&gt;. You can add them selectively:&lt;br /&gt;&lt;pre&gt;
Configuration cfg = new Configuration();
// Your configuration code (eg. cfg.Configure(); )
Metadata.AddMapping(cfg, MetadataClass.GeometryColumn);
Metadata.AddMapping(cfg, MetadataClass.SpatialReferenceSystem);
&lt;/pre&gt;Then you can use them as normal mapped classes. For example, you could execute the following HQL query:&lt;br /&gt;&lt;pre&gt;
select srs.WellKnownText from SpatialReferenceSystem as srs where srs.SRID=4326
&lt;/pre&gt;&lt;b&gt;WARNING:&lt;/b&gt; DO NOT add metadata class mappings when using the &lt;span class="codeInline"&gt;SchemaExport&lt;/span&gt; utility. You could lose all contents of metadata tables.&lt;br /&gt;&lt;h4&gt;
NHibernate Mapping:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the XML mappings file, map all properties as usual but for geometry columns use the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot; type=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Optionally, for schema generation and default values setting, you can use type parameters. The available parameters are &lt;b&gt;&lt;span class="codeInline"&gt;srid&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span class="codeInline"&gt;subtype&lt;/span&gt;&lt;/b&gt;. For example:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot;&amp;gt;
    &amp;lt;type name=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;&amp;gt;
        &amp;lt;param name=&amp;quot;srid&amp;quot;&amp;gt;4326&amp;lt;/param&amp;gt;
        &amp;lt;param name=&amp;quot;subtype&amp;quot;&amp;gt;POLYGON&amp;lt;/param&amp;gt;
    &amp;lt;/type&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;In the mapped class, declare the corresponding property:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;h4&gt;
ActiveRecord Mapping:
&lt;/h4&gt; &lt;br /&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
         
[Property(&amp;quot;the_geom&amp;quot;, ColumnType = &amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;)]
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;b&gt;NOTE:&lt;/b&gt; Type parameters (see &lt;b&gt;NHibernate mapping&lt;/b&gt; above) are not supported in ActiveRecord.&lt;br /&gt;&lt;h4&gt;
ActiveWriter Mapping:
&lt;/h4&gt;&lt;a href="http://www.altinoren.com/activewriter/" class="externalLink"&gt;ActiveWriter&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; is a tool to visually model entities and relationships, and generate ActiveRecord classes or NHibernate mapping files. Since &lt;a href="http://support.castleproject.org//browse/CONTRIB-28" class="externalLink"&gt;revision 186&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, it supports custom types, so we can use the GeometryType / IGeometry pair. To get the latest sources and building instructions, see &lt;a href="http://www.altinoren.com/activewriter/downloads.htm" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example usage:&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Drag &amp;amp; drop a MsSqlSpatial table from Server Explorer/Data connections.&lt;/li&gt;&lt;li&gt;In the model, select &amp;quot;the_geom&amp;quot; property.&lt;/li&gt;&lt;li&gt;In the properties window, enter the following values:&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Property &lt;/th&gt;&lt;th&gt; Value &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;Custom&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Member Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;GeoAPI.Geometries.IGeometry&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;&lt;b&gt;NOTE:&lt;/b&gt; Type parameters (see &lt;b&gt;NHibernate mapping&lt;/b&gt; above) are not supported in ActiveRecord, so it is in ActiveWriter.&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 13 Jun 2007 19:51:17 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Configuration and mapping 20070613075117P</guid></item><item><title>UPDATED WIKI: Sample usage</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample usage&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;h4&gt;
Find a country by coordinates:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Using NHibernate:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
Country country = session.CreateCriteria(typeof(Country))
    .Add(SpatialExpression.Contains(&amp;quot;Boundaries&amp;quot;, new Point(-70.40, -33.24)))
    .UniqueResult() as Country;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Using ActiveRecord:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
Country country = Country.FindOne(
    SpatialExpression.Contains(&amp;quot;Boundaries&amp;quot;, new Point(-70.40, -33.24))
);
&lt;/pre&gt; &lt;br /&gt;&lt;h4&gt;
Find all the towns in a bounding box, except the one located at some coordinates:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Using NHibernate:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
IList towns = session.CreateCriteria(typeof(Town))
    .Add(SpatialExpression.Filter(&amp;quot;Boundaries&amp;quot;, new Envelope(-70, -68, -32, -34)))
    .Add(Expression.Not(SpatialExpression.Contains(&amp;quot;Boundaries&amp;quot;, new Point(-70.40, -33.24))))
    .List();
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Using ActiveRecord:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
Town[] towns = Town.FindAll(
    SpatialExpression.Filter(&amp;quot;Boundaries&amp;quot;, new Envelope(-70, -68, -32, -34)),
    Expression.Not(SpatialExpression.Contains(&amp;quot;Boundaries&amp;quot;, new Point(-70.40, -33.24)))
);
&lt;/pre&gt;The previous example just shows how to combine a spatial criterion (&lt;span class="codeInline"&gt;Contains&lt;/span&gt;) with a normal criterion (&lt;span class="codeInline"&gt;Not&lt;/span&gt;), but in this case we could use simply &lt;span class="codeInline"&gt;Disjoint&lt;/span&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Get states boundaries grouping counties by state:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Using ActiveRecord:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
ProjectionQuery&amp;lt;County&amp;gt; query = new ProjectionQuery&amp;lt;County&amp;gt;(
    Projections.ProjectionList()
        .Add(Projections.GroupProperty(&amp;quot;State&amp;quot;))
        .Add(SpatialProjections.Union(&amp;quot;Boundaries&amp;quot;))
    );
IList&amp;lt;object[]&amp;gt; stateBoundaries= query.Execute();
&lt;/pre&gt;&lt;b&gt;Note:&lt;/b&gt; For people with a GIS backgroud, the &amp;quot;projection&amp;quot; term could be confusing. In this context, it has nothing to do with cartographic projections. It's rather a term borrowed from &lt;a href="http://en.wikipedia.org/wiki/Projection_(relational_algebra)" class="externalLink"&gt;relational algebra&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Create a new vehicle GPS position:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Using NHibernate:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
public void TrackVehicule(Vehicle vehicule, double longitude, double latitude, DateTime when)
{
    Tracking tracking = new Tracking();
    tracking.Vehicle = vehicle;
    tracking.Position = new Point(longitude, latitude);
    tracking.When = when;
    session.Save(tracking);
}
&lt;/pre&gt; &lt;br /&gt;&lt;h4&gt;
More, please!
&lt;/h4&gt;You also will find lots of sample usage code in the tests project (&lt;span class="codeInline"&gt;Tests.NHibernate.Spatial&lt;/span&gt;). Check out:&lt;br /&gt;&lt;pre&gt;
CriteriaFixture.cs
ProjectionsFixture.cs
OgcSfSql11Compliance/ConformanceItemsFixture.cs
RandomGeometries/SpatialQueriesFixture.cs
&lt;/pre&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 13 Jun 2007 18:49:32 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Sample usage 20070613064932P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=17</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br/&gt;
&lt;br /&gt;There is also a similar but independent effort for Java:  &lt;a href="http://www.cadrie.com/projects/majas-hibernate/hibernate-spatial/" class="externalLink"&gt;MAJAS Hibernate Spatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OpenGIS specifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. insert rows into geometry columns metadata table).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll and GeoAPI.dll&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 13 Jun 2007 18:44:37 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20070613064437P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=16</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate, allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience.&lt;br/&gt;
&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OpenGIS specifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. insert rows into geometry columns metadata table).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll and GeoAPI.dll&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Mon, 04 Jun 2007 20:42:49 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20070604084249P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=15</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate
, allows you to connect &lt;a href="http://www.nhibernate.org/" class="externalLink"&gt;NHibernate&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; to a spatially enabled database and manipulate geometries in HQL or in .NET code using &lt;a href="http://code.google.com/p/nettopologysuite/" class="externalLink"&gt;NetTopologySuite&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, providing you with a fully integrated GIS programming experience.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OpenGIS specifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; are supported. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. insert rows into geometry columns metadata table).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll and GeoAPI.dll&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Sun, 03 Jun 2007 17:23:27 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20070603052327P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Home&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;NHibernate.Spatial&lt;/b&gt;, Spatial extensions for NHibernate
, allows you to connect &lt;a href="http://www.nhibernate.org/" class="externalLink"&gt;NHibernate&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; to a spatially enabled database and manipulate geometries in HQL or in .NET code using &lt;a href="http://code.google.com/p/nettopologysuite/" class="externalLink"&gt;NetTopologySuite&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, providing you with a fully integrated GIS programming experience.&lt;br /&gt; &lt;br /&gt;&lt;h4&gt;
Features:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Geometry types:&lt;/b&gt; Geometry columns are mapped to .NET geometry types compliant with OpenGIS specifications.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dialects:&lt;/b&gt; &lt;a href="http://codeplex.com/MsSqlSpatial" class="externalLink"&gt;MsSqlSpatial&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; is currently supported and &lt;a href="http://www.postgis.org/" class="externalLink"&gt;PostGIS&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; is in the works. The most common spatial functions are registered for use within HQL, providing compatible queries among different dialects.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Criteria:&lt;/b&gt; spatial relations functions such as &lt;span class="codeInline"&gt;Intersects&lt;/span&gt;, &lt;span class="codeInline"&gt;Within&lt;/span&gt;, &lt;span class="codeInline"&gt;Crosses&lt;/span&gt;, etc.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Projections:&lt;/b&gt; spatial aggregate, analysis and tranformation functions.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Schema generation:&lt;/b&gt; Support for automatic creation and droping of auxiliary data objects (eg. insert rows into geometry columns metadata table).&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Requirements:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;.NET 2.0&lt;/li&gt;&lt;li&gt;NHibernate 1.2&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
Installation:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;Download latest sources and build. Copy the binaries to your project's libraries folder.&lt;/li&gt;&lt;li&gt;In you project, add references to NHibernate.dll, NHibernate.Spatial.dll, NetTopologySuite.dll and GeoAPI.dll&lt;/li&gt;
&lt;/ul&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration%20and%20mapping&amp;amp;referringTitle=Home"&gt;Configuration and mapping&lt;/a&gt;
&lt;/h4&gt;&lt;h4&gt;
&lt;a href="http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Sample%20usage&amp;amp;referringTitle=Home"&gt;Sample usage&lt;/a&gt;
&lt;/h4&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 30 May 2007 20:49:30 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20070530084930P</guid></item><item><title>UPDATED WIKI: Configuration and mapping</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration and mapping&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;h4&gt;
Dialect Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the NHibernate section of your configuration file add the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;hibernate.dialect&amp;quot;&amp;gt;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;If you're using &lt;a href="http://www.castleproject.org/activerecord/" class="externalLink"&gt;Castle ActiveRecord&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, the entry will look like this:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;add key=&amp;quot;hibernate.dialect&amp;quot; value=&amp;quot;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;Replace &lt;span class="codeInline"&gt;SomeSpatialDialect&lt;/span&gt; by the spatial dialect to be used. For example, &lt;span class="codeInline"&gt;MsSqlSpatialDialect&lt;/span&gt;.&lt;br /&gt;&lt;h4&gt;
Schema Generation Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Declarative:&lt;/b&gt; Use of &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html#mapping-database-object" class="externalLink"&gt;&amp;lt;database-object&amp;gt;&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; element is not supported yet.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Programmatic:&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
    Configuration cfg = new Configuration();
    // Your configuration code (eg. cfg.Configure(); )
    cfg.AddAuxiliaryDatabaseObject(new SpatialAuxiliaryDatabaseObject(cfg));
&lt;/pre&gt;Then you can use a &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/toolsetguide.html#toolsetguide-s1-3" class="externalLink"&gt;SchemaExport&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; object or the &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/session-configuration.html#configuration-optional" class="externalLink"&gt;hibernate.hbm2ddl.auto&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; configuration property for schema generation.&lt;br /&gt;&lt;h4&gt;
NHibernate mapping:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the XML mappings file, map all properties as usual but for geometry columns use the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot; type=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Optionally, for schema generation and default values setting, you can use type parameters. The available parameters are &lt;b&gt;&lt;span class="codeInline"&gt;srid&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span class="codeInline"&gt;subtype&lt;/span&gt;&lt;/b&gt;. For example:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot;&amp;gt;
    &amp;lt;type name=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;&amp;gt;
        &amp;lt;param name=&amp;quot;srid&amp;quot;&amp;gt;4326&amp;lt;/param&amp;gt;
        &amp;lt;param name=&amp;quot;subtype&amp;quot;&amp;gt;POLYGON&amp;lt;/param&amp;gt;
    &amp;lt;/type&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;In the mapped class, declare the corresponding property:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;h4&gt;
ActiveRecord mapping:
&lt;/h4&gt; &lt;br /&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
         
[Property(&amp;quot;the_geom&amp;quot;, ColumnType = &amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;)]
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;b&gt;NOTE:&lt;/b&gt; Type parameters (see &lt;b&gt;NHibernate mapping&lt;/b&gt; above) are not supported in ActiveRecord.&lt;br /&gt;&lt;h4&gt;
ActiveWriter mapping:
&lt;/h4&gt;&lt;a href="http://www.altinoren.com/activewriter/" class="externalLink"&gt;ActiveWriter&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; is a tool to visually model entities and relationships, and generate ActiveRecord classes or NHibernate mapping files. Since &lt;a href="http://support.castleproject.org//browse/CONTRIB-28" class="externalLink"&gt;revision 186&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, it supports custom types, so we can use the GeometryType / IGeometry pair. To get the latest sources and building instructions, see &lt;a href="http://www.altinoren.com/activewriter/downloads.htm" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example usage:&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Drag &amp;amp; drop a MsSqlSpatial table from Server Explorer/Data connections.&lt;/li&gt;&lt;li&gt;In the model, select &amp;quot;the_geom&amp;quot; property.&lt;/li&gt;&lt;li&gt;In the properties window, enter the following values:&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Property &lt;/th&gt;&lt;th&gt; Value &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;Custom&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Member Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;GeoAPI.Geometries.IGeometry&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt; &lt;br /&gt;&lt;b&gt;NOTE:&lt;/b&gt; Type parameters (see &lt;b&gt;NHibernate mapping&lt;/b&gt; above) are not supported in ActiveRecord, so it is in ActiveWriter.&lt;br /&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 30 May 2007 19:14:39 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Configuration and mapping 20070530071439P</guid></item><item><title>UPDATED WIKI: Configuration and mapping</title><link>http://www.codeplex.com/NHibernateSpatial/Wiki/View.aspx?title=Configuration and mapping&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;h4&gt;
Dialect Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the NHibernate section of your configuration file add the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;hibernate.dialect&amp;quot;&amp;gt;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;If you're using &lt;a href="http://www.castleproject.org/activerecord/" class="externalLink"&gt;Castle ActiveRecord&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, the entry will look like this:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;add key=&amp;quot;hibernate.dialect&amp;quot; value=&amp;quot;NHibernate.Spatial.Dialect.SomeSpatialDialect,NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;Replace &lt;span class="codeInline"&gt;SomeSpatialDialect&lt;/span&gt; by the spatial dialect to be used. For example, &lt;span class="codeInline"&gt;MsSqlSpatialDialect&lt;/span&gt;.&lt;br /&gt;&lt;h4&gt;
Schema Generation Configuration:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Declarative:&lt;/b&gt; Use of &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html#mapping-database-object" class="externalLink"&gt;&amp;lt;database-object&amp;gt;&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; element is not supported yet.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Programmatic:&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
    Configuration cfg = new Configuration();
    // Your configuration code (eg. cfg.Configure(); )
    cfg.AddAuxiliaryDatabaseObject(new SpatialAuxiliaryDatabaseObject(cfg));
&lt;/pre&gt;Then you can use a &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/toolsetguide.html#toolsetguide-s1-3" class="externalLink"&gt;SchemaExport&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; object or the &lt;a href="http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/session-configuration.html#configuration-optional" class="externalLink"&gt;hibernate.hbm2ddl.auto&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; configuration property for schema generation.&lt;br /&gt;&lt;h4&gt;
NHibernate mapping:
&lt;/h4&gt;&lt;ul&gt;
&lt;li&gt;In the XML mappings file, map all properties as usual but for geometry columns use the following entry:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot; type=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot; /&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;Optionally, for schema generation and default values setting, you can use type parameters. The available parameters are &lt;b&gt;&lt;span class="codeInline"&gt;srid&lt;/span&gt;&lt;/b&gt; and &lt;b&gt;&lt;span class="codeInline"&gt;subtype&lt;/span&gt;&lt;/b&gt;. For example:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
&amp;lt;property name=&amp;quot;Geometry&amp;quot; column=&amp;quot;the_geom&amp;quot;&amp;gt;
    &amp;lt;type name=&amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;&amp;gt;
        &amp;lt;param name=&amp;quot;srid&amp;quot;&amp;gt;4326&amp;lt;/param&amp;gt;
        &amp;lt;param name=&amp;quot;subtype&amp;quot;&amp;gt;POLYGON&amp;lt;/param&amp;gt;
    &amp;lt;/type&amp;gt;
&amp;lt;/property&amp;gt;
&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;In the mapped class, declare the corresponding property:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt;&lt;h4&gt;
ActiveRecord mapping:
&lt;/h4&gt; &lt;br /&gt;&lt;pre&gt;
private GeoAPI.Geometries.IGeometry _geometry; 
         
[Property(&amp;quot;the_geom&amp;quot;, ColumnType = &amp;quot;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&amp;quot;)]
public virtual GeoAPI.Geometries.IGeometry Geometry
{
	get
	{
		return this._geometry;
	}
	set
	{
		this._geometry = value;
	}
}
&lt;/pre&gt; &lt;br /&gt;&lt;h4&gt;
ActiveWriter mapping:
&lt;/h4&gt;&lt;a href="http://www.altinoren.com/activewriter/" class="externalLink"&gt;ActiveWriter&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt; is a tool to visually model entities and relationships, and generate ActiveRecord classes or NHibernate mapping files. Since &lt;a href="http://support.castleproject.org//browse/CONTRIB-28" class="externalLink"&gt;revision 186&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, it supports custom types, so we can use the GeometryType / IGeometry pair. To get the latest sources and building instructions, see &lt;a href="http://www.altinoren.com/activewriter/downloads.htm" class="externalLink"&gt;here&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example usage:&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Drag &amp;amp; drop a MsSqlSpatial table from Server Explorer/Data connections.&lt;/li&gt;&lt;li&gt;In the model, select &amp;quot;the_geom&amp;quot; property.&lt;/li&gt;&lt;li&gt;In the properties window, enter the following values:&lt;/li&gt;
&lt;/ul&gt;&lt;table&gt;
&lt;tr&gt;
&lt;th&gt; Property &lt;/th&gt;&lt;th&gt; Value &lt;/th&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;Custom&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Column Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;NHibernate.Spatial.Type.GeometryType, NHibernate.Spatial&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
&lt;td&gt; Custom Member Type &lt;/td&gt;&lt;td&gt; &lt;span class="codeInline"&gt;GeoAPI.Geometries.IGeometry&lt;/span&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;</description><author>rstuven</author><pubDate>Wed, 30 May 2007 19:10:57 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Configuration and mapping 20070530071057P</guid></item></channel></rss>