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:
Adam Laža 2020-12-14 11:47:45 +01:00 committed by GitHub
parent 512b3435ad
commit 5772e61244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);