Commit Graph

356 Commits

Author SHA1 Message Date
antoniocarlon
0ae15880e0 Function returning MVT ready geoms and MVT data in JSON 2018-05-18 12:49:58 +02:00
antoniocarlon
811009a8ad Using clipped geometries parametrized 2018-05-17 17:03:27 +02:00
antoniocarlon
f1668777d5 Using shoreline clipped geoms 2018-05-17 16:57:04 +02:00
antoniocarlon
f050c05a55 Added outer joins on geometries 2018-05-17 15:11:14 +02:00
antoniocarlon
467883726b Added area normalization option 2018-05-17 14:13:06 +02:00
antoniocarlon
915e67c061 Added DO+MasterCard MVT returning function 2018-05-16 13:34:32 +02:00
antoniocarlon
9f62a8c127 Fixing errors. Request multiple measurements is now allowed 2018-05-11 15:30:37 +02:00
antoniocarlon
d050b968a4 Fixed field naming 2018-05-09 14:47:00 +02:00
antoniocarlon
78a7ccbe4b Fix y coordinate 2018-05-09 13:40:26 +02:00
antoniocarlon
92155b6b33 Fixed area > 0 2018-05-09 13:27:03 +02:00
antoniocarlon
5c4bb80f57 Fixed area/perimeter relation 2018-05-09 13:18:19 +02:00
antoniocarlon
b8d00c49cb Fixed areas 2018-05-09 12:46:00 +02:00
antoniocarlon
dcf10edd9e Added tolerance for the areas 2018-05-09 12:29:42 +02:00
antoniocarlon
db637f6e52 Returning simple JSON 2018-05-09 11:36:24 +02:00
antoniocarlon
4b128ea3e8 Fixing bounds 2018-05-09 11:20:17 +02:00
antoniocarlon
93790e9f0d Fixed MVT data 2018-05-09 10:16:03 +02:00
antoniocarlon
d309a25379 Fixed MVT data 2018-05-09 10:14:59 +02:00
Mario de Frutos
50008ea149 WIP 2018-05-09 09:39:20 +02:00
antoniocarlon
5f9f77ded1 Fixed errors 2018-05-08 17:50:01 +02:00
antoniocarlon
3fba8a3091 Inverting y coordinate 2018-05-08 16:54:53 +02:00
antoniocarlon
fafd4a364e Fixed naming issue 2018-05-08 15:52:30 +02:00
antoniocarlon
46d7027cdb Created MVT returning function for DO 2018-05-04 15:18:55 +02:00
Mario de Frutos
eb31a8f40a Remove new fields not used to simplify deploy process 2018-04-19 19:52:19 +02:00
Mario de Frutos
ed3b7de9e0 Fix not valid column in exploration functions 2018-04-16 11:38:28 +02:00
Antonio
b891034146 Changed name of numer timespans to ensure backwards compatibility 2018-04-12 17:09:19 +02:00
Antonio
89f76e2a1a Refactor geom_numer_timespan 2018-04-12 17:09:19 +02:00
Mario de Frutos
850b3c2524 Merge pull request #327 from CartoDB/Mitigate_collisions_in_suggested_name
Modified the denominated suggested_name to mitigate collisions
2018-04-12 17:07:01 +02:00
Antonio
be82c87bb1 Fixed CR suggestion 2018-04-11 10:36:57 +02:00
Antonio
7aac256892 Refactor OBS_GetAvailableTimespans 2018-04-11 10:36:57 +02:00
Antonio
6d23509557 Modified the denominated suggested_name to mitigate collisions 2018-02-23 10:46:01 +01:00
Mario de Frutos
94b8e7492d OBS_GetAvailableGeometries now receives number of geometries from input
We need the number of geometries to pass them to the get score function
in order to get an accurate score for the input in order to suggest
what is the geometry that fits better for the input we have
2017-10-10 18:09:26 +02:00
Mario de Frutos
cef99c6343 OBS_MetadataValidation
New function to check the metadata in order to search for errors like
for example if we have the metadata for a median aggregation and the
normalization is by are it'll fail.
2017-08-09 16:11:10 +02:00
Mario de Frutos
adae37631e Modified OBS_GetAvailableGeometries
Now use the new meta ttable obs_meta_geom_numer_timspan to filter
the geometries by geometries timepsan and/or numerator timespan (which
is what we get when we use the obs_getavailabletimepspans)
2017-07-11 16:06:11 +02:00
Mario de Frutos
aedc45f2a8 Merge pull request #300 from CartoDB/4967_new_numerators_function
New private function _OBS_GetNumerators to be used in our UI
2017-06-29 17:51:50 +02:00
Mario de Frutos
8612da57f7 New private function _OBS_GetNumerators to be used in our UI
The current OBS_GetAvailableNumerators is not designed with our
UI in mind so it's causing a lot of troubles and we're doing so
many hacks to fit our UI needs and the interface of the function so this
function it's a better fit for our purposes.

This function is private because, by now, we don't want to expose
as a public function because could suffer changes in the near future.
2017-06-29 16:04:11 +02:00
Mario de Frutos
d1f4e570ad Return NULL for the affected value and not for all the measurements
Right now we're doing INNER JOINS when we JOIN the _procgeoms and
the data so we end up with NULL value instead of id, NULL value. We need
to have the id available to make the JOIN at the end of the query and
provide results like this:

id |                               data
----+------------------------------------------------------------------
  1 | [{"value" : 858469},{"value" : 73.9397964478},{"value" : 69092}]
  2 | [{"value" : 738774},{"value" : null},{"value" : 2235406}]
2017-06-29 10:37:07 +02:00
John Krauss
6266262427 new code to handle mixed geometries more quickly 2017-05-10 20:24:21 +00:00
John Krauss
28694163a2 prefer geographpic precision over most recent timespan, handles issues emerging from inclusion of 1-year acs 2017-04-25 18:53:12 +00:00
John Krauss
cd5cb38e8d Merge branch 'release-v-1.5.0' into obs-getavailablegeometries-return-tags 2017-04-24 17:50:57 +00:00
John Krauss
26e1a2f461 Add tags to obs_getavailablegeometries
Fixes #260

* Adds `geom_type`, `geom_extra`, and `geom_tags` to `OBS_GetAvailableGeometries`. This brings it up to spec with existing docs.
* Adds `timespan_type`, `timespan_extra`, and `timespan_tags` to `OBS_GetAvailableTimespans` for consistency.
2017-04-03 21:51:32 +00:00
John Krauss
090a1add43 add suggested_name output to OBS_GetMeta. fixes #279 2017-04-03 19:44:00 +00:00
John Krauss
61552adba4 Allow for target_geoms and target_area override on column-by-column basis 2017-03-21 17:26:02 +00:00
John Krauss
01779991bb Remove erroneously commited NOTICE 2017-03-10 20:13:27 +00:00
John Krauss
4a29c060ef fix unittest bug, easier to read use of unnest, static geomvals when one passed in 2017-03-10 19:18:06 +00:00
John Krauss
1639bea74a mark relevant functions STABLE 2017-03-10 18:36:51 +00:00
John Krauss
765cbfcccc only do polygon operations when polygons passed in 2017-03-10 16:32:31 +00:00
John Krauss
c4f3c5d534 selectively pass through obs geometries and area calcs 2017-03-10 16:23:27 +00:00
John Krauss
d5e7d95824 fix performance regression on getboundariesbygeometry, where pct overlap was being unnecessarily calculated 2017-03-09 21:26:53 +00:00
John Krauss
3ff1b36d7f remove erroneous NOTICE 2017-03-09 20:46:38 +00:00
John Krauss
7ef035580f avoid geom calculation when points are passed in 2017-03-09 17:29:41 +00:00