Changes between Initial Version and Version 1 of Ticket #5392, comment 5


Ignore:
Timestamp:
Jun 3, 2023, 12:13:03 PM (14 months ago)
Author:
pramsey

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5392, comment 5

    initial v1  
    2727
    2828select st_union(a.geom, b.geom)
    29 from polys a
    30 cross join polys b
    31 where a.name = 'kpc' and b.name = 'tonga';
     29  from polys a
     30  cross join polys b
     31  where a.name = 'kpc' and b.name = 'tonga';
    3232}}}
    3333
     
    3838{{{
    3939insert into polys
    40 select name || ' valid', st_makevalid(geom) as geom
    41 from polys
    42 where name in ('kpc', 'tonga');
     40  select name || ' valid', st_makevalid(geom) as geom
     41  from polys
     42  where name in ('kpc', 'tonga');
    4343
    4444select st_area(st_union(geom)) from polys where name ~ 'valid';
    4545
    4646select st_area(st_union(a.geom, b.geom))
    47 from polys a
    48 cross join polys b
    49 where a.name = 'kpc valid'
    50 and b.name = 'tonga valid'
     47  from polys a
     48  cross join polys b
     49  where a.name = 'kpc valid'
     50  and b.name = 'tonga valid'
    5151}}}
    5252
     
    5555{{{
    5656select st_area(st_union(a.geom, b.geom))
    57 from polys a
    58 cross join polys b
    59 where a.name = 'kpc'
    60 and b.name = 'tonga'
     57  from polys a
     58  cross join polys b
     59  where a.name = 'kpc'
     60  and b.name = 'tonga'
    6161}}}
    6262
     
    6464
    6565I sometimes wonder if we should do automagical makevalid as part of the try/catch block on the overlay code, so the case of the TopologyException would end up actually working, automagically (catch exception, make valid, retry). But seeing the silent failure of the pairwise code makes me question that. Automagical makevalid would make those cases of silent failure even more likely to just slide by people's notice.
    66 
    67 
    68