Skip to content

Commit

Permalink
solve small typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aagm committed Mar 21, 2018
1 parent 32b05ab commit fc62558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Postgis-like operations, including returning summary statistics, and histogram d
>>>
>>>sql = "SELECT ST_HISTOGRAM(raster, lossyear, 15, true) FROM 'UMD/hansen/global_forest_change_2015'"
>>>myQuery = SQL2GEE(JsonSql(sql).to_json())
>>>print("Result of my query: ", q.response)
Result of my query: [{'ST_HISTOGRAM': {'lossyear': None}}]
>>>print("Result of my query: ", q.response())
Result of my query: [{'st_histogram': {'lossyear': [[0.0, 6929647.301960737], [1.0, 0.0], [2.0, 3.0], [3.0, 1.0], [4.0, 13.0], [5.0, 5.0], [6.0, 5.250980392156863], [7.0, 1.0], [8.0, 5.0], [9.0, 9.0], [10.0, 12.0], [11.0, 3.0], [12.0, 6.0], [13.0, 1.0], [14.0, 16.0]]}}]
```

### Execute tests
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
## Image Collection

#sql = "select count(pr), avg(tmmn) from 'IDAHO_EPSCOR/GRIDMET' where system:time_start > 284191200000 and ST_INTERSECTS(ST_SetSRID(ST_GeomFromGeoJSON('{\"type\":\"Polygon\",\"coordinates\":[[[-5.273512601852417,42.81137220349083],[-5.273512601852417,42.811803118457306],[-5.272732079029083,42.811803118457306],[-5.272732079029083,42.81137220349083],[-5.273512601852417,42.81137220349083]]]}'), 4326), the_geom) order by system:time_start asc limit 10"
sql = "select status from 'IDAHO_EPSCOR/GRIDMET' limit 2"
sql = "SELECT ST_HISTOGRAM(raster, lossyear, 15, true) FROM 'UMD/hansen/global_forest_change_2015'"

myQuery = SQL2GEE(JsonSql(sql).to_json())

Expand Down

0 comments on commit fc62558

Please sign in to comment.