<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Anything Spatial</title>
    <description>A blog about anyting spatial and fun</description>
    <link>http://redfrexx.github.io/anything-spatial</link>
    <atom:link href="http://redfrexx.github.io/anything-spatial/feed.xml" rel="self" type="application/rss+xml" />
    
      <item>
        <title>QGIS Forst</title>
        <description>&lt;p&gt;This week I finished a new QGIS processing provider containing tools for geospatial analysis in forestry.&lt;/p&gt;
</description>
        <pubDate>Tue, 26 Mar 2019 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2019-03-26-QGIS-Forst/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2019-03-26-QGIS-Forst/</guid>
      </item>
    
      <item>
        <title>Spatial queries using the OpenStreetMap History Database (OSHDB)</title>
        <description>&lt;p&gt;Max is two and loves spending Monday afternoons with his Dad at the playground. Finding a suitable playground however isn’t easy, since a few criteria must be met: there should be a bench and some trees nearby to get shelter from the sun and an ice cream shop within the neighbourhood. Using the new spatial join functionality of the HeiGIT &lt;a href=&quot;https://heigit.org/big-spatial-data-analytics-en/ohsome/&quot;&gt;OpenStreetMap History Database OSHDB&lt;/a&gt; answering this question can easily be done with just one query. The new methods will make it possible to query OSM objects based on their spatial relation and proximity to other OSM objects. So using the OSHDB Max’ playground query might look like this:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;OSHDBMapReducer
	.osmTag(“leisure”, “playground”)
	.neighbouring(25., “amenity”, “bench”)
	.neighbouring(25., “natural”, “tree”)
	.neighbouring(300., “cousine”, “ice_cream”)
	.collect()
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This query reduces the number of potential playgrounds within the city of Heidelberg from 171 to 4 as shown in the map below.Similar questions like this are also addressed within the mFund &lt;a href=&quot;https://www.geog.uni-heidelberg.de/gis/meingruen.html&quot;&gt;meinGrün&lt;/a&gt; project, which aims at extracting information about urban green spaces and the facilities and activities they provide using diverse data sources such as OSM, Social Media and satellite imagery helping citizens to find the most suitable green space for their needs, e.g. through &lt;a href=&quot;http://k1z.blog.uni-heidelberg.de/2018/11/07/generating-customized-pleasant-pedestrian-routes-based-on-openstreetmap-data/&quot;&gt;green and healthy routing&lt;/a&gt; in &lt;a href=&quot;https://openrouteservice.org/&quot;&gt;OpenRouteService&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../img/playgrounds.png&quot; alt=&quot;address_completeness&quot; width=&quot;100%&quot; /&gt;&lt;/p&gt;

&lt;p&gt;But this is by far not the only case where OSHDB spatial queries are useful. They are also a valuable tool when it comes to measuring data quality of OpenStreetMap. The completeness of building addresses for instance is an important quality measure for the applicability of routing services in a certain area. Building addresses in OSM are tagged with the key “addr:housenumber” which can be set in two different ways: as an additional tag of a “building” feature or as a node located within a “building” feature. For the latter case, the number of buildings containing the tag “addr:housenumber” as a node can be queried using the new method contains().&lt;/p&gt;

&lt;div class=&quot;language-java highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;OSHDBMapReducer&lt;/span&gt;
	&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;osmTag&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;“&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;building&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;”&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
	&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;“&lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;addr:&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;housenumber&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;”&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
	&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;By extending this OSHDB query by a few more lines of code we can take into account both tagging schemes to derive the total percentage of buildings containing information about the house number. Applying this query to the city of Heidelberg yields the map below. Further quality measures like this are being developed within the DFG Project &lt;a href=&quot;https://www.geog.uni-heidelberg.de/gis/intrisic_osm_quality.html&quot;&gt;A framework for measuring the fitness for purpose of OpenStreetMap data based on intrinsic quality indicators&lt;/a&gt; and &lt;a href=&quot;https://heigit.org/&quot;&gt;HeiGIT&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The spatial join functionality of the OSHDB is still at the development stage. If you want to stay up to date, check out our &lt;a href=&quot;https://github.com/GIScience/oshdb/issues/106&quot;&gt;OSHDB GitHub repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;../img/address.png&quot; alt=&quot;address_completeness&quot; width=&quot;100%&quot; /&gt;&lt;/p&gt;
</description>
        <pubDate>Wed, 20 Mar 2019 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2019-03-20-oshdb-spatial-join/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2019-03-20-oshdb-spatial-join/</guid>
      </item>
    
      <item>
        <title>Flake it till you make it</title>
        <description>&lt;p&gt;Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who hit me, no one would say that I had a commitment problem. But if I walk away from a seemingly secure route because my soul has other ideas, I am a flake?&lt;/p&gt;

&lt;p&gt;The truth is that no one else can definitively know the path we are here to walk. It’s tempting to listen—many of us long for the omnipotent other—but unless they are genuine psychic intuitives, they can’t know. All others can know is their own truth, and if they’ve actually done the work to excavate it, they will have the good sense to know that they cannot genuinely know anyone else’s. Only soul knows the path it is here to walk. Since you are the only one living in your temple, only you can know its scriptures and interpretive structure.&lt;/p&gt;

&lt;p&gt;At the heart of the struggle are two very different ideas of success—survival-driven and soul-driven. For survivalists, success is security, pragmatism, power over others. Success is the absence of material suffering, the nourishing of the soul be damned. It is an odd and ironic thing that most of the material power in our world often resides in the hands of younger souls. Still working in the egoic and material realms, they love the sensations of power and focus most of their energy on accumulation. Older souls tend not to be as materially driven. They have already played the worldly game in previous lives and they search for more subtle shades of meaning in this one—authentication rather than accumulation. They are often ignored by the culture at large, although they really are the truest warriors.&lt;/p&gt;

&lt;p&gt;A soulful notion of success rests on the actualization of our innate image. Success is simply the completion of a soul step, however unsightly it may be. We have finished what we started when the lesson is learned. What a fear-based culture calls a wonderful opportunity may be fruitless and misguided for the soul. Staying in a passionless relationship may satisfy our need for comfort, but it may stifle the soul. Becoming a famous lawyer is only worthwhile if the soul demands it. It is an essential failure if you are called to be a monastic this time around. If you need to explore and abandon ten careers in order to stretch your soul toward its innate image, then so be it. Flake it till you make it.&lt;/p&gt;
</description>
        <pubDate>Thu, 26 Feb 2015 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2015-02-26-flake-it-till-you-make-it/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2015-02-26-flake-it-till-you-make-it/</guid>
      </item>
    
      <item>
        <title>To be</title>
        <description>&lt;p&gt;To be, or not to be–that is the question:
Whether ‘tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles
And by opposing end them. To die, to sleep–
No more–and by a sleep to say we end
The heartache, and the thousand natural shocks
That flesh is heir to. ‘Tis a consummation
Devoutly to be wished. To die, to sleep–
To sleep–perchance to dream: ay, there’s the rub,
For in that sleep of death what dreams may come
When we have shuffled off this mortal coil,
Must give us pause. There’s the respect
That makes calamity of so long life.
For who would bear the whips and scorns of time,
Th’ oppressor’s wrong, the proud man’s contumely
The pangs of despised love, the law’s delay,
The insolence of office, and the spurns
That patient merit of th’ unworthy takes,
When he himself might his quietus make
With a bare bodkin? Who would fardels bear,
To grunt and sweat under a weary life,
But that the dread of something after death,
The undiscovered country, from whose bourn
No traveller returns, puzzles the will,
And makes us rather bear those ills we have
Than fly to others that we know not of?
Thus conscience does make cowards of us all,
And thus the native hue of resolution
Is sicklied o’er with the pale cast of thought,
And enterprise of great pitch and moment
With this regard their currents turn awry
And lose the name of action. – Soft you now,
The fair Ophelia! – Nymph, in thy orisons
Be all my sins remembered.&lt;/p&gt;
</description>
        <pubDate>Fri, 13 Feb 2015 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2015-02-13-hamlet-monologue/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2015-02-13-hamlet-monologue/</guid>
      </item>
    
      <item>
        <title>Dear diary</title>
        <description>&lt;p&gt;What is it with that Mary girl?  Dragging me to school every day. As if I had a choice.  What you don’t hear in those nursery rhymes is that she starves me if I don’t go to school with her; it’s the only way I can stay alive!  I’m thinking about being adopted by Little Bo Peep, sure I may get lost, but anything is better than being with Mary and those little brats at school (shudder, shudder).&lt;/p&gt;
</description>
        <pubDate>Tue, 27 Jan 2015 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2015-01-27-dear-diary/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2015-01-27-dear-diary/</guid>
      </item>
    
      <item>
        <title>Soccer</title>
        <description>&lt;p&gt;From Wikipedia:&lt;/p&gt;

&lt;p&gt;Association football, more commonly known as football or soccer,[2] is a sport played between two teams of eleven players with a spherical ball. It is played by 250 million players in over 200 countries, making it the world’s most popular sport.[3][4][5][6] The game is played on a rectangular field with a goal at each end. The object of the game is to score by getting the ball into the opposing goal.&lt;/p&gt;

&lt;p&gt;The goalkeepers are the only players allowed to touch the ball with their hands or arms while it is in play and then only in their penalty area. Outfield players mostly use their feet to strike or pass the ball, but may use their head or torso to strike the ball instead. The team that scores the most goals by the end of the match wins. If the score is level at the end of the game, either a draw is declared or the game goes into extra time and/or a penalty shootout depending on the format of the competition. The Laws of the Game were originally codified in England by The Football Association in 1863. Association football is governed internationally by the International Federation of Association Football (FIFA; French: Fédération Internationale de Football Association) which organises a World Cup every four years.[7]&lt;/p&gt;
</description>
        <pubDate>Mon, 19 Jan 2015 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2015-01-19-soccer/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2015-01-19-soccer/</guid>
      </item>
    
      <item>
        <title>Pirates arrrr</title>
        <description>&lt;p&gt;Piracy is typically an act of robbery or criminal violence at sea. The term can include acts committed on land, in the air, or in other major bodies of water or on a shore. It does not normally include crimes committed against persons traveling on the same vessel as the perpetrator (e.g. one passenger stealing from others on the same vessel). The term has been used throughout history to refer to raids across land borders by non-state agents.&lt;/p&gt;
</description>
        <pubDate>Thu, 15 Jan 2015 00:00:00 +0000</pubDate>
        <link>http://redfrexx.github.io/anything-spatial/2015-01-15-pirates/</link>
        <guid isPermaLink="true">http://redfrexx.github.io/anything-spatial/2015-01-15-pirates/</guid>
      </item>
    
  </channel>
</rss>