flippmoke | 6 years ago | on: Serving Dynamic Vector Tiles from PostGIS
flippmoke's comments
flippmoke | 6 years ago | on: Serving Dynamic Vector Tiles from PostGIS
The Vector Tiles specification was designed for map visualization but has expanded into other uses as well, but in general the purpose is to be able to quickly provide a complete subset of data for a specific area that is highly cacheable. Most of this provided speed and cache-ability is specifically gained by preprocessing all the data you will use in your map into tiles.
The general steps for turning raw data into Vector Tiles are:
1. Determine a hierarchy of your data. For example if you are talking about roads at some zoom levels you will want to see only highways or major roads while at other zoom levels you will want all your data.
2. For each tile at each zoom level; Select your data following your hierarchy rules, simplify your data based on your zoom level (for example you might need less points to display your road) and then clip your data to your tile and encode it to your Vector Tile.
The problem is that doing these steps is often very complex and requires thought about the cartography of your final resulting map, but it can also drastically effect performance. If you are dynamically serving tiles from PostGIS it is very hard to reduce large quantities of data quickly in some cases. For example take a very detailed coastline of a large lake that is very precise and you are wanting to serve this dynamically. If you are attempting to serve this data on demand each time you need a tile you have to simplify and clip a potentially massive polygon. While this might work for single requests, if you increase in scale this quickly adds lots of load to a PostGIS server. The only solution is to cache the resulting tiles for a longer period to limit load on your database or to preprocess all your data before serving.
Preprocessing of all the tiles is already something other tiling tools such as tippecanoe are really good at doing and comes with the benefit of helping you determine a hierarchy for your data. Preprocessing might seem excessive when it comes to making potentially millions of tiles, but in general it makes your application faster because it is simply serving an already created tile.
Therefore, if your data does not very change quickly I would almost always suggest using preprocessing over dynamic rendering of tiles. You might spend more effort maintaining something than you expect if you start using PostGIS to create tiles on demand over existing tiling tools.
flippmoke | 7 years ago | on: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars
flippmoke | 8 years ago | on: Prototool – A Swiss Army Knife for Protocol Buffers
flippmoke | 8 years ago | on: Earth on AWS – Open geospatial data
flippmoke | 9 years ago | on: MapSCII – Braille and ASCII map renderer for the console
flippmoke | 9 years ago | on: MapSCII – Braille and ASCII map renderer for the console
flippmoke | 9 years ago | on: Railroad Tycoon
flippmoke | 9 years ago | on: How Space Weather Could Trigger a Future Economic Crisis
Satellites in general have a very hard time discharging large amounts of current, because there simply is no ground and the possibility of a Carrington Event[1] in the modern age is simply frightening. An event of this size today could possibly knock out thousands of satellites at once -- including the entire GPS constellation.
The effects on earth could be very damaging too, what would happen we aren't quite certain. However, you could see arcs from power lines or any long distance wire as it would provide easy paths for electrons. This also could affect any computers much like an EMP blast. We could be looking at a large percentage of all electronics broken. So we might suddenly have large areas, with no power, no electronics, and no communication.
After spending lots of time learning about the science behind these storms, to me this is the stuff of nightmare fuel.
[0]: https://en.wikipedia.org/wiki/Wide_Area_Augmentation_System
flippmoke | 9 years ago | on: Cartography Comparison: Google Maps and Apple Maps
flippmoke | 9 years ago | on: When You Are Depressed, Make Something
flippmoke | 10 years ago | on: Oil Crash is Kicking Off One of the Largest Wealth Transfers in History
flippmoke | 10 years ago | on: OpenStreetMap is the Most Important thing in Geo
Mapbox does a great job of fixing things with out relying on users to do it for OSM! Just drop a pin and type out the problem and Mapbox's data team will likely fix the problem! These changes go right into OSM.
flippmoke | 12 years ago | on: Ask HN: I'm 15, won a grant to develop a suicide prevention app, what next?
flippmoke | 12 years ago | on: Ask HN: I'm 15, won a grant to develop a suicide prevention app, what next?
flippmoke | 12 years ago | on: Ask HN: I'm 15, won a grant to develop a suicide prevention app, what next?
flippmoke | 12 years ago | on: Ask HN: I'm 15, won a grant to develop a suicide prevention app, what next?
The key idea is that our thoughts control how we feel, not the events or surroundings of our lives. A person who is considering suicide often has a very different view of events because of their thought process. The idea of CBT is to change the way you think and by doing so you are able to feel differently about the events in your life.
However, I would never suggest that someone simply start applying CBT on their own with out some guidance. I am very nervous about how you want to make this a social application. Depression can be a very personal and embarrassing disease for a person and even positive encouragement can cause more depression.
Lets say we have a kid named Stan. Stan is a very depressed kid who is considering suicide. He manages to let his friend Bobby know that he has been considering killing himself. Bobby is shocked as Stan is a very bright and successful kid. Bobby tells Stan that he 'can't believe that Stan would want to do such a thing' and that 'he has so much to live for.' Bobby thinks that he is helping Stan, but Stan views this very differently. Stan thinks, 'No one understands me, Bobby is just saying that to make me feel better.' While the temporary relief of telling someone was something that Stan really wanted to do, in the end it only ends up making him feel more depressed.
The reason behind this sort of thinking is because of the Cognitive Distortions. Stan's perception of reality is vastly different because of them. It is for this reason that I am concerned about how you make this a social application. In my opinion the best thing you can do for a person who is considering suicide is to get them to a trained professional.