

{"id":1729,"date":"2016-05-29T00:00:30","date_gmt":"2016-05-28T22:00:30","guid":{"rendered":"http:\/\/fabsk.eu\/blog\/?p=1729"},"modified":"2023-08-06T10:29:35","modified_gmt":"2023-08-06T08:29:35","slug":"openstreetmap-generate-heatmaps-using-osmosis","status":"publish","type":"post","link":"https:\/\/fabsk.eu\/blog\/2016\/05\/29\/openstreetmap-generate-heatmaps-using-osmosis\/","title":{"rendered":"Openstreetmap: Generate heatmaps using Osmosis"},"content":{"rendered":"\n<p>I thought it would be nice to create heatmaps from the Openstreetmap data (i.e. for displaying the areas lacking \u00ab\u00a0addr:housenumber\u00a0\u00bb). I created, <strong>OsmosisHeatmap<\/strong> (<a href=\"https:\/\/github.com\/Fabiensk\/OsmosisHeatmap\/releases\/download\/v1.1\/OsmosisHeatmap-1.1.jar\">jar file<\/a>, <a href=\"https:\/\/github.com\/Fabiensk\/OsmosisHeatmap\">source<\/a>), a plug-in for <a href=\"http:\/\/wiki.openstreetmap.org\/wiki\/Osmosis\">Osmosis<\/a> (a command line tool for processing Openstreetmap data) that generates a JavaScript file with the coordinates, JS that can be used by the sample HTML page based on <a href=\"http:\/\/leafletjs.com\/\">Leaflet<\/a> and <a href=\"https:\/\/github.com\/Leaflet\/Leaflet.heat\">Leallet.Heat<\/a>.<\/p>\n\n\n\n<p>And it gives something like that:<\/p>\n\n\n\n<figure class=\"wp-block-gallery aligncenter has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/fabsk.eu\/blog\/wp-content\/uploads\/2016\/05\/sample.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"895\" height=\"613\" data-id=\"1730\" src=\"https:\/\/fabsk.eu\/blog\/wp-content\/uploads\/2016\/05\/sample.jpg\" alt=\"A plan of a part of Paris in OpenStreetMap default style, covered by a layer of heatmap\" class=\"wp-image-1730\" srcset=\"https:\/\/fabsk.eu\/blog\/wp-content\/uploads\/2016\/05\/sample.jpg 895w, https:\/\/fabsk.eu\/blog\/wp-content\/uploads\/2016\/05\/sample-300x205.jpg 300w, https:\/\/fabsk.eu\/blog\/wp-content\/uploads\/2016\/05\/sample-768x526.jpg 768w, https:\/\/fabsk.eu\/blog\/wp-content\/uploads\/2016\/05\/sample-624x427.jpg 624w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/a><\/figure>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I thought it would be nice to create heatmaps from the Openstreetmap data (i.e. for displaying the areas lacking \u00ab\u00a0addr:housenumber\u00a0\u00bb). I created, OsmosisHeatmap (jar file, source), a plug-in for Osmosis (a command line tool for processing Openstreetmap data) that generates a JavaScript file with the coordinates, JS that can be used by the sample HTML [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,28,26],"tags":[],"class_list":["post-1729","post","type-post","status-publish","format-standard","hentry","category-dev","category-java","category-openstreetmap","\"lang=\"en"],"_links":{"self":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/1729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/comments?post=1729"}],"version-history":[{"count":4,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/1729\/revisions"}],"predecessor-version":[{"id":2952,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/posts\/1729\/revisions\/2952"}],"wp:attachment":[{"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/media?parent=1729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/categories?post=1729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabsk.eu\/blog\/wp-json\/wp\/v2\/tags?post=1729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}