Ticket #294 (closed task: fixed)

Opened 4 years ago

Last modified 17 months ago

Rationalize support for EMPTY

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: trunk
Keywords: empty Cc:

Description

Apply the rules for EMPTY geometries as laid out in DevWikiEmptyGeometry to all geometry functions.

Change History

Changed 4 years ago by pramsey

  • type changed from defect to task

Changed 3 years ago by robe

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

Changed 17 months ago by strk

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.

Changed 17 months ago by strk

r8408 inaugurates a regression test for "empty"

Changed 17 months ago by strk

#692 is about the spatial predicates portion of this

Changed 17 months ago by strk

  • status changed from new to closed
  • resolution set to fixed

This is completed as of r8415

Note: See TracTickets for help on using tickets.