keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.38k stars 1.74k forks source link

Allow filtering by geo boundaries #390

Open heshan0131 opened 5 years ago

heshan0131 commented 5 years ago
macrigiuseppe commented 5 years ago

@heshan0131 I am looking at turf.js, should we use:

or are there another methods we should use?

macrigiuseppe commented 5 years ago

The new polygon filter will be treated as a regular filter and added to Filters in vis-state. Because the each new polygon filter will required to be mapped against an existing layer, we need to properly create a connection between a filter and layer.

seanosterday commented 3 years ago

@macrigiuseppe I can see that the filter by drawn polygon works but was the filter by a geojson layer ever implemented? I am not seeing this in the demo app.

maxwell-oroark commented 3 years ago

+1 to @seanosterday's comment. It is unclear what I can presently accomplish with the draw tool in the demo app. I created a shape and added a data layer to the "Geo" filter but when I go to export "filtered data" the # of rows in the dataset are exactly the same, regardless of how restrictive my polygon is

macrigiuseppe commented 3 years ago

@macrigiuseppe I can see that the filter by drawn polygon works but was the filter by a geojson layer ever implemented? I am not seeing this in the demo app.

@seanosterday we currently don't support filter by geojson layer

macrigiuseppe commented 3 years ago

export "filtered dat

@maxwell-oroark i have tried the export functionality after filtering points using the draw tool and it works. See below:

Screen Shot 2021-03-19 at 4 58 20 PM