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 pramsey, 15 years ago

Type: defecttask

comment:2 by robe, 15 years ago

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

comment:3 by strk, 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.

comment:4 by strk, 13 years ago

r8408 inaugurates a regression test for "empty"

comment:5 by strk, 13 years ago

#692 is about the spatial predicates portion of this

comment:6 by strk, 13 years ago

Resolution: fixed
Status: newclosed

This is completed as of r8415

Note: See TracTickets for help on using tickets.