Created
June 23, 2015 08:02
-
-
Save MattMS/7fd44112023701757138 to your computer and use it in GitHub Desktop.
Create SQL Server geometry table for GeoServer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE GEOMETRY_COLUMNS( | |
F_TABLE_SCHEMA VARCHAR(30) NOT NULL, | |
F_TABLE_NAME VARCHAR(30) NOT NULL, | |
F_GEOMETRY_COLUMN VARCHAR(30) NOT NULL, | |
COORD_DIMENSION INTEGER, | |
SRID INTEGER NOT NULL, | |
TYPE VARCHAR(30) NOT NULL, | |
UNIQUE(F_TABLE_SCHEMA, F_TABLE_NAME, F_GEOMETRY_COLUMN), | |
CHECK( | |
TYPE IN ('POINT','LINE', 'POLYGON', 'COLLECTION', 'MULTIPOINT', 'MULTILINE', 'MULTIPOLYGON', 'GEOMETRY') | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment