update on osm_roads layer

This commit is contained in:
MaelReboux 2019-05-15 17:11:03 +02:00
parent 63e717710c
commit 539ad78e6c
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ psql -h $HOST_DB_osm -U osmbr -d osm -c "DROP TABLE IF EXISTS osm_roads ;"
psql -h $HOST_DB_osm -U osmbr -d osm -c "
CREATE TABLE osm_roads
(
uid bigint,
uid bigint NOT NULL,
osm_id bigint,
highway text,
type text,

View file

@ -199,7 +199,7 @@ ALTER TABLE phase_2_pk_secteur_4326 OWNER to redadeg;
DROP TABLE IF EXISTS osm_roads ;
CREATE TABLE osm_roads
(
id bigint,
uid bigint NOT NULL,
osm_id bigint,
highway text,
type text,
@ -208,7 +208,7 @@ CREATE TABLE osm_roads
name_fr text,
name_br text,
the_geom geometry,
CONSTRAINT osm_roads_pkey PRIMARY KEY (id),
CONSTRAINT osm_roads_pkey PRIMARY KEY (uid),
CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'LINESTRING'::text OR geometrytype(the_geom) = 'MULTILINESTRING'::text),
CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
);