question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Be able to use a column for ranges in AOIs

See original GitHub issue

SB ticket

Currently, isodistance functions can only accept an array of fixed values as range. The same range is used for every row:

SELECT (
  cdb_isodistance(
    the_geom, 
    'walk', 
    ARRAY[300, 600, 900]::integer[])
  ).the_geom 
FROM untitled_table_1

That query returns three different isolines at 300, 600 and 900 seconds for each row.

It would be nice if we could use a column as range parameter, so each point could have a different range value and therefore produce a unique isoline:

SELECT (
  cdb_isodistance(
    the_geom, 
    'walk', 
    string_to_array(range,',')::integer[])
  ).the_geom 
FROM untitled_table_1

If we had this feature, the query above would take the string in range (which should be something like 300,600,900), create an integer array from it and use the values to request isolines with a varying range.

It currently fails with:

Error in SQL query: cdb_dataservices_client._cdb_isodistance(6): [cartodb_user_a6f0d0fe-xxxx-xxxx-xxxx-22b0010fe409_db] REMOTE ERROR: spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: Exception: Error trying to get mapzen isolines.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
urbanphescommented, Jul 26, 2017

Thanks for the feedback, mates!

I’ve been working on a second approach.

  • I’ve changed the texts that @arianaescobar suggested.
  • Now the decision is taken when the user is on radius selection:
    • “Manual” with the slider we have now
    • “Column” selecting a column in the table

Here is the InVision project: https://invis.io/SPCR7ERJY

1reaction
urbanphescommented, Jul 28, 2017

Close and promote ¿?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ExcelScript.Range interface - Office Scripts
Range represents a set of one or more contiguous cells such as a cell, a row, a column, or a block of cells....
Read more >
Dimensions: AOI - How to setup the Purchase Invoice template ...
In the Choose Column range for Supplier Code window, click the red down arrow icon. The Cell Range appears on the template and...
Read more >
Select Data From Pandas Dataframes
You can use location-based indexing to query pandas dataframes using the attribute .iloc and providing the row and column selection as ranges ( ......
Read more >
New This Week: Improvements to Date Range Selection
The Default Date column is used in the date range selection menu found underneath the AOI drawing tools. date selector box. How it...
Read more >
SARINGESTAOI
SARINGESTAOI has been designed to use the SAR file math model (if available) and a DEM to reproject the external AOI (scenario 1)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found