update on osm_roads layer
This commit is contained in:
parent
63e717710c
commit
539ad78e6c
|
@ -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 "
|
psql -h $HOST_DB_osm -U osmbr -d osm -c "
|
||||||
CREATE TABLE osm_roads
|
CREATE TABLE osm_roads
|
||||||
(
|
(
|
||||||
uid bigint,
|
uid bigint NOT NULL,
|
||||||
osm_id bigint,
|
osm_id bigint,
|
||||||
highway text,
|
highway text,
|
||||||
type text,
|
type text,
|
||||||
|
|
|
@ -199,7 +199,7 @@ ALTER TABLE phase_2_pk_secteur_4326 OWNER to redadeg;
|
||||||
DROP TABLE IF EXISTS osm_roads ;
|
DROP TABLE IF EXISTS osm_roads ;
|
||||||
CREATE TABLE osm_roads
|
CREATE TABLE osm_roads
|
||||||
(
|
(
|
||||||
id bigint,
|
uid bigint NOT NULL,
|
||||||
osm_id bigint,
|
osm_id bigint,
|
||||||
highway text,
|
highway text,
|
||||||
type text,
|
type text,
|
||||||
|
@ -208,7 +208,7 @@ CREATE TABLE osm_roads
|
||||||
name_fr text,
|
name_fr text,
|
||||||
name_br text,
|
name_br text,
|
||||||
the_geom geometry,
|
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_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)
|
CONSTRAINT enforce_srid_the_geom CHECK (st_srid(the_geom) = 2154)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue