cql2 0.5.5

Parse, validate, and convert Common Query Language (CQL2) text and JSON
Documentation
1
2
3
eo:instrument LIKE 'OLI%'                 AND S_INTERSECTS(footprint,POLYGON((43.5845 -79.5442,                                                     43.6079 -79.4893,                                                     43.5677 -79.4632,                                                     43.6129 -79.3925,                                                     43.6223 -79.3238,                                                     43.6576 -79.3163,                                                     43.7945 -79.1178,                                                     43.8144 -79.1542,                                                     43.8555 -79.1714,                                                     43.7509 -79.6390,                                                     43.5845 -79.5442))) 
(("eo:instrument" LIKE 'OLI%') AND s_intersects(footprint, POLYGON((43.5845 -79.5442,                                                     43.6079 -79.4893,                                                     43.5677 -79.4632,                                                     43.6129 -79.3925,                                                     43.6223 -79.3238,                                                     43.6576 -79.3163,                                                     43.7945 -79.1178,                                                     43.8144 -79.1542,                                                     43.8555 -79.1714,                                                     43.7509 -79.6390,                                                     43.5845 -79.5442))))
{"op":"and","args":[{"op":"like","args":[{"property":"eo:instrument"},"OLI%"]},{"op":"s_intersects","args":[{"property":"footprint"},{"type":"Polygon","coordinates":[[[43.5845,-79.5442],[43.6079,-79.4893],[43.5677,-79.4632],[43.6129,-79.3925],[43.6223,-79.3238],[43.6576,-79.3163],[43.7945,-79.1178],[43.8144,-79.1542],[43.8555,-79.1714],[43.7509,-79.639],[43.5845,-79.5442]]]}]}]}