*** DanielBaird has joined #cmvt | 00:36 | |
*** DanielBaird has joined #cmvt | 01:13 | |
prologic | Hey Dan | 01:13 |
---|---|---|
DanielBaird | hi | 01:51 |
DanielBaird | i finally have a leaflet map in my crappy layout, but i have to learn a bit more about angular "directives" before i can do anything about it | 01:52 |
prologic | ok no worries | 01:59 |
prologic | I'm still working on clipping and masking of raster datasets | 02:00 |
prologic | via polygon(s) | 02:00 |
prologic | I have a working implementation | 02:00 |
prologic | Just cleaning up the code and creating a nice API | 02:00 |
prologic | Performance-wise: | 02:02 |
prologic | 0.6s for 5km | 02:03 |
prologic | 1.2s for 1km | 02:03 |
prologic | 11.5s for 250m | 02:03 |
DanielBaird | so once i need to add layers to leaflet, do i jsut tell leaflet some vector layer url? | 02:30 |
DanielBaird | or will i need to track the map zooming and panning myself, and refresh the vectors manually | 02:30 |
DanielBaird | hmm actually it looks like vector "layers" in leaflewt aren't proper layers anyway | 02:32 |
DanielBaird | leaflet has a geojson layer type but it takes a data object instead of a url. so if we don't want to load the entire maps's worth of features in one go, i'll have to manually construct the url with bounding box info etc each time the map moves | 02:35 |
DanielBaird | raster data is easier from my end, i just tell Leaflet the WMS url and it manages fetching the tiles as necessary | 02:37 |
prologic | yeah | 03:18 |
prologic | I can certainly provide you with a restful service to get at the vector layers | 03:18 |
prologic | we can make the API similar to WMS | 03:18 |
prologic | you pass me a bounding box | 03:18 |
prologic | the current map's extent | 03:18 |
prologic | and I give you geojson that represents all visible vector layers that intersect that bounding box | 03:19 |
prologic | I can do this quite quickly (I've found) | 03:19 |
prologic | even without rtree indexes | 03:19 |
prologic | which I may add later on | 03:19 |
DanielBaird | hmm i guess the minimum arrangement is that i just chuck away what i have and replace it with the vector features you send for the new bounding box.. ideally though i'd be able to keep ones that should still be onscreen, and just add the new stuff. | 03:41 |
DanielBaird | i suppose we can give features a unique persistent id | 03:41 |
DanielBaird | that'd be enough for me to not re-add the ones i already have | 03:42 |
DanielBaird | what vector features do we have, anyway? for edgar we had crazy amounts of stuff like hundreds of thousands of occurrences for speceis | 03:45 |
DanielBaird | i guess we have the region polys | 03:45 |
prologic | yes | 03:59 |
prologic | we have IBRA region polys | 03:59 |
prologic | and we will have NRM(s) and LGA(s) as well | 03:59 |
prologic | now I _have_ to simplify these | 03:59 |
prologic | because some numty has gone around with a greak'n GPS | 03:59 |
prologic | and walked some of these regions | 03:59 |
prologic | some are in the 400,000 points | 03:59 |
prologic | and over 8MB in data to serialized to the client | 03:59 |
DanielBaird | :) awesome | 04:00 |
DanielBaird | if we were clever, we'd use simple versions until they zoomed in really close.. then in guess show the border segment they were looking at and fake the rest to be straight rectangular borders just off screen | 04:01 |
prologic | yeah I know | 04:01 |
prologic | some people astound me :) | 04:01 |
prologic | why you need an IBRA region to be that accurate | 04:01 |
prologic | god only know | 04:01 |
prologic | +s | 04:01 |
prologic | yes | 04:01 |
prologic | ideally (in the long run) | 04:01 |
prologic | you would pass me the extent you want | 04:01 |
prologic | and I've dynamically work out how much to simplify the region by | 04:02 |
DanielBaird | yeah noone who uses this tool will care about finer grain than 250m squares in any case | 04:02 |
prologic | precisely | 04:02 |
prologic | some of these regions contain more points | 04:02 |
prologic | than what you'd get at 250m | 04:02 |
prologic | anyway that's worst case 400,000 points | 04:03 |
prologic | I think LGA regions have similar issues | 04:03 |
prologic | from the datasets I'm aware of in my previous job with old qovt | 04:03 |
prologic | largest region I think was over 10,000 points | 04:03 |
*** DanielBaird has joined #cmvt | 08:43 | |
*** DanielBaird has quit IRC | 08:52 | |
*** DanielBaird has joined #cmvt | 09:18 | |
*** DanielBaird has quit IRC | 09:22 | |
*** DanielBaird has joined #cmvt | 10:19 | |
*** DanielBaird has quit IRC | 10:23 | |
*** DanielBaird has joined #cmvt | 11:19 | |
*** DanielBaird has quit IRC | 11:23 | |
*** DanielBaird has joined #cmvt | 13:20 | |
*** DanielBaird has quit IRC | 13:25 | |
*** DanielBaird has joined #cmvt | 13:58 | |
*** DanielBaird has quit IRC | 14:24 | |
*** DanielBaird has joined #cmvt | 14:55 | |
*** DanielBaird has quit IRC | 15:03 | |
*** DanielBaird has joined #cmvt | 15:30 | |
*** DanielBaird has quit IRC | 15:34 | |
*** DanielBaird has joined #cmvt | 16:31 | |
*** DanielBaird has quit IRC | 16:35 | |
*** DanielBaird has joined #cmvt | 17:31 | |
*** DanielBaird has quit IRC | 17:35 | |
*** DanielBaird has joined #cmvt | 18:32 | |
*** DanielBaird has quit IRC | 18:36 | |
*** DanielBaird has joined #cmvt | 19:32 | |
*** DanielBaird has quit IRC | 19:36 | |
*** DanielBaird has joined #cmvt | 20:33 | |
*** DanielBaird has quit IRC | 20:37 | |
*** DanielBaird has joined #cmvt | 21:33 | |
*** DanielBaird has quit IRC | 21:38 | |
*** DanielBaird has joined #cmvt | 22:34 | |
*** DanielBaird has quit IRC | 22:38 | |
*** DanielBaird has joined #cmvt | 22:56 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!