| 03:18 | * | kunigunde[m] has quit (Ping timeout: 265 seconds) |
| 03:18 | * | RevCornWallaceII has quit (Ping timeout: 265 seconds) |
| 03:18 | * | MatrixTravelerb4 has quit (Ping timeout: 265 seconds) |
| 03:19 | * | DanielAshcraft[m has quit (Ping timeout: 265 seconds) |
| 03:25 | * | MatrixTravelerb4 has joined |
| 03:35 | * | kunigunde[m] has joined |
| 03:35 | * | RevCornWallaceII has joined |
| 03:39 | * | DanielAshcraft[m has joined |
| 06:11 | * | farmBOT has joined |
| 15:29 | symbioquine[m] | Where does this validation occur in farmOS 1.x; |
| 15:29 | * | uploaded an image: (6KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 15:30 | mstenta[m] | ooh 1.x? really testing me here... :-) |
| 15:30 | symbioquine[m] | :) |
| 15:31 | mstenta[m] | geofield module |
| 15:31 | mstenta[m] | `grep -irn 'specified location data is invalid' profiles/farm/modules/contrib/geofield` |
| 15:32 | mstenta[m] | `function geofield_field_validate()` |
| 15:33 | mstenta[m] | git.drupalcode.org/project/geofield/-/bl |
| 15:34 | symbioquine[m] | I see it now... |
| 15:35 | symbioquine[m] | I was looking in the 7.x-1.x branch before and couldn't find it :( |
| 15:35 | symbioquine[m] | Thanks! |
| 16:21 | symbioquine[m] | I figured it out... |
| 16:21 | symbioquine[m] | The problem was that [this code](git.drupalcode.org/project/geofield/-/bl) doesn't surface the actual geometry problem so if - for instance - you paste a rectangle that isn't closed because it only has 4 points specified rather than having the 5th, a user can't see the error about an unclosed polygon ring. |
| 16:22 | symbioquine[m] | I haven't figured out whether this will be a problem in 2.x yet... |
| 16:22 | mstenta[m] | Ah - I think something similar came up semi-recently... |
| 16:22 | mstenta[m] | Specifically regarding closed polygons |
| 16:23 | mstenta[m] | IIRC it was something to do with whether or not GEOS was installed |
| 16:23 | symbioquine[m] | Yeah, I think OpenLayers is okay with leaving off that last closing point. |
| 16:23 | mstenta[m] | With GEOS it would flag unclosed polygons... but without it it passed validation... maybe? |
| 16:26 | * | uploaded an image: (25KiB) < libera.ems.host/_matrix/media/r0/downloa > |
| 16:26 | symbioquine[m] | That's in 2.x |
| 16:26 | mstenta[m] | w/ or w/o GEOS? |
| 16:26 | mstenta[m] | (if using the Docker image, then it has GEOS) |
| 16:28 | symbioquine[m] | Yeah, I'm using a recent 2.x-dev image |
| 16:30 | paul121[m] | this is something we contributed to geofield for 2.x: www.drupal.org/project/geofield/issues/3 |
| 16:30 | paul121[m] | just fwiw! |
| 16:35 | symbioquine[m] | It looks like the 2.x version of geofield is swallowing the exceptions somewhere... |
| 16:35 | symbioquine[m] | At least with the 1.x version it looked kinda trivial to surface the actual geometry error message. |
| 16:36 | paul121[m] | ohh I see. You want it to say "the polygon is not closed" - not just display the geom? |
| 17:05 | symbioquine[m] | Yeah 😄 |