Skip to main content

Hello,

 

I have a workbook that contains Polygon shapes (calculated from WTK using rawsql and custom sql) intersecting with a linear geometry shapefile. The corners of the polygon shape coordinates are also available data points. I'd like to figure out what's the best way to show only the polygons which are within 10 ft of any of the lines in any direction.  We are using Tableau 2019.1

 

Thank you!

Marina

2 answers
  1. Jun 15, 2019, 8:31 AM

    Hi Marina,

     

    You can't do this within Tableau, but you probably have to solve this problem within your SQL database.

    For example, if you are using MS SQL the "STDistance" should be able to calculate all distances between your polygons and points.

    STDistance (geometry Data Type) - SQL Server | Microsoft Docs

     

    Kind regards,

    Johan de Groot