Revert "gestion sous-secteurs"

This reverts commit 665eb12d2b.
This commit is contained in:
MaelReboux 2019-10-05 18:30:23 +02:00
parent 665eb12d2b
commit f342c5b8d5
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ CREATE VIEW phase_1_tdb AS
DROP TABLE IF EXISTS phase_2_pk_secteur CASCADE ;
CREATE TABLE phase_2_pk_secteur
(
id varchar(10),
id integer,
name text,
pgr_node_id integer,
secteur_id integer,

View file

@ -33,7 +33,7 @@ SELECT
ST_Distance(pk_org.the_geom, ST_ClosestPoint(node.the_geom, pk_org.the_geom))* 1.01 -- dans la distance de ce plus proche point
) AS the_geom
FROM
(SELECT id, name, secteur_id, ST_Transform(the_geom,2154) AS the_geom FROM phase_2_pk_secteur_3857) AS pk_org,
(SELECT id::integer, name, secteur_id, ST_Transform(the_geom,2154) AS the_geom FROM phase_2_pk_secteur_3857) AS pk_org,
(SELECT id, the_geom FROM osm_roads_pgr_vertices_pgr) AS node
WHERE
ST_INTERSECTS(node.the_geom, ST_BUFFER(ST_Transform(pk_org.the_geom,2154) ,25) )