Skip to content

Commit

Permalink
8th october v2
Browse files Browse the repository at this point in the history
  • Loading branch information
rruiz-s committed Oct 8, 2024
1 parent fbaa4ab commit 185666a
Show file tree
Hide file tree
Showing 5 changed files with 259 additions and 275 deletions.
1 change: 1 addition & 0 deletions .~lock.data_table.csv#
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
,ricardo,ricardo-HP-EliteBook-820-G1,08.10.2024 13:39,file:///home/ricardo/.config/libreoffice/4;
4 changes: 2 additions & 2 deletions _freeze/appendix/execute-results/html.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion appendix.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ VACUUM(full, ANALYZE) porto_alegre_net_largest;
#| warning: false
#| message: false
#| echo: false
#| include: false
lapply(c("readODS","tidyverse","ggplot2","DT"), require, character.only =TRUE)
performance <- readODS::read_ods("metrics.ods")
df <- performance |> dplyr::select(c("number_od","method","algorithm","time","max_centrality","count_rows","query","analyze")) |> filter(!is.na(time) & method %in% c('naive','array_agg','st_bbox'))
DT::datatable(subset(df, select=c("number_od","algorithm","time","query","analyze")),
class='compact', rownames=FALSE, escape=FALSE, caption='Data description',
extensions=c("Buttons",'RowGroup'),
Expand Down Expand Up @@ -209,6 +209,7 @@ ggplot(filter(df, method %in% c('st_bbox','naive') & algorithm == 'pgr_astrar()'
### Naive

Centrality based on

1. [Blog from Daniel I. Patterson](https://urbandatacyclist.com/2020/04/18/how-to-measure-centrality-among-bike-share-trips-using-pgrouting/)
2. [Book by Matt Forrest "Listing 3.26: Final query",page 435](https://locatepress.com/book/spatial-sql)

Expand Down Expand Up @@ -238,6 +239,7 @@ EXPLAIN ANALYZE
### Method bounding box

Code based on:

1. [Stackoverflow from "simpleuser001" ](https://gis.stackexchange.com/questions/69722/why-is-any-pgr-routing-function-taking-forever-based-on-osm-data-in-an-pgrouti/69825#69825)

```{sql}
Expand Down Expand Up @@ -281,6 +283,7 @@ FROM
### Method array_agg()

Code based on:

1. [Stackoverflow from "Timothy Dalton"](https://gis.stackexchange.com/questions/432035/pgrouting-computation-time-code-efficiency)

```{sql}
Expand Down
522 changes: 251 additions & 271 deletions docs/appendix.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
"href": "appendix.html#routing",
"title": "Appendix A — Performance",
"section": "A.2 Routing",
"text": "A.2 Routing\n\n\n[[1]]\n[1] TRUE\n\n[[2]]\n[1] TRUE\n\n[[3]]\n[1] TRUE\n\n[[4]]\n[1] TRUE"
"text": "A.2 Routing"
},
{
"objectID": "appendix.html#naive",
Expand Down

0 comments on commit 185666a

Please sign in to comment.