CartoDB / observatory-extension

BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

What to do when you want to pass a polygon with `OBS_GetBoundariesByGeometry(polygon geometry, geometry_id text)`? #273

Closed csobier closed 7 years ago

csobier commented 7 years ago

@talos , can you help me clarify the docs around this?

Is the error message wrong, does it need more information? Or should the name of the function (and the first argument in the table), be changed to "point", not "polygon"? I'm not sure I understand what needs to be clarified, so I wanted to start the conversation.

@ztephm for awareness, since she stumbled upon this scenario today.

talos commented 7 years ago

I think @ztephm was referring to docs for OBS_GetBoundariesByGeometry.

That function can take either a point or a polygon. So its first argument should just be geom geometry instead of polygon geometry, and the first error If a geometry other than a point... should be removed.

ztephm commented 7 years ago
csobier commented 7 years ago

Ok, sorry (I copied and pasted wrong, overload moment). I'll create a PR with the fixes. Thank you!