Skip to content
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

Feature: add GEO data type #2429

Closed
david542542 opened this issue Oct 15, 2021 · 6 comments
Closed

Feature: add GEO data type #2429

david542542 opened this issue Oct 15, 2021 · 6 comments
Labels

Comments

@david542542
Copy link

david542542 commented Oct 15, 2021

It seems DuckDB supports all the main data types with the exception of the GEO data type. A couple references:

It would be great to add support for this data type either directly or through a plugin (though I'm guessing a plugin would need to have access to that data type in storage).

@lnkuiper
Copy link
Contributor

I believe structs would already cover a large part of the GEO data type, so you can probably do much of this yourself (structs can be stored). Although it should not be very difficult to add native GEO support considering we already have structs.

Custom functions on structs can be defined using macro's.

@david542542
Copy link
Author

Thanks for the response. As an aside to the GEO feature: How can you store a named STRUCT? Is it possible to do something similar to named data types in postgres with a struct in DuckDB?

@david542542
Copy link
Author

@lnkuiper @Mytherin oh cool is this related to this that was just pushed with the CREATE TYPE ? Just noticed that from the logs but haven't yet seen it in the docs.

e1a1bc5

@mattijn
Copy link

mattijn commented Oct 17, 2021

Related: #1149

@github-actions
Copy link

github-actions bot commented Aug 2, 2023

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Aug 2, 2023
@Mytherin
Copy link
Collaborator

Mytherin commented Aug 2, 2023

The geo type is supported in the spatial extension now

@Mytherin Mytherin closed this as completed Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants