Les géométries sont associées à des systèmes de référence spatiale . La norme spécifie également les attributs , les méthodes et les assertions des géométries, selon une approche orientée objet . En général, une géométrie 2D est simple si elle ne contient aucune auto-intersection. La spécification définit les prédicats spatiaux DE-9IM et plusieurs opérateurs spatiaux permettant de générer de nouvelles géométries à partir de géométries existantes.
Partie 2
La partie 2 est une interface SQL faisant référence à la partie 1, assurant la traduction de l'interface vers des environnements non orientés objet. Par exemple, au lieu d'un élément ` someGeometryObject.isEmpty()a` dans la partie 1, SQL/MM utilise une ST_IsEmpty(...)fonction SQL.
Spatial
The spatial extension adds the datatypes "Circularstring", "CompoundCurve", "CurvePolygon", "PolyhedralSurface", the last of which is also included into the OGC standard. It also defines the SQL/MM versions of these types and operations on them.
Implementations
Direct implementations of Part 2 (SQL/MM) include:
- MySQL Spatial Extensions. Up to MySQL 5.5, all of the functions that calculate relations between geometries are implemented using bounding boxes not the actual geometries. Starting from version 5.6, MySQL offers support for precise object shapes.
- MonetDB/GIS extension for MonetDB.
- PostGIS extension for PostgreSQL, also supporting some of the SQL/MM Spatial features.
- SpatiaLite extension for SQLite
- Oracle Spatial, which also implements some of the advanced features from SQL/MM Spatial.
- IBM Db2 Spatial Extender and IBM Informix Spatial DataBlade.
- Microsoft SQL Server since version 2008, with significant additions in the 2012 version.
- SAP Sybase IQ.
- SAP HANA as of 1.0 SPS6.
Adaptations include:
- Implementations of the CORBA and OLE/COM interfaces detailed above are mainly produced by commercial vendors maintaining legacy technology.
- R: The sf package implements Simple Features and contains functions that bind to GDAL for reading and writing data, to GEOS for geometrical operations, and to PROJ for projection conversions and datum transformations.
- The GDAL library implements the Simple Features data model in its OGR component.
- The Java-based deegree framework implements SFA (part 1) and various other OGC standards.
- La bibliothèque Rust geo_types implémente des primitives géométriques qui respectent les normes d'accès aux fonctionnalités simples.
GeoSPARQL est une norme OGC destinée à permettre la représentation et l'interrogation de données géospatialement liées basées sur RDF et SPARQL en définissant une ontologie pour le raisonnement géospatial prenant en charge un petit vocabulaire RDFS / OWL Simple Features (ainsi que DE-9IM et RCC8 ) pour les littéraux GML et WKT .
En 2012, diverses bases de données NoSQL offraient un support très limité pour « tout ce qui est plus complexe qu’une boîte englobante ou une recherche de proximité ».