You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When storing a polygon field as array, searching all points within the polygon, as well as intersecting 2 polygons works.
But finding all polygons including a particular point does not work when the polygon field is an array, and seems to works only when the polygon is store as GeoJSON object.
A solution is to store the polygon as a geoJSON object.
Is there any reason it's stored as a plain array, or is it safe to migrate all the geo field to GeoJSON object ?
The text was updated successfully, but these errors were encountered:
How do the maintainers see this working? Would the gem just switch the classes in place to use GeoJSON and leave the migration up to users? Include a rake task to migrate? Or add new field classes that read/write as GeoJSON?
When storing a polygon field as array, searching all points within the polygon, as well as intersecting 2 polygons works.
But finding all polygons including a particular point does not work when the polygon field is an array, and seems to works only when the polygon is store as GeoJSON object.
To reproduce:
This works
This does not work
A solution is to store the polygon as a geoJSON object.
Is there any reason it's stored as a plain array, or is it safe to migrate all the geo field to GeoJSON object ?
The text was updated successfully, but these errors were encountered: