Skip to content

Commit

Permalink
fix of corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldorman committed Oct 11, 2024
1 parent dc77222 commit 727ff7b
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 122 deletions.
14 changes: 7 additions & 7 deletions 04-geometry-operations.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,9 @@ Note that we convert the `shapely` geometries to `GeoSeries` to be able to use t
#| fig-cap: Examples of `'LineString`' and `'Polygon'` casted from a `'MultiPoint'` geometry
#| layout-ncol: 3
#| fig-subcap:
#| - 'MultiPoint'
#| - 'LineString'
#| - 'Polygon'
#| - "`'MultiPoint'`"
#| - "`'LineString'`"
#| - "`'Polygon'`"
gpd.GeoSeries(multipoint).plot();
gpd.GeoSeries(linestring).plot();
gpd.GeoSeries(polygon).plot();
Expand Down Expand Up @@ -768,8 +768,8 @@ For example, here we see that all `'LineString'` geometries came from the same m
#| fig-cap: Transformation of a `'MultiLineString'` layer with one feature, into a `'LineString'` layer with three features, using `.explode`
#| layout-ncol: 2
#| fig-subcap:
#| - `'MultiLineString'` layer
#| - `'LineString'` layer, after applying `.explode`
#| - "`'MultiLineString'` layer"
#| - "`'LineString'` layer, after applying `.explode`"
dat.plot(column='id', linewidth=7);
dat1.plot(column='level_1', linewidth=7);
```
Expand All @@ -792,8 +792,8 @@ The result is illustrated in @fig-linestring-to-multipoint.
#| fig-cap: Transformation of a `'LineString'` layer with three features, into a `'MultiPoint'` layer (also with three features), using `.apply` and **shapely** methods
#| layout-ncol: 2
#| fig-subcap:
#| - `'LineString'` layer
#| - `'MultiPoint'` layer
#| - "`'LineString'` layer"
#| - "`'MultiPoint'` layer"
dat1.plot(column='level_1', linewidth=7);
dat2.plot(column='level_1', markersize=50);
```
Expand Down
111 changes: 57 additions & 54 deletions Geocomputation-with-Python.tex

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,26 @@ format:
toc-title: "On this page"
code-overflow: wrap
toc-depth: 4
# pdf:
# documentclass: krantz
# monofont: 'Source Code Pro'
# monofontoptions:
# - Scale=0.7
# pdf-engine: xelatex
# keep-tex: true
# number-sections: true
# top-level-division: chapter
# include-before-body: helpers/before_body.tex
# include-in-header:
# text: |
# \AtBeginEnvironment{longtable}{\footnotesize}
# \usepackage{makeidx}
# \usepackage{gensymb}
# \usepackage{cjhebrew}
# \makeindex
# include-after-body:
# text: |
# \printindex
pdf:
documentclass: krantz
monofont: 'Source Code Pro'
monofontoptions:
- Scale=0.7
pdf-engine: xelatex
keep-tex: true
number-sections: true
top-level-division: chapter
include-before-body: helpers/before_body.tex
include-in-header:
text: |
\AtBeginEnvironment{longtable}{\footnotesize}
\usepackage{makeidx}
\usepackage{gensymb}
\usepackage{cjhebrew}
\makeindex
include-after-body:
text: |
\printindex
jupyter: python3
bibliography: geocompr.bib
82 changes: 41 additions & 41 deletions output/plot_rasterio2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified output/w_many_features.gpkg
Binary file not shown.
Binary file modified output/w_many_layers.gpkg
Binary file not shown.
Binary file modified output/world.gpkg
Binary file not shown.

0 comments on commit 727ff7b

Please sign in to comment.