Commit 8acb4063 authored by Marvin Kastner's avatar Marvin Kastner
Browse files

Merge branch 'feature/raumlichedaten' into 'master'

Bilder und ein Beishpiel von Orte Innerhalb und Außerhalb Hamburg hizüfugen.

See merge request w12/ergaenzende-notebooks-fuer-dig-in-v-u-l!1
parents 7a622ba0 0ce82f4d
......@@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
......@@ -27,13 +27,15 @@
"source": [
"## Einführendes Beispiel\n",
"\n",
"![title](Quadrat.png)\n",
"\n",
"Zunächst wird ein Punkt und ein Polygon definiert.\n",
"Das Polygon entspricht einem Quadrat, der `point_1` liegt genau in der Mitte."
]
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
......@@ -50,7 +52,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 11,
"metadata": {},
"outputs": [
{
......@@ -59,7 +61,7 @@
"True"
]
},
"execution_count": 3,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
......@@ -77,8 +79,10 @@
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"execution_count": 12,
"metadata": {
"scrolled": false
},
"outputs": [
{
"data": {
......@@ -86,7 +90,7 @@
"False"
]
},
"execution_count": 4,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
......@@ -95,6 +99,67 @@
"point_2 = Point((2, 2))\n",
"polygon.contains(point_2)"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"![title](Hamburg.png)\n",
"\n",
"Webseite: https://www.keene.edu/campus/maps/tool/"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"hamburg_rathaus = Point((9.9937391, 53.5513486))\n",
"hamburg = Polygon(((10.23, 53.62), (10.21, 53.75), (9.93, 53.67), (9.72, 53.63), (9,72, 53.5), (10, 53.4), (10.26, 53.47), (10.23, 53.62)))"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"hamburg.contains(hamburg_rathaus)"
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"bremen = Point((8.8014221, 53.0756713))\n",
"hamburg.contains(bremen)"
]
}
],
"metadata": {
......@@ -113,7 +178,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"varInspector": {
"cols": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment