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

add support of spatial data #11

Open
erwanj opened this issue Aug 7, 2024 · 4 comments
Open

add support of spatial data #11

erwanj opened this issue Aug 7, 2024 · 4 comments
Assignees
Labels

Comments

@erwanj
Copy link

erwanj commented Aug 7, 2024

It seems that spatial data is not supported and is recognized as string in tableau.
Does the lack of the support of spatial data is a limitation of Tableau itself or of the connector?

@elefeint
Copy link
Collaborator

elefeint commented Aug 7, 2024

Not sure, but we'll figure it out. Can you describe your usecase?

@erwanj
Copy link
Author

erwanj commented Aug 8, 2024

I want to be able to create a map with geometries (points/polygons) that are stored in a duckdb table. I already use this with postgis and it works well.

I have added the following instructions to the connexion of duckdb in the SQL initial:
INSTALL spatial;
LOAD spatial;

The query to test is :

SELECT ST_GeomFromText('SRID=4326;POLYGON((-71 42,-71 43,
-72 43,-72 42,-71 42))')::geometry as geom
  • query on duckdb in dbeaver :
    image
    It works.

  • query on duckdb in tableau
    image
    We can see that tableau doesn't detect the geom attribute as a geometry but a string.

For information, I show how it behaves with postgis on tableau :

  • query on postgis in tableau
    image
    We can see that tableau does detect the geom attribute as a geometry with postgis.
    image

@rferraton
Copy link

rferraton commented Jan 8, 2025

Hello, I have the same problem importing a shapefile into Duckdb into a table, The Taco for DuckDB does not recognize the geometry datatype of the geom field whereas Dbeaver can :
2025-01-08_09h04_35

2025-01-08_09h06_25

@kglover29
Copy link

This is a Tableau platform limitation. I've added it to our backlog.

@elefeint elefeint added the Tableau label Feb 6, 2025 — with Linear
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