Permalink
Browse files
fixed an index definition
- Loading branch information...
|
|
@@ -221,4 +221,4 @@ CREATE TABLE lgd_relation_geoms( |
|
|
;
|
|
|
|
|
|
SELECT AddGeometryColumn('lgd_relation_geoms', 'geom', 4326, 'GEOMETRY', 2);
|
|
|
-CREATE INDEX idx_simple_polys_polygon ON simple_polys USING GIST(polygon);
|
|
|
+CREATE INDEX idx_lgd_relation_geoms_geom ON lgd_relation_geoms USING GIST(geom);
|
|
|
@@ -8,6 +8,7 @@ INSERT INTO lgd_relation_geoms |
|
|
SELECT a.relation_id, lgd_try_create_polygon(a.relation_id)
|
|
|
FROM (
|
|
|
SELECT DISTINCT b.relation_id FROM relation_tags b WHERE b.k='postal_code'
|
|
|
+ AND b.relation_id = 1301659
|
|
|
) a
|
|
|
WHERE lgd_try_create_polygon(a.relation_id) IS NOT NULL
|
|
|
AND a.relation_id NOT IN (SELECT c.relation_id FROM lgd_relation_geoms c)
|
|
|
|
0 comments on commit
7ef1208