Skip to content

Generate GEOMETRY (POINT) columns #721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 30, 2018
Merged

Conversation

roji
Copy link
Member

@roji roji commented Nov 24, 2018

We previously generated PostgreSQL GEOMETRY (or GEOGRAPHY) columns, not
taking into account the CLR type. We now include that as a constraint on
the column.

Note that SRID support still needs to be done (#717).

Fixes #719

@roji
Copy link
Member Author

roji commented Nov 24, 2018

/cc @bricelam in case you're curious. PostgreSQL supports PostGIS column names such as GEOMETRY (polymorphic, can be any spatial type), GEOMETRY (POINT) (constrained to point only), GEOMETRY (POINT,4326) (constrained with SRID, see #717), GEOGRAPHY (GEOMETRY,4326) which funnily means any spatial type but geography.

Copy link
Contributor

@austindrenski austindrenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few nits/suggestions.

We previously generated PostgreSQL GEOMETRY (or GEOGRAPHY) columns, not
taking into account the CLR type. We now include that as a constraint on
the column.

Note that SRID support still needs to be done (npgsql#717).

Fixes npgsql#719
@roji
Copy link
Member Author

roji commented Nov 29, 2018

@austindrenski will wait for your feedback on the above before merging.

@roji roji force-pushed the spatial-types-and-srid branch from bc37402 to 3719c5a Compare November 30, 2018 09:30
@roji roji merged commit 4c44469 into npgsql:dev Nov 30, 2018
@roji roji deleted the spatial-types-and-srid branch November 30, 2018 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants