| 03:04 | * | uploaded an image: 2020_12_13_crossing_antimeridian_test.gif (2883KiB) < matrix.org/_matrix/media/r0/download/mat > |
| 03:06 | symbioquine[m] | ^ Maybe not the most critical bug, but definitely entertaining... :) |
| 03:09 | mstenta[m] | symbioquine: lol this is actually expected behavior ;-) |
| 03:09 | symbioquine[m] | oh? |
| 03:10 | mstenta[m] | ... |
| 03:11 | mstenta[m] | github.com/farmOS/farmOS-map/blob/master |
| 03:11 | mstenta[m] | github.com/openlayers/openlayers/issues/ |
| 03:11 | mstenta[m] | i use "expected" loosely here :-P |
| 03:11 | symbioquine[m] | hmmm |
| 03:12 | mstenta[m] | iirc, i basically decided to "quick fix" another issue... but my fix creates this new issue... but i justified that that this would not be an issue for us because there are probably few farms who cross the meridian |
| 03:13 | mstenta[m] | :-P |
| 03:13 | symbioquine[m] | Yeah, that makes sense |
| 03:13 | symbioquine[m] | I was trying to test the boundary conditions of bounding box filtering in WFS, but it's a bit tricky when you can't actually create features that satisfy some of the boundary conditions :) |
| 03:14 | mstenta[m] | The original issue had to do with bug reports I was getting from folks who scrolled to the left/right on a map before starting to draw... and ended up with invalid coordinates (outside -180 +180) |
| 03:14 | mstenta[m] | happened with some farms in new zealand in particular... which was interesting :-) |
| 03:14 | mstenta[m] | (iirc) |
| 03:15 | mstenta[m] | github.com/farmOS/farmOS-map/issues/49 |
| 03:15 | symbioquine[m] | Interestingly QGIS sends non-compliant `EPSG:4326` bounding box coordinates when the viewing window intersects the antimeridian. |
| 03:16 | mstenta[m] | ah really - does that pose a problem? |
| 03:17 | symbioquine[m] | Not really, I was planning to do a sort of negative aware modulus to handle those coordinates... |
| 03:18 | symbioquine[m] | The main tricky thing is that it doesn't seem possible to do an `OR` SQL query via the `EntityFieldQuery` interface so I have to take the union of 2 - 4 queries. |
| 03:18 | mstenta[m] | ah |
| 03:22 | symbioquine[m] | This is interesting: www.linz.govt.nz/data/geospatial-data-ty |
| 03:24 | mstenta[m] | oh wow yea interesting |
| 03:25 | mstenta[m] | > New Zealand is almost unique in the world where we have to account for the anti-meridian line, which many Geographic Information Systems (GIS) struggle with, so some guidance is also included for handling this. |
| 03:25 | mstenta[m] | first time i've heard the name "anti-meridian" :-) |
| 03:26 | symbioquine[m] | The way I read the [Wikipedia page on WKT/WKB](en.wikipedia.org/wiki/Well-known_text_re) I was assuming the order of the coordinates could be used to communicate which is the "top left"-most point, but based on that NZ page perhaps that's not correct. |
| 03:27 | mstenta[m] | hoo boy i learned a lot when i was digging into how to calculate acreage base on GPS point geometry |
| 03:28 | mstenta[m] | who would have thought irregular spheroid geometry would be so complicated! :-P |
| 03:28 | symbioquine[m] | Yeah, that "area on a spheroid" math turns my head inside out :) |
| 03:28 | mstenta[m] | and that's not even counting elevation |
| 03:28 | mstenta[m] | if you're on a steep slope, the area can be skewed |
| 03:29 | symbioquine[m] | yeah |
| 03:30 | symbioquine[m] | You don't even have to be on a steep slope. A high irregular plateau can do the same thing since the effective radius of the earth is larger there. |
| 03:30 | symbioquine[m] | The steep slope case is of course more common. |
| 03:31 | mstenta[m] | oy |
| 03:35 | symbioquine[m] | core.ac.uk/download/pdf/11922683.pdf |
| 03:48 | symbioquine[m] | Tiny bit of a stretch from scientific models to data models, but the idea comes through pretty much the same - even in a pretty specific domain such as coordinate systems, no single model will (or even should) meet all use-cases. |
| 03:49 | symbioquine[m] | Even if there were some over-arching "model to rule them all" the cost/complexity probably couldn't be justified. |
| 04:01 | paul121[m] | On the topic of approximate calculations, I thought this was interesting: www.quantamagazine.org/mathematician-sol |
| 04:01 | paul121[m] | > Mathematicians have long pondered the reach of a grazing goat tied to a fence, only finding approximate answers until now. |
| 04:02 | paul121[m] | In case we ever need to build those features into the map :D |
| 08:16 | * | bonushenricus[m] has quit (Ping timeout: 260 seconds) |
| 08:16 | * | munjoma[m] has quit (Ping timeout: 260 seconds) |
| 08:16 | * | bonushenricus[m] has joined |
| 08:16 | * | munjoma[m] has joined |
| 20:04 | * | svenn has quit (Ping timeout: 272 seconds) |
| 20:05 | * | svenn has joined |