Re: [mapserver-users] Show traffic on roads.
How are the data stored? With PostGIS one could aggregate features (ST_Collect?) based on an attribute and render that. You’re still drawing each segment but likely more efficiently. —Steve On Sat, Feb 22, 2020 at 4:25 PM Atlanta Geek wrote: > Is there a good way to show heavy traffic using mapserver without drawing > each individual road segment as a different line. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Show traffic on roads.
Depends on your requirements. If you just want to visualize typical traffic conditions, MapServer can do the job, it's pretty straightforward. Just join your road geometries with the congestion data (actual speed / free-flow speed), apply some filters (SQL conditions) on road class and maybe congestion (omitting non-congested roads), and render that in the appropriate color. If, on the other hand, you have a feed with speeds that vary frequently, it gets tricky because you can't really use a regular tile cache. I ended up abandoning MapServer for this - the problem was not so much the rendering, but PostGIS was getting overwhelmed. If you get your speed data from a company like HERE or INRIX, you should be able to use their tilers. If not, you have a nice challenge. On Sun, Feb 23, 2020 at 11:20 AM Steve Lime wrote: > How are the data stored? With PostGIS one could aggregate features > (ST_Collect?) based on an attribute and render that. You’re still drawing > each segment but likely more efficiently. > > —Steve > > On Sat, Feb 22, 2020 at 4:25 PM Atlanta Geek > wrote: > >> Is there a good way to show heavy traffic using mapserver without drawing >> each individual road segment as a different line. >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Show traffic on roads.
On 2020-2-26 8:48 am, Erik H wrote: Depends on your requirements. If you just want to visualize typical traffic conditions, MapServer can do the job, it's pretty straightforward. Just join your road geometries with the congestion data (actual speed / free-flow speed), apply some filters (SQL conditions) on road class and maybe congestion (omitting non-congested roads), and render that in the appropriate color. If, on the other hand, you have a feed with speeds that vary frequently, it gets tricky because you can't really use a regular tile cache. I ended up abandoning MapServer for this - the problem was not so much the rendering, but PostGIS was getting overwhelmed. If you get your speed data from a company like HERE or INRIX, you should be able to use their tilers. If not, you have a nice challenge. How is the data created and stored? How large is the area? We do a bunch of things as a traffic services company, and have found that different things work better for different scenarios. MapServer and GeoServer have both worked for us in the past. The challenge is always on how pretty you want it to be, how much compute you're willing to spend, how often the data updates, etc. It's correct that the regular tile cache doesn't expire data in the best way to support this :) Best Regards, Mohit. 2020-2-27 | 1:44 pm. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Show traffic on roads.
The display traffic was an example and I was thinking it was just a GUI thing. What I am actually modelling is cable laid in the ground. And what I want to show is a heatmap representing the likelihood of there being an issue at this point on the fiber. The data will be stored as an array of numbers which each cell corresponds to a distance along a route. This array could be thousands of values.The heatmap will be in the shape of the lines. So I did not want to have as many line segments as I do cells in the array just to represent one cable. On Thu, Feb 27, 2020 at 12:53 AM Mohit Sindhwani wrote: > On 2020-2-26 8:48 am, Erik H wrote: > > Depends on your requirements. If you just want to visualize typical > > traffic conditions, MapServer can do the job, it's pretty > > straightforward. Just join your road geometries with the congestion > > data (actual speed / free-flow speed), apply some filters (SQL > > conditions) on road class and maybe congestion (omitting non-congested > > roads), and render that in the appropriate color. > > > > If, on the other hand, you have a feed with speeds that vary > > frequently, it gets tricky because you can't really use a regular tile > > cache. I ended up abandoning MapServer for this - the problem was not > > so much the rendering, but PostGIS was getting overwhelmed. If you get > > your speed data from a company like HERE or INRIX, you should be able > > to use their tilers. If not, you have a nice challenge. > > How is the data created and stored? How large is the area? We do a bunch > of things as a traffic services company, and have found that different > things work better for different scenarios. MapServer and GeoServer have > both worked for us in the past. The challenge is always on how pretty > you want it to be, how much compute you're willing to spend, how often > the data updates, etc. > > It's correct that the regular tile cache doesn't expire data in the best > way to support this :) > > Best Regards, > Mohit. > 2020-2-27 | 1:44 pm. > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -- http://www.atlantageek.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Show traffic on roads.
On 2020-2-27 9:41 pm, Atlanta Geek wrote: The display traffic was an example and I was thinking it was just a GUI thing. What I am actually modelling is cable laid in the ground. And what I want to show is a heatmap representing the likelihood of there being an issue at this point on the fiber. The data will be stored as an array of numbers which each cell corresponds to a distance along a route. This array could be thousands of values.The heatmap will be in the shape of the lines. So I did not want to have as many line segments as I do cells in the array just to represent one cable. What's the platform that will show this? A GeoJSON/ KML to have icons might be really simple and a vector layer that works very well. Depends what thousands are... at 100 bytes per object, 1K points is only 100K, 10K points is a megabyte... Best Regards, Mohit. 2020-2-27 | 10:01 pm. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users