Skip to content

Commit

Permalink
feat: Geojson properties selections
Browse files Browse the repository at this point in the history
  • Loading branch information
neocarto committed Jul 7, 2022
1 parent 64a9ecb commit f1a4ac4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/properties.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import * as geo from "geotoolbox";

export let properties = {
table: geo.table,
remove: function remove({ geojson, field }) {
return geo.remove({ x: geojson, field });
},
keep: function keep({ geojson, field }) {
return geo.keep({ x: geojson, field });
},
add: function add({ geojson, field, expression }) {
return geo.add({ x: geojson, field, expression });
},
filter: function filter({ geojson, expression }) {
return geo.filter({ x: geojson, expression });
},
subset: function subset({ geojson, field, selection, inverse }) {
return geo.subset({ x: geojson, field, selection, inverse });
},
head: function head({ geojson, field, nb }) {
return geo.head({ x: geojson, field, nb });
},
tail: function tail({ geojson, field, nb }) {
return geo.tail({ x: geojson, field, nb });
},
};

0 comments on commit f1a4ac4

Please sign in to comment.