Rendering gridded time-series data with Leaflet.js Announcing the arrival of Valued Associate...

Like totally amazing interchangeable sister outfit accessory swapping or whatever

`FindRoot [ ]`::jsing: Encountered a singular Jacobian at a point...WHY

Determinant of a matrix with 2 equal rows

Why isn't everyone flabbergasted about Bran's "gift"?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

Married in secret, can marital status in passport be changed at a later date?

Feather, the Redeemed and Dire Fleet Daredevil

Why did Israel vote against lifting the American embargo on Cuba?

Why aren't road bicycle wheels tiny?

What happened to Viserion in Season 7?

Is there an efficient way for synchronising audio events real-time with LEDs using an MCU?

What's parked in Mil Moscow helicopter plant?

Deciphering death certificate writing

Translate text contents of an existing file from lower to upper case and copy to a new file

What is the definining line between a helicopter and a drone a person can ride in?

What's called a person who work as someone who puts products on shelves in stores?

Processing ADC conversion result: DMA vs Processor Registers

When I export an AI 300x60 art board it saves with bigger dimensions

Why is arima in R one time step off?

How to begin with a paragraph in latex

When speaking, how do you change your mind mid-sentence?

Raising a bilingual kid. When should we introduce the majority language?

Israeli soda type drink

Why is water being consumed when my shutoff valve is closed?



Rendering gridded time-series data with Leaflet.js



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Self-hosting Mapbox vector tilesGlobal NetCDF datasets with station time series data?time-series analysisCreate time series graph with multiple rastersDisplaying nonspatial data via spatial data in LeafletHighlighting features that contain data onlyPostGIS: Storing large gridded time seriesCesium.js time series data visualizationSelf hosting vector tilesRaster Time Series, express years in time seriesLoad GeoJSON polygon time series with Leaflet Time Dimension plug-in?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















Background



My colleague and I have developed a web-app for visualizing gridded time-series data (in the arctic) using leaflet.js with webgl-heatmap.



The source data is in netCDF format, which we have been processing to geojson for each parameter attribute and and time-step. This data is then accessed via an api depending on what the user has selected.



Problem



It is difficult to stylize a color gradient for the heatmap to accurately reflect levels of the data, and WebGL presents problems for various browsers (and of various versions).



Inspired by the geojson-vt plugin, our idea now is to render each cell as a geojson polygon, and update the style (i.e. color and opacity) of those cells according to their values for the current data selection—possibly processing this as vector tiles to improve perfomance.



Proposed work-flow




  1. netcdf → PostGIS

  2. grid cell geometries → vector tiles

  3. user data selection & time-step → query PostGIS for values → style grid cells


Question



What workflow and tools would be best suited to achieve this?










share|improve this question































    1















    Background



    My colleague and I have developed a web-app for visualizing gridded time-series data (in the arctic) using leaflet.js with webgl-heatmap.



    The source data is in netCDF format, which we have been processing to geojson for each parameter attribute and and time-step. This data is then accessed via an api depending on what the user has selected.



    Problem



    It is difficult to stylize a color gradient for the heatmap to accurately reflect levels of the data, and WebGL presents problems for various browsers (and of various versions).



    Inspired by the geojson-vt plugin, our idea now is to render each cell as a geojson polygon, and update the style (i.e. color and opacity) of those cells according to their values for the current data selection—possibly processing this as vector tiles to improve perfomance.



    Proposed work-flow




    1. netcdf → PostGIS

    2. grid cell geometries → vector tiles

    3. user data selection & time-step → query PostGIS for values → style grid cells


    Question



    What workflow and tools would be best suited to achieve this?










    share|improve this question



























      1












      1








      1








      Background



      My colleague and I have developed a web-app for visualizing gridded time-series data (in the arctic) using leaflet.js with webgl-heatmap.



      The source data is in netCDF format, which we have been processing to geojson for each parameter attribute and and time-step. This data is then accessed via an api depending on what the user has selected.



      Problem



      It is difficult to stylize a color gradient for the heatmap to accurately reflect levels of the data, and WebGL presents problems for various browsers (and of various versions).



      Inspired by the geojson-vt plugin, our idea now is to render each cell as a geojson polygon, and update the style (i.e. color and opacity) of those cells according to their values for the current data selection—possibly processing this as vector tiles to improve perfomance.



      Proposed work-flow




      1. netcdf → PostGIS

      2. grid cell geometries → vector tiles

      3. user data selection & time-step → query PostGIS for values → style grid cells


      Question



      What workflow and tools would be best suited to achieve this?










      share|improve this question
















      Background



      My colleague and I have developed a web-app for visualizing gridded time-series data (in the arctic) using leaflet.js with webgl-heatmap.



      The source data is in netCDF format, which we have been processing to geojson for each parameter attribute and and time-step. This data is then accessed via an api depending on what the user has selected.



      Problem



      It is difficult to stylize a color gradient for the heatmap to accurately reflect levels of the data, and WebGL presents problems for various browsers (and of various versions).



      Inspired by the geojson-vt plugin, our idea now is to render each cell as a geojson polygon, and update the style (i.e. color and opacity) of those cells according to their values for the current data selection—possibly processing this as vector tiles to improve perfomance.



      Proposed work-flow




      1. netcdf → PostGIS

      2. grid cell geometries → vector tiles

      3. user data selection & time-step → query PostGIS for values → style grid cells


      Question



      What workflow and tools would be best suited to achieve this?







      postgis leaflet vector-tiles time-series






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 23 '16 at 7:37







      ryanjdillon

















      asked Aug 22 '16 at 14:32









      ryanjdillonryanjdillon

      298417




      298417






















          2 Answers
          2






          active

          oldest

          votes


















          2














          We recently went through something similar to this and found the following tools helpful:



          tippecanoe (https://github.com/mapbox/tippecanoe) - We used this to convert our high resolution geojson files to manageable vector tiles. This was used as the base.



          tile-join (same address) - after we had the base tiles, we joined the data to the vector set. This created a final set of tiles that we could render on the client side. In each of the tiles, there was the appropriate resolution of geojson object as well as all of the properties we wanted to map.



          mapboxgl - here we used the data driven styling to set the fill color of each of the polygons. https://www.mapbox.com/help/gl-dds-ref/



          express (Self-hosting Mapbox vector tiles) - this was used to serve up the tiles to the client.






          share|improve this answer


























          • Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

            – ryanjdillon
            Jan 15 '17 at 19:54











          • Sounds good. Feel free to reach out if you have more questions.

            – Dan Skorski
            Jan 18 '17 at 0:06



















          0














          What is the easiest way to install the netcdf plugin for geoserver?, I followed the instructions of https://docs.geoserver.org/stable/en/user/extensions/netcdf-out/nc4.html, but it does not work or I do not know how to update gesorver, I do not get the message either.






          share|improve this answer








          New contributor




          urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "79"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f207886%2frendering-gridded-time-series-data-with-leaflet-js%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            We recently went through something similar to this and found the following tools helpful:



            tippecanoe (https://github.com/mapbox/tippecanoe) - We used this to convert our high resolution geojson files to manageable vector tiles. This was used as the base.



            tile-join (same address) - after we had the base tiles, we joined the data to the vector set. This created a final set of tiles that we could render on the client side. In each of the tiles, there was the appropriate resolution of geojson object as well as all of the properties we wanted to map.



            mapboxgl - here we used the data driven styling to set the fill color of each of the polygons. https://www.mapbox.com/help/gl-dds-ref/



            express (Self-hosting Mapbox vector tiles) - this was used to serve up the tiles to the client.






            share|improve this answer


























            • Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

              – ryanjdillon
              Jan 15 '17 at 19:54











            • Sounds good. Feel free to reach out if you have more questions.

              – Dan Skorski
              Jan 18 '17 at 0:06
















            2














            We recently went through something similar to this and found the following tools helpful:



            tippecanoe (https://github.com/mapbox/tippecanoe) - We used this to convert our high resolution geojson files to manageable vector tiles. This was used as the base.



            tile-join (same address) - after we had the base tiles, we joined the data to the vector set. This created a final set of tiles that we could render on the client side. In each of the tiles, there was the appropriate resolution of geojson object as well as all of the properties we wanted to map.



            mapboxgl - here we used the data driven styling to set the fill color of each of the polygons. https://www.mapbox.com/help/gl-dds-ref/



            express (Self-hosting Mapbox vector tiles) - this was used to serve up the tiles to the client.






            share|improve this answer


























            • Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

              – ryanjdillon
              Jan 15 '17 at 19:54











            • Sounds good. Feel free to reach out if you have more questions.

              – Dan Skorski
              Jan 18 '17 at 0:06














            2












            2








            2







            We recently went through something similar to this and found the following tools helpful:



            tippecanoe (https://github.com/mapbox/tippecanoe) - We used this to convert our high resolution geojson files to manageable vector tiles. This was used as the base.



            tile-join (same address) - after we had the base tiles, we joined the data to the vector set. This created a final set of tiles that we could render on the client side. In each of the tiles, there was the appropriate resolution of geojson object as well as all of the properties we wanted to map.



            mapboxgl - here we used the data driven styling to set the fill color of each of the polygons. https://www.mapbox.com/help/gl-dds-ref/



            express (Self-hosting Mapbox vector tiles) - this was used to serve up the tiles to the client.






            share|improve this answer















            We recently went through something similar to this and found the following tools helpful:



            tippecanoe (https://github.com/mapbox/tippecanoe) - We used this to convert our high resolution geojson files to manageable vector tiles. This was used as the base.



            tile-join (same address) - after we had the base tiles, we joined the data to the vector set. This created a final set of tiles that we could render on the client side. In each of the tiles, there was the appropriate resolution of geojson object as well as all of the properties we wanted to map.



            mapboxgl - here we used the data driven styling to set the fill color of each of the polygons. https://www.mapbox.com/help/gl-dds-ref/



            express (Self-hosting Mapbox vector tiles) - this was used to serve up the tiles to the client.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:34









            Community

            1




            1










            answered Jan 14 '17 at 17:48









            Dan SkorskiDan Skorski

            362




            362













            • Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

              – ryanjdillon
              Jan 15 '17 at 19:54











            • Sounds good. Feel free to reach out if you have more questions.

              – Dan Skorski
              Jan 18 '17 at 0:06



















            • Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

              – ryanjdillon
              Jan 15 '17 at 19:54











            • Sounds good. Feel free to reach out if you have more questions.

              – Dan Skorski
              Jan 18 '17 at 0:06

















            Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

            – ryanjdillon
            Jan 15 '17 at 19:54





            Had not heard of of tippecanoe. Great tips, thanks! I would like to leave this open for a bit to encourage any additional insights, but I'll mark this accepted next month when I resume work on this project. Thanks!

            – ryanjdillon
            Jan 15 '17 at 19:54













            Sounds good. Feel free to reach out if you have more questions.

            – Dan Skorski
            Jan 18 '17 at 0:06





            Sounds good. Feel free to reach out if you have more questions.

            – Dan Skorski
            Jan 18 '17 at 0:06













            0














            What is the easiest way to install the netcdf plugin for geoserver?, I followed the instructions of https://docs.geoserver.org/stable/en/user/extensions/netcdf-out/nc4.html, but it does not work or I do not know how to update gesorver, I do not get the message either.






            share|improve this answer








            New contributor




            urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              What is the easiest way to install the netcdf plugin for geoserver?, I followed the instructions of https://docs.geoserver.org/stable/en/user/extensions/netcdf-out/nc4.html, but it does not work or I do not know how to update gesorver, I do not get the message either.






              share|improve this answer








              New contributor




              urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                What is the easiest way to install the netcdf plugin for geoserver?, I followed the instructions of https://docs.geoserver.org/stable/en/user/extensions/netcdf-out/nc4.html, but it does not work or I do not know how to update gesorver, I do not get the message either.






                share|improve this answer








                New contributor




                urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                What is the easiest way to install the netcdf plugin for geoserver?, I followed the instructions of https://docs.geoserver.org/stable/en/user/extensions/netcdf-out/nc4.html, but it does not work or I do not know how to update gesorver, I do not get the message either.







                share|improve this answer








                New contributor




                urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 17 mins ago









                urielzanurielzan

                1




                1




                New contributor




                urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                urielzan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f207886%2frendering-gridded-time-series-data-with-leaflet-js%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    (145452) 2005 RN43 Классификация | Примечания | Ссылки |...

                    Щит и меч (фильм) Содержание Названия серий | Сюжет |...

                    Энтрерриос (город) Содержание История | Географическое...