RedisLabs / geo.lua

A helper library for Redis geospatial indices
Other
146 stars 22 forks source link

GEOJSONPOLYADD error #6

Open kbondarev opened 8 years ago

kbondarev commented 8 years ago

When trying to add a polygon using GEOJSONPOLYADD I get this error: (error) ERR Error running script (call to f_00246cc50061d17a18f65f3b32eaf921e6902d69): @user_script:548: user_script:548: attempt to call field '_polygonencode' (a nil value) Looking in the source I found that there is a call to Geo._polygonencode, however such function does not exist.

Also, in the documentation there is no mention of GEOJSONPOLYADD, I tried to use GEOJSONADD to add a polygon and it failed with the error: @user_script:516: user_script:516: Feature geometry must be a Point Then I've found the GEOJSONPOLYADD command in the source code.

Thanks, Kirill.