Bugfix in osm_landcover_gen_z10. (#1054)
Add missing `NOT` in WHERE condition. It causes there are duplicated features of subclass `wood` and `forest` and features of other subclasses are missing.
This commit is contained in:
parent
512b3435ad
commit
5772e61244
@ -203,7 +203,7 @@ SELECT subclass,
|
|||||||
geometry
|
geometry
|
||||||
FROM simplify_vw_z10
|
FROM simplify_vw_z10
|
||||||
WHERE (ST_NPoints(geometry) >= 300 AND subclass IN ('wood', 'forest'))
|
WHERE (ST_NPoints(geometry) >= 300 AND subclass IN ('wood', 'forest'))
|
||||||
OR (subclass IN ('wood', 'forest'))
|
OR (subclass NOT IN ('wood', 'forest'))
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX ON osm_landcover_gen_z10 USING GIST (geometry);
|
CREATE INDEX ON osm_landcover_gen_z10 USING GIST (geometry);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user