Opened 13 years ago
Closed 13 years ago
#1222 closed defect (fixed)
After the switch to SRID=0 topology tests fail
Reported by: | strk | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | topology | Version: | master |
Keywords: | Cc: |
Description
Topology tests fail. Most are likely due to geometries with an explicit SRID=-1 being compared with geometries with an implicit SRID=0.
Considering both -1 and 0 as "unknown" would likely fix these cases. BTW, I suggest we have ST_Srid() return NULL for the unknown case.
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
strk Reminder of your brilliance — let the power of emptiness be your guide
SELECT ST_SRID('POINT EMPTY'::geometry);
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The problem is CreateTopology(toponame) which uses a default srid of -1. Adding support for a "null" value in the "srid" column of topology.topology might help here. OR, accept that the "unknown" srid is officially '0' now and fix in that way.
Won't fix until we agree on where to go from here.