Maps guest demo with CamoAG

Visualization Dashboards · Friday Demos · November 8, 2024 · 17:22

Chris gives us an overview of the different mapping and tiling systems in use at Camo, and shows off a few of the new Omni region mapping visualizations.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. like people may be familiar with this concept I apologize if this is regurgitating um some stuff that you already know but H3 cells H3 World tile tiles that was developed by Uber by Uber uh it is a way to subdivide the world at different Zoom resolutions uh basically into hexagonal cells so obviously I have stolen this image directly from Uber and embedded in a markdown tile in Omni what you're seeing on the right over there is XYZ World tiles so all the like traditional Maps like you could go crack open your network panel load a Google map load a mapbox map any map and just like monitor the network requests most of those are going to be making XYZ World tile requests so the world

  2. at Zoom zero is one cell the world at Zoom one is four so that's what this image is conveying I have generated just ad hoc SQL as far as you can see at these resolutions uh H3 goes 0 to 15 XYZ goes 0 to 20 22 I think actually I confess I asked chat TBT to just generate me a CSV of the the tiles but the they're Loosely the right approximation for hexagons and tile counts so take that with a grain grain of salt um but I think you know a couple things to point out too with tile tiling and I I talk about this later is you almost never have to go past Zoom 14 for some of the like vector tile stuff to

  3. your eye you typically oh I'm getting getting an echo um fure ey you're really not going to notice much difference there so uh this is just saying the same thing that was the table format these next two tiles are just giving you an a sense of just how many H3 cells how many XYZ tiles there are at these different Zoom levels um you know obviously like you get into 0 to 14 they almost barely register on this it's like for the the typical use cases especially for what we might be visualizing in Omni you're not going to go much past that um so the whole reason that I reached out to to Ariel is I had watched the demo about Rob shout out to you

  4. RB um on some questions that had come up around like the file size differences between some of these different format so uh you know this is a comparison of the US counties in geojson uh versus Tapo Json and then in uh Vector tiles as a Proto buff so couple things to point out uh with geojson the one that I'm doing is actually rounding all the lat long coordinates to six decimal places so you could see in this Omni dashboard right that's equivalent to roughly 10 cm of precision you you literally are not going to tell the difference the problem though is like and you might see this with some of your customers when they just use something that spits off geojson it's going to go

  5. to nine it's going to go to 12 and that's going to inflate the file size of what they're trying to load in like a bi report potentially and you know obviously some are going out even further and you can see it's going to reduce the size a lot so this one is actually you know comparing the United States in geojson compared to the others is is still 6.6 Meg uh Tapo Json so what is Tapo Json um I don't know how many of you are familiar with that uh but basically Tapo Json is when there are instances like I try to put a little anecdotal piece here uh where there's redundance so in Tapo Json it doesn't represent the same border twice so if you

  6. have a state boundary a county boundary and it's in that file um you know more than once it just represents the boundary one time which is one of the main reasons that it can be up to 80% smaller than geojson I am fairly certain that this is like what looker you know heavily uses with Tapo Json um it's also one of the least found out there sources you could easily convert to it back and forth but if you're just like looking at easily plug-and playing different stuff like geojson certainly seems like in my experience like more a more popular format uh and then you get into Vector tiles so this is basically like the comparison of the United States so sort of the equivalent of

  7. these other ones as just kind of looking at what gets loaded in at Zoom 3 I will jump to our platform which hopefully you can see this is Zoom 3 so Zoom three is basically showing the continental United States so uh that's about one Meg uh but what I'll show you too if you jump into the mapbox tiling service is what you're actually seeing at that Zoom 3 is not just the county boundaries so this is one of the benefits of using Vector tiles is you can have multiple Source layers of data inside the same Vector tile delivery at the same Zoom so you could turn off all these which I will do you will see that we have the state boundaries we have okay

  8. cool we have the state boundaries you have the counties so turn off the counties so there's counties in there there is the center points of all the counties so if you want to position the label of the county name at the center point of the county boundary we've got uh we work with Farm Credit institutions so there's the Farm Credit institution boundaries the state labels and then also the states so in that file delivery right like you're getting all this data in one request so that one mag um roughly or I guess this is 387 kilobytes is not just counties it's counties it's States it's Center points it's Farm Credit institution boundaries that are customed to our business um so just to kind of couch

  9. that they're just they're just much smaller right they're delivered as Proto Buffs Proto buff Proto Buffs are I'm sure most of you or some of you are familiar with that Concepts uh but Google developed it for serializing structured data um and then the you know the other thing with Vector tiles too is at different Zoom levels they actually simplify the polygons to get to remove points um which they do less of at further end Zoom levels so for instance like if I'm here right like you're not going to actually be able to tell the difference of like that County boundary is exactly where it is along a river or something like that but as you zoom in they're actually could be doing less simplification there

  10. are more coordinates so it's more precise when you get further in the benefit of that as well is like the actual file size when you're further zoomed out is much much much smaller um so that's why you get this kind of smooth experience uh as you're kind of going in and out with these Vector tiles um yeah and I mentioned like multiple Source layers right mentioned that when I jumped to studio uh and then the last concept with Vector tiles is this concept of over zooming so I mentioned that you never have to go past Zoom 14 uh well when you do go in further further further um I'm way past Zoom 14 at this point but it still shows the boundaries so you know

  11. Mbox Vector tile it's a vector graphic similar to working with like an SVG where it scales so the boundary itself like is going to reuse at the zoom levels above 14 the same data that was uh you know cap so it's not making additional Network requests which is why when you're kind of zooming in you're panning at these far Zoom levels it's going to be a smooth smooth experience on the map okay I took longer than I thought for that first first part but so interesting yeah does anybody have any questions I feel like just getting getting the background on a lot of how you think about like these different concepts is something that we certainly probably don't have a deep understanding of collectively this

  12. is helpful the right here that the vector file is sort of the best one when you can get it like that feels like the the conclusion based on the the talk track yeah I mean I think there's definitely some instances where like GI Json for instance would be easier to work with like if you had something that was a much smaller um you know categorically the data was smaller or maybe like vector tiles is sort of heavy-handed if you have got a data set that's just small like you probably don't need to reach for that and reach for the complexity of hosting it and tiling it um so you know it's it's not like a one-size fit do all thing uh I do have a

  13. gallery so I've uh I've also put together a few Omni uh dashboards showing some ways that we're going to use it are using it um so I I tried to answer the question just for the purposes of demo uh can you show me the density of owners that own at least 10,000 acres of which at least 500 Acres of that primary use of the parcel is corn or soybean uh production so this first map uh you know I just taking the county tiles that uh are hosted and showing kind of where those owners live so basically like the address of the primary owner of that land uh you can kind of get a sense of like where are you know large owners of land collectively

  14. in the United States that you know some segment of their portfolio is agricultural use so you get a sense of it uh you know by county and then with h3s you know you're getting a visual here of again this is our custom uh H3 cell Vector cell that we're kind of tinkering with now to do some different heat map stuff uh h3s I don't know if you've got you guys have seen this or have familiarity with it I pulled up a case study for instance from Snowflake uh this by the way is the only geospatial case study that you can find on snowflakes customer list so we would love to do something uh you know you and snowflake showcasing this but it seems like it's

  15. a popular way to show this kind of like heat map data um so this is at resolution two you could see that the show us do you mind showing us really quick Chris if you go to the workbook just how this how you've got this config on our uh map because you said this was a custom so this is a custom file that you guys have yeah sure is uh so uh toggle this off uh but basically so we have taken the data sets that we want to geospatially represent and we' have effectively pre-computed the H3 cell ID so when you basically are are wanting to get the the H3 boundary um you could feed it a polygon and you can get a list of

  16. H3 cells back you could feed it a lat long until tell the resolution that you want so basically we have taken our data set that's geospatial in nature and we've precomputed H3 cell IDs at different resolutions um so our Vector tile that's here with this nice interface that Rob has built uh you can go back and forth between the different H3 cell resolutions so we've done two through five which I'm going to show you in the gallery um and then the cells themselves um there's a string based variant and then a a value based variant we chose to basically put both of them in the vector tile snowflake has out of the box functions that will do this for you Uber has a really nice

  17. python SDK where you can generate these um but basically all I'm doing is like dragging in the dimension at the different resolutions that match what I'm selecting in Vector tile very cool cool thank you yep uh so yeah the really the the last kind of bit of this is just showing you visually the differences in the resolution Solutions with this data so again this is two of the same data this is three with the same data uh and then go right along to four so obviously you're increasingly getting smaller and smaller and then you're getting down to five um and then I think this is like a good one to show for the use case of like it's kind of hard to see it where

  18. you would almost like not want to show the boundaries of the data where it doesn't match because obviously it just looks kind of data overlaid until you zoom in and then it kind of starts to make more sense versus like if you look at like a a wallt this Walt case study see how there's like nothing in the background except the data that matches so like that would be like one nitpicky piece of product feedback that might make it kind of present well at a further out Zoom but it just gives you a sense of this um I mean we have tested with other data the question that I'm answering with this data set this is pretty sparse uh um but we have tested this

  19. resolution and it can seamlessly overlay you know 60 plus thousand different cells on the map and it's very smooth so you did get you do get some of that benefit you know you could show something that's pretty much across the country uh I think that's pretty much all I had to show except um putting in a plug for that access token thing since I have an audience uh when when you when you are building those like here's ours this is public so this is this isn't like secret right um you know if if I'm an analyst building one of these I have to remember where this access token lives every single time to paste it into the vector URL so that's the only thing that

  20. that would be nice um to have a simpler variant and that was goes into the dock that I put together but I mean other than that this works really well um and it's pretty easy to use so some other ideas too that we're thinking about using for this you know beyond H3 Beyond County there's all kinds of cool stuff that you can do with like for instance uh we've got some FEMA Vector tying so we could show people's portfolios that are in a FEMA uh disaster zone or a um you know flood Hazard Zone and show those on the map using this tool there there's a lot of cool applications that we haven't yet unsurfaced um and obviously really just kind of scratching the surface

  21. this is awesome yeah thank you for putting this together Chris this is this is so cool to see uh anybody else have any questions or uh yeah yeah sorry took 18 minutes I didn't I didn't expect to take 18 minutes but you're you're good no no don't worry that was great it's not gonna translate well real examples the short attention span on the internet they won't transfer well to your YouTube channel but editorial magic did you build out so those vectors so your custom like regions and things like do you build those out um do you use a service like how do would like if a customer needs something like that like and we could help Point them to like resources for building their own

  22. or um yeah I mean we have I have done a lot and we have done a lot of um file manipulation so I mean there's some of that that's at play I mean honestly the Mbox tiling service does make it really really easy uh they do have a boundaries product um that as Rob can attest it seems like it's very difficult to get access to it um but I mean if I were you all too you might consider like expanding your list of stock Vector tiles that you would support since you are using mapbox like I can help you with that um you know the H3 cell stuff is pretty easy the county boundary stuff is pretty easy but I can you know at least

  23. help you sort out some of that we've already done some of the ground workor with which we're happy to share um yeah the other thing to mention too is like you put this in words like the H3 cell stuff that I showed you like I manipulated the global H3 cell set to clip it at the continental United States boundary for instance so there's stuff like that that you can do to prune how much money you need to spend pre-processing or hosting the tiles if you know for instance your data is going to be in a specific region like for us obviously we're cutting it off at the US boundary so there's option thanks thanks for having me uh yeah I appreciate it yeah thanks so

  24. much Chris much foring do you uh I guess final thing we did record it do are you uh okay if we do post this in our demos is this yeah have had it all right first TS demo new section yeah is if you're okay with us using it too if we want it to I can't promise my anybody in my company will want to this is that's awesome cool