Know of any C# spatial data libraries? [closed]
Asked Answered
I

4

10

I'm looking at implementing spatial queries in .NET without using SQL2008. The first requirement is to be able to create a (BTree styled) spatial index and be able to query it.

Although SQL 2008 ships with .NET libraries for the types, you need to use SQL for the spatial indexes.

Has anybody used any .NET libraries for spatial data (OS or commercial)? I am looking at NetTopologySuite but it looks quiet and I don't want a dead library.

Iaria answered 2/2, 2010 at 13:54 Comment(1)
Apparently Microsoft announced support for spatial in SQL Azure today at MIX in Las Vegas, so presumably this will include spatial indexes.Mainis
M
9

SharpMap is a (well known and used) OpenSource collection of spatial libraries for .NET

http://www.codeplex.com/SharpMap

Commercial libraries from ESRI would be the most widely used. Can I ask why you don't want to use SQL for creating spatial indexes?

http://msdn.microsoft.com/en-us/library/bb964712.aspx

If you don't want to create indexes in the database then you will be stuck using shapefiles:

http://mapserver.org/utilities/shptree.html

Update

I've not used NTS or JTS, but there is also a C++ implementation of JTS at http://trac.osgeo.org/geos/ which has an active user community, and I've used on a couple of projects.

Shapely http://gispython.org/shapely/manual.html builds on GEOS in Python. If you are doing everything in "the cloud" then it may be worth reading this article - http://sgillies.net/blog/986/manipulimization-of-whatchamacallems/

Re indexes - I found SQL Server + spatial indexes to outperform shapefile + indexes with the same data. If you require the indexes for displaying data then tile caches would perform far better than any indexing.

Python seems to have become one of the key languages in GIS. There is also an R-type index library - http://pypi.python.org/pypi/Rtree/

Mainis answered 4/2, 2010 at 13:8 Comment(1)
SQL Azure doesn't support spatial data and I'm not convinced that SQL is the best place for spatial indexes in a highly scalable environment. Thanks for the shptree link and the acknowledgement of SharpMap. Do you have any opinion of NetTopologySuite? As a port of JTS, doesn't it have R-Tree index support?Iaria
S
4

NTS is good...

Other stuff which may be useful now or later:-

GDAL/OGR for accessing different raster/vector formats PROJ4 for handling projections and transformations (Check out FWTOOLS download for the above in 1 install)

You should check out Mapwindow too... ver 6 is all re-written in .NET should be out soon if not out yet.. saw it at FOSS4G in Sydney.

http://www.mapwindow.org/

Of course PostGRES with PostGIS is a very powerful spatial database you can access from .NET

Also check out SQLLite which has spatial extensions for vector dat, and now RasterLite!!

Geoserver or Mapserver if you want to web enable anything.

Other general GIS apps to checkout: GRASS and SAGA

Systematic answered 10/2, 2010 at 7:28 Comment(0)
C
2

A Simple for QuadTree http://www.codeproject.com/KB/recipes/QuadTree.aspx

Cuneate answered 15/7, 2010 at 9:1 Comment(0)
N
-1

I would suggest DotSpatial

its MIT licensed

Nuristan answered 4/5, 2020 at 14:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.