mapbox / postgis-vt-util

postgres helper functions for making vector tiles
BSD 3-Clause "New" or "Revised" License
273 stars 63 forks source link

Expect labelgrid() return null instead of string 'null' #4

Closed helmi03 closed 9 years ago

helmi03 commented 9 years ago

https://github.com/mapbox/postgis-vt-util/blob/master/lib.sql#L26

ERROR: parse error - invalid geometry HINT: "nu" <-- parse error at position 2 within geometry

I know the solution for my problem, but any good reason return string 'null' ?

ajashton commented 9 years ago

The output of this function is not intended to be parsed as an actual geometry, it's just meant for sorting with one unique string per grid cell.