Update phase_2_routing_prepare.sh

correction suppression des tronçons routables concernés par un secteur de patch
This commit is contained in:
MaelREBOUX 2021-10-13 21:51:22 +02:00
parent c00d8952b9
commit 6b6f1579fc

View file

@ -47,9 +47,9 @@ PGPASSWORD=$DB_PASSWD $PSQL -h $DB_HOST -p $DB_PORT -U $DB_USER -d $DB_NAME -c \
"DELETE FROM osm_roads_pgr WHERE id IN "DELETE FROM osm_roads_pgr WHERE id IN
( (
SELECT a.id SELECT a.id
FROM osm_roads_pgr a, osm_roads_pgr_patch_mask m FROM osm_roads_pgr_patch_mask m, osm_roads_pgr a
WHERE WHERE
a.secteur_id = $secteur_id m.secteur_id = $secteur_id
AND ST_INTERSECTS(a.the_geom, m.the_geom) AND ST_INTERSECTS(a.the_geom, m.the_geom)
);" );"
echo " fait" echo " fait"