Open bbest opened 2 years ago
Why didn't this previous fix sort it from issue https://github.com/marineenergy/apps/issues/70?
select
prot_numbe as protraction_num,
prot_aprv_ as protraction_aprv,
block_numb as block_num,
blk_fed_ap::date as block_fed_aprv,
mms_region,
mms_plan_a as mms_plan_area,
geometry
from (
select
prot_numbe, prot_aprv_, block_numb, blk_fed_ap, mms_region, mms_plan_a, geometry
from shp_blk_clip
UNION
select
prot_numbe, prot_aprv_, block_numb, blk_fed_ap, mms_region, mms_plan_a, geometry
from "shp_PC_BLK_CLIP"
UNION
select
prot_numbe, prot_aprv_, block_numb, blk_fed_ap, mms_region, mms_plan_a, geometry
from "shp_ATL_BLKCLP"
UNION
select
prot_numbe, prot_aprv_, block_numb, blk_fed_ap, mms_region, mms_plan_a, ST_MakeValid(geometry) AS geometry
from "shp_AK_BLKCLP")
Eg for full USA without tags get error:
Then inspecting latest log in
/var/log/shiny-server
:Darn geometries! Self-intersection 😠