Are all SQL Geospatial implementations database specific?
Asked Answered
H

5

6

My team is looking into geospatial features offered by different database platforms.

Are all of the implementations database specific, or is there a ANSI SQL standard, or similar type of standard, which is being offered, or will be offered in the future?

I ask, because I would like the implemented code to be as database agnostic as possible (our project is written to be ANSI SQL standard).

Is there any known plan for standardization of this functionality in the future?

Hag answered 16/3, 2009 at 19:46 Comment(0)
T
3

Currently, there are more than one specifications followed by popular proprietary and open source implementations of spatial databases:

PostGIS, Oracle, Microsoft SQL Server and to some limited degree MySQL, all the databases implement the standard interfaces to manipulate spatial data. However, in spite of this fairly standardized features, all databases usually differ on simple SQL level what may make the database-agnostic implementation of your solution tricky. You likely need to survey the features you are interested and compare what various vendors provide.

Tullius answered 25/1, 2010 at 23:15 Comment(0)
C
2

For example GIS extensions for MySQL and for PostgreSQL both follow OpenGIS "Simple Features Specification for SQL" standard.

Corell answered 16/3, 2009 at 20:9 Comment(0)
M
2

I haven't tried it, but Google tells me FDO is "an open-source API for manipulating, defining and analyzing geospatial information regardless of where it is stored". It's listed on osgeo.org - a point in its favour in my opinion.

There are providers for MySQL & Oracle. Disappointingly though SQL Server and Postgis aren't listed on the FDO providers page.

Morpho answered 30/3, 2009 at 13:52 Comment(1)
+1 Didn't know this one. Note that FDO apparently now supports PostGIS: FDO PostgreSQL Provider, trac.osgeo.org/fdo/wiki/FdoPostgreSQLNotesCordes
D
1

The only standard I know of is http://www.opengeospatial.org/standards/sfs and I don't know how well all the spatial database extensions implement it.

Dalston answered 16/3, 2009 at 20:0 Comment(0)
P
1

there are a number of geo-databases which are accessible with hibernate spatial

  • Oracle10g
  • Postgresql
  • MySQL

using an abtraction layer like hibernate is a good idea anyways, if you plan to write a database agnostic application. hibernatespatial fills this gap for geo features.

Pulpit answered 16/3, 2009 at 20:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.