12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>103 / 310NoteSQL-MM defines the result of ST_IsEmpty(NULL) to be 0, while <strong>PostGIS</strong> returns NULL.This method implements the OpenGIS Simple Features Implementation Specification for SQL 1.1. s2.1.1.1This method implements the SQL/MM specification. SQL-MM 3: 5.1.7This method supports Circular Strings and CurvesExamplesSELECT ST_IsEmpty(’GEOMETRYCOLLECTION(EMPTY)’);st_isempty------------t(1 row)SELECT ST_IsEmpty(ST_GeomFromText(’POLYGON EMPTY’));st_isempty------------t(1 row)SELECT ST_IsEmpty(ST_GeomFromText(’POLYGON((1 2, 3 4, 5 6, 1 2))’));st_isempty------------f(1 row)SELECT ST_IsEmpty(ST_GeomFromText(’POLYGON((1 2, 3 4, 5 6, 1 2))’)) = false;?column?----------t(1 row)SELECT ST_IsEmpty(ST_GeomFromText(’CIRCULARSTRING EMPTY’));st_isempty------------t(1 row)7.4.13 ST_IsRingST_IsRing — Returns TRUE if this LINESTRING is both closed and simple.Synopsisboolean ST_IsRing(geometry g);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!