Commit Graph
600 Commits
Author SHA1 Message Date
John Krauss cf242515e3 install postgres_fdw in test setup. fixes #166 2016-07-22 18:59:11 +00:00
John Krauss 4c434f5448 tests doublechecking NULL default handled correctly, and that area normalization for polygon is per square kilometer 2016-07-22 18:56:27 +00:00
John Krauss 59dd09c554 Merge branch 'fix-required-libs' into fix-per-sq-m-obs-getmeasure-area 2016-07-22 18:17:54 +00:00
John Krauss 8187ab4bbe ensure tests run in order. Fixes #162 2016-07-22 17:44:16 +00:00
John Krauss e54d95fa8f remove unused plpythonu and cartodb dependencies
Fixes #161
2016-07-22 17:43:40 +00:00
John Krauss d766f08b03 calculate area normalization of a polygon by square kilometer, not square meter. fixes #158 2016-07-22 15:18:43 +00:00
John Krauss 8f345fd508 in this function, its "measure_id" not "numer_id" 2016-07-21 15:35:09 -04:00
Carla bfa57f4971 Use 6432 for connections from server 2016-07-19 17:54:08 +02:00
Carla 173d7c0aec Add postgres_fdw as a dependency of observatory 2016-07-19 15:56:25 +02:00
Mario de Frutos 876515f9aa Merge pull request #127 from CartoDB/table_level_functions
Add table level functions and mocks
2016-07-15 15:47:02 +02:00
Carla d93752efa3 move addr_host as a parameter 2016-07-15 11:34:42 +02:00
John Krauss c09e0b6e83 can eliminate getrelatedcolumn 2016-07-13 18:42:25 -04:00
John Krauss 748428ace1 Merge branch 'release-v-1.0.2' into getmeasure-using-obsmeta 2016-07-13 18:41:04 -04:00
john krauss 10a0dc9b26 Merge pull request #141 from CartoDB/fix-hardcoded-getcategory-geom
Fix hardcoded getcategory geom
2016-07-13 18:39:31 -04:00
john krauss 9245de84b0 Merge pull request #142 from CartoDB/comment-notices
comment out notices
2016-07-13 18:38:59 -04:00
John Krauss 7bb1bbd804 handle predenomination of points properly 2016-07-13 18:37:17 -04:00
John Krauss 1d008ccbe9 should not try to use area normalization for zhvi 2016-07-13 18:33:53 -04:00
John Krauss f581278b8a default is now NULL 2016-07-13 18:24:45 -04:00
John Krauss cbf1c5e67d fix default normalizations 2016-07-13 18:16:53 -04:00
John Krauss adc663b563 default to area normalization for point, no normalization for polygon getmeasures 2016-07-13 18:14:09 -04:00
John Krauss 3a37b98b72 we still needt hese for getdemographicsnapshot 2016-07-13 17:54:19 -04:00
John Krauss a4a20e9c1d prevent internal join for denominated getmeasure by polygon 2016-07-13 17:41:05 -04:00
John Krauss f485426085 fix syntax error 2016-07-13 17:38:54 -04:00
John Krauss 75e765f256 explicit type casts for = ANY 2016-07-13 17:38:05 -04:00
John Krauss b690478aff use IN ANY to avoid joins elsewhere, and filter by nonzero overlap for all getmeasure polygon queries 2016-07-13 17:36:27 -04:00
John Krauss 6fa9d5c96a add missing array_agg 2016-07-13 17:27:03 -04:00
John Krauss fc6317161f avoid joins 2016-07-13 17:26:01 -04:00
John Krauss c07d9f6833 add missing params 2016-07-13 17:13:45 -04:00
John Krauss ff173a0152 filter so theres some overlap 2016-07-13 17:12:16 -04:00
John Krauss a7de1f2228 intersects, not overlaps 2016-07-13 16:57:27 -04:00
John Krauss 86529ada5a use st_overlaps instead of && 2016-07-13 16:53:50 -04:00
John Krauss 80cdc5e8ca fix predicate 2016-07-13 16:48:06 -04:00
John Krauss 7c8c5cca0a fix params 2016-07-13 16:42:02 -04:00
John Krauss a946ab9d03 fix params in denominated polygon getmeasure 2016-07-13 16:28:50 -04:00
John Krauss da127baa3c implementation for polygon/multipolygon weighted getmeasure 2016-07-13 16:24:33 -04:00
John Krauss e89a88aa83 use subselects as joins are horrifically slow over FDW 2016-07-13 15:59:27 -04:00
John Krauss af2259bb0a fix wrong number of variables INTO 2016-07-13 13:39:33 -04:00
John Krauss fb083f4b9e fix typo 2016-07-13 13:30:05 -04:00
John Krauss 976e119abb fix typo 2016-07-13 12:21:53 -04:00
John Krauss bbc6f9ef36 getmeasure bypassing several older functions, areas not yet implemented 2016-07-13 12:20:01 -04:00
John Krauss 5229279ee9 Merge branch 'comment-notices' into release-v-1.0.2-preview 2016-07-13 11:14:00 -04:00
John Krauss 2107796f07 updates to NEWS.md and observatory.control 2016-07-12 17:49:34 -04:00
John Krauss 6a39bedee7 fix ambiguous colname for categories in points too 2016-07-12 16:10:00 -04:00
John Krauss 81176d1df2 fix possible ambiguity in category colname 2016-07-12 16:06:19 -04:00
John Krauss 4b26eeda65 fix to correct segment for testarea area 2016-07-12 15:33:26 -04:00
John Krauss 4fc02f99e2 choose largest segment in the polygon 2016-07-12 14:37:43 -04:00
John Krauss 5bb4285528 fix typo 2016-07-12 14:16:28 -04:00
John Krauss 1e9c3fb860 fix typo 2016-07-12 14:15:00 -04:00
John Krauss 62a2c259a7 fix typo 2016-07-12 14:13:09 -04:00
John Krauss 61854a070d fix wrong quoting 2016-07-12 14:11:02 -04:00