< 052021-10-06⋎07 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
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:29symbioquine[m]Where does this validation occur in farmOS 1.x;
15:29*uploaded an image: (6KiB) < libera.ems.host/_matrix/media/r0/downloa >
15:30mstenta[m]ooh 1.x? really testing me here... :-)
15:30symbioquine[m]:)
15:31mstenta[m]geofield module
15:31mstenta[m]`grep -irn 'specified location data is invalid' profiles/farm/modules/contrib/geofield`
15:32mstenta[m]`function geofield_field_validate()`
15:33mstenta[m]git.drupalcode.org/project/geofield/-/bl
15:34symbioquine[m]I see it now...
15:35symbioquine[m]I was looking in the 7.x-1.x branch before and couldn't find it :(
15:35symbioquine[m]Thanks!
16:21symbioquine[m]I figured it out...
16:21symbioquine[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:22symbioquine[m]I haven't figured out whether this will be a problem in 2.x yet...
16:22mstenta[m]Ah - I think something similar came up semi-recently...
16:22mstenta[m]Specifically regarding closed polygons
16:23mstenta[m]IIRC it was something to do with whether or not GEOS was installed
16:23symbioquine[m]Yeah, I think OpenLayers is okay with leaving off that last closing point.
16:23mstenta[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:26symbioquine[m]That's in 2.x
16:26mstenta[m]w/ or w/o GEOS?
16:26mstenta[m](if using the Docker image, then it has GEOS)
16:28symbioquine[m]Yeah, I'm using a recent 2.x-dev image
16:30paul121[m]this is something we contributed to geofield for 2.x: www.drupal.org/project/geofield/issues/3
16:30paul121[m]just fwiw!
16:35symbioquine[m]It looks like the 2.x version of geofield is swallowing the exceptions somewhere...
16:35symbioquine[m]At least with the 1.x version it looked kinda trivial to surface the actual geometry error message.
16:36paul121[m]ohh I see. You want it to say "the polygon is not closed" - not just display the geom?
17:05symbioquine[m]Yeah 😄

< 052021-10-06⋏07 >