File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "cells" : [
3+ {
4+ "cell_type" : " markdown" ,
5+ "metadata" : {},
6+ "source" : [
7+ " # shows how to load a layer from a geopackage"
8+ ]
9+ },
10+ {
11+ "cell_type" : " code" ,
12+ "execution_count" : 1 ,
13+ "metadata" : {},
14+ "outputs" : [],
15+ "source" : [
16+ " import geopandas as gpd"
17+ ]
18+ },
19+ {
20+ "cell_type" : " code" ,
21+ "execution_count" : 4 ,
22+ "metadata" : {},
23+ "outputs" : [],
24+ "source" : [
25+ " gpkgfile = \" /home/luca/Downloads/Copernicus3.gpkg\"\n " ,
26+ " layer = \" Landforms\"\n " ,
27+ " table = gpd.GeoDataFrame.from_file(gpkgfile, layer=layer)"
28+ ]
29+ },
30+ {
31+ "cell_type" : " code" ,
32+ "execution_count" : 6 ,
33+ "metadata" : {},
34+ "outputs" : [
35+ {
36+ "data" : {
37+ "text/plain" : [
38+ " <matplotlib.axes._subplots.AxesSubplot at 0x7fe6621b1d68>"
39+ ]
40+ },
41+ "execution_count" : 6 ,
42+ "metadata" : {},
43+ "output_type" : " execute_result"
44+ }
45+ ],
46+ "source" : [
47+ " table.plot()"
48+ ]
49+ },
50+ {
51+ "cell_type" : " code" ,
52+ "execution_count" : null ,
53+ "metadata" : {},
54+ "outputs" : [],
55+ "source" : []
56+ }
57+ ],
58+ "metadata" : {
59+ "kernelspec" : {
60+ "display_name" : " Python 3" ,
61+ "language" : " python" ,
62+ "name" : " python3"
63+ },
64+ "language_info" : {
65+ "codemirror_mode" : {
66+ "name" : " ipython" ,
67+ "version" : 3
68+ },
69+ "file_extension" : " .py" ,
70+ "mimetype" : " text/x-python" ,
71+ "name" : " python" ,
72+ "nbconvert_exporter" : " python" ,
73+ "pygments_lexer" : " ipython3" ,
74+ "version" : " 3.7.3"
75+ }
76+ },
77+ "nbformat" : 4 ,
78+ "nbformat_minor" : 2
79+ }
You can’t perform that action at this time.
0 commit comments