Skip to content

Commit

Permalink
fix typos and dead links
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Visintini <johannes.visintini@heigit.org>
  • Loading branch information
tyrasd and joker234 authored Nov 9, 2020
1 parent c58b5a8 commit 7d93595
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions documentation/manual/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ It is possible to [define custom filtering functions](https://docs.ohsome.org/ja
_ohsome_ filter
---------------

An easy way to provide complex [`filter`s](https://docs.ohsome.org/java/oshdb/0.6.0-SNAPSHOT/aggregated/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducer.html#filter-org.heigit.bigspatialdata.oshdb.api.generic.function.String-) (available in the upcoming version 0.6 of the OSHDB) is through the functionality of [ohsome filters](https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/libs/ohsome-filter#readme), which allow one to define osm data filter in a human readable syntax. With these one can combine several tag, type and geoemtry filters with arbitrary boolean operators.
An easy way to provide complex [`filter`s](https://docs.ohsome.org/java/oshdb/0.6.0-SNAPSHOT/aggregated/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducer.html#filter-org.heigit.bigspatialdata.oshdb.api.generic.function.String-) (available in the upcoming version 0.6 of the OSHDB) is through the functionality of [ohsome filters](https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/libs/ohsome-filter#readme), which allow one to define osm data filter in a human readable syntax. With these one can combine several tag, type and geometry filters with arbitrary boolean operators.

_lambda_ filter
---------------

It is possible to define [`filter` functions](https://docs.ohsome.org/java/oshdb/0.5.10/aggregated/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducer.html#filter-org.heigit.bigspatialdata.oshdb.api.generic.function.SerializablePredicate-) that can sort out values after they already have been transformed in a [map](map.md#map) step.
It is possible to define [`filter` functions](https://docs.ohsome.org/java/oshdb/0.5.10/aggregated/org/heigit/bigspatialdata/oshdb/api/mapreducer/MapReducer.html#filter-org.heigit.bigspatialdata.oshdb.api.generic.function.SerializablePredicate-) that can sort out values after they already have been transformed in a [map](map-reduce.md#map) step.

Note that it is ususally best to use the less flexible, but more performant OSM data filters described above wherever possible, as they can reduce the amount of data to be iterated over right from the start of the query. This is because while the basic filters are applied at the beginning of each query on the full OSM history data directly, the filter lambda functions are only executed after the data has already been computed and transformed.
Note that it is usually best to use the less flexible, but more performant OSM data filters described above wherever possible, as they can reduce the amount of data to be iterated over right from the start of the query. This is because while the basic filters are applied at the beginning of each query on the full OSM history data directly, the filter lambda functions are only executed after the data has already been computed and transformed.
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,8 @@ public MapReducer<X> filter(SerializablePredicate<X> f) {
/**
* Apply a custom "ohsome" filter expression to this query.
*
* <p>See https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/libs/ohsome-filter#readme
* and https://docs.ohsome.org/java/ohsome-filter/1.3.0 for further information about how
* <p>See https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/libs/ohsome-filter#ohsome-filter
* and https://docs.ohsome.org/java/ohsome-filter for further information about how
* to create such a filter expression object.</p>
*
* @param f the filter expression to apply to the mapReducer
Expand Down

0 comments on commit 7d93595

Please sign in to comment.