Mercurial > gemma
annotate schema/updates/1429/01.disallow_empty_fairway_dimensions.sql @ 5154:a33f1d51d1b7
Changed FD coordinate calculation from polygon to multipolygon.
author | Raimund Renkert <raimund@renkert.org> |
---|---|
date | Wed, 01 Apr 2020 15:48:07 +0200 |
parents | 8c590ef35280 |
children |
rev | line source |
---|---|
5031
8c590ef35280
Improve feedback if geometry cannot be stored
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
1 ALTER TABLE waterway.fairway_dimensions |
8c590ef35280
Improve feedback if geometry cannot be stored
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
2 DROP CONSTRAINT fairway_dimensions_area_check, |
8c590ef35280
Improve feedback if geometry cannot be stored
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 ADD CHECK(ST_IsValid(CAST(area AS geometry)) |
8c590ef35280
Improve feedback if geometry cannot be stored
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
4 AND NOT ST_IsEmpty(CAST(area AS geometry))) |