mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 12:06:27 +03:00
22 lines
625 B
SQL
22 lines
625 B
SQL
-- SPDX-License-Identifier: GPL-2.0-only
|
|
--
|
|
-- This file is part of Nominatim. (https://nominatim.org)
|
|
--
|
|
-- Copyright (C) 2022 by the Nominatim developer community.
|
|
-- For a full list of authors see the git log.
|
|
DROP TABLE IF EXISTS gb_postcode;
|
|
CREATE TABLE gb_postcode (
|
|
id integer,
|
|
postcode character varying(9),
|
|
geometry geometry,
|
|
CONSTRAINT enforce_dims_geometry CHECK ((st_ndims(geometry) = 2)),
|
|
CONSTRAINT enforce_srid_geometry CHECK ((st_srid(geometry) = 4326))
|
|
);
|
|
|
|
DROP TABLE IF EXISTS us_postcode;
|
|
CREATE TABLE us_postcode (
|
|
postcode text,
|
|
x double precision,
|
|
y double precision
|
|
);
|