03/08/2016 Development / java script
SELECT ST_AsGeoJSON("poiGeometrico") geojson, * FROM "Incidente"
    WHERE 
ST_Intersects(ST_Buffer((SELECT shape FROM "RotaOlimpica" WHERE id = 1), 0.001),"poiGeometrico")
AND
inicio >= now() - interval '1 day'
AND
inicio <= now() + interval '1 day'
AND
status = 'ABERTO';