org.locationtech.geomesa.geojson
Query trait
Query constructs for geojson features.
Query constructs for geojson features. Syntax is based on mongodb queries.
Available predicates: Include {} - return all features Equality { "foo" : "bar" } - find all features with an attribute named foo equal to bar Less than, greater than { "foo" : { "$lt" : 10 } } { "foo" : { "$gt" : 10 } } { "foo" : { "$lte" : 10 } } { "foo" : { "$gte" : 10 } } Spatial { geometry : { "$bbox" : [-180, -90, 180, 90] } } { geometry : { "$intersects" : { "$geometry" : { "type" : "Point", "coordinates" : [30, 10] } } } } { geometry : { "$within" : { "$geometry" : { "type" : "Polygon", "coordinates": [ [ [0,0], [3,6], [6,1], [0,0] ] ] } } } } { geometry : { "$contains" : { "$geometry" : { "type" : "Point", "coordinates" : [30, 10] } } } } And/Or { "foo" : "bar", "baz" : 10 } { "$or" : [ { "foo" : "bar" }, { "baz" : 10 } ] }
Query constructs for geojson features. Syntax is based on mongodb queries.
Available predicates: Include {} - return all features Equality { "foo" : "bar" } - find all features with an attribute named foo equal to bar Less than, greater than { "foo" : { "$lt" : 10 } } { "foo" : { "$gt" : 10 } } { "foo" : { "$lte" : 10 } } { "foo" : { "$gte" : 10 } } Spatial { geometry : { "$bbox" : [-180, -90, 180, 90] } } { geometry : { "$intersects" : { "$geometry" : { "type" : "Point", "coordinates" : [30, 10] } } } } { geometry : { "$within" : { "$geometry" : { "type" : "Polygon", "coordinates": [ [ [0,0], [3,6], [6,1], [0,0] ] ] } } } } { geometry : { "$contains" : { "$geometry" : { "type" : "Point", "coordinates" : [30, 10] } } } } And/Or { "foo" : "bar", "baz" : 10 } { "$or" : [ { "foo" : "bar" }, { "baz" : 10 } ] }