Opened 15 years ago
Closed 13 years ago
#294 closed task (fixed)
Rationalize support for EMPTY
Reported by: | pramsey | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | empty | Cc: |
Description
Apply the rules for EMPTY geometries as laid out in DevWikiEmptyGeometry to all geometry functions.
Change History (6)
comment:1 by , 15 years ago
Type: | defect → task |
---|
comment:2 by , 15 years ago
comment:3 by , 13 years ago
With r8382 I fixed handling of EMPTY by ST_Buffer and put the regression test in tickets.sql, but I guess it'd make more sense to have an empty.sql testcase testing each and every line from the wiki page.
Does anyone feel like stubbing it ? Or I'll do it.
Note:
See TracTickets
for help on using tickets.
Just itemizing some of these cases as I come across them in tests.
SELECT ST_Distance_Sphere(ST_GeomFromText('POLYGON EMPTY',4326),ST_GeomFromText('POINT(1 3)',4326))
Gives error: geometry_distance_spheroid: Only point/line/polygon supported.
Though curiously (which I thought they shared some code)
SELECT ST_Distance(geography(ST_GeomFromText('POLYGON EMPTY',4326)),geography(ST_GeomFromText('POINT(1 3)',4326)));
Returns null as expected