From ea18ace870c7b0210a624f00508f6121fef79a55 Mon Sep 17 00:00:00 2001 From: mdsumner Date: Fri, 3 Nov 2023 05:13:21 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20ecohealt?= =?UTF-8?q?halliance/fasterize@2082964486546d1cb62d00736af4c4987b7ae926=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- CODE_OF_CONDUCT.html | 2 +- CONTRIBUTING.html | 2 +- LICENSE-text.html | 2 +- articles/index.html | 2 +- articles/using-fasterize.html | 4 +- authors.html | 10 +-- index.html | 8 +-- news/index.html | 10 ++- pkgdown.yml | 2 +- reference/fasterize-package.html | 109 +++++++++++++++++++++++++++++++ reference/fasterize.html | 24 +++---- reference/index.html | 4 +- reference/plot.html | 2 +- reference/raster.html | 2 +- sitemap.xml | 3 + 16 files changed, 155 insertions(+), 33 deletions(-) create mode 100644 reference/fasterize-package.html diff --git a/404.html b/404.html index 4913ce2..993320d 100644 --- a/404.html +++ b/404.html @@ -32,7 +32,7 @@ fasterize - 1.0.4.9002 + 1.0.5 diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 5816f38..d3e598f 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -17,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5 diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index bb920bc..7c9f118 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -17,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5 diff --git a/LICENSE-text.html b/LICENSE-text.html index 2fa240b..f5a4593 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -17,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5 diff --git a/articles/index.html b/articles/index.html index 85b235e..414ff4e 100644 --- a/articles/index.html +++ b/articles/index.html @@ -17,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5 diff --git a/articles/using-fasterize.html b/articles/using-fasterize.html index a48158b..26c320c 100644 --- a/articles/using-fasterize.html +++ b/articles/using-fasterize.html @@ -33,7 +33,7 @@ fasterize - 1.0.4.9002 + 1.0.5 @@ -82,7 +82,7 @@

Using Fasterize

Noam Ross, Michael Sumner

-

2022-12-26

+

2023-11-03

Source: vignettes/using-fasterize.Rmd diff --git a/authors.html b/authors.html index 0bb83cd..46e3823 100644 --- a/authors.html +++ b/authors.html @@ -17,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5 @@ -91,15 +91,15 @@

Citation

-

Ross N (2022). +

Ross N (2023). fasterize: Fast Polygon to Raster Conversion. -R package version 1.0.4.9002, https://github.com/ecohealthalliance/fasterize. +R package version 1.0.5, https://github.com/ecohealthalliance/fasterize.

@Manual{,
   title = {fasterize: Fast Polygon to Raster Conversion},
   author = {Noam Ross},
-  year = {2022},
-  note = {R package version 1.0.4.9002},
+  year = {2023},
+  note = {R package version 1.0.5},
   url = {https://github.com/ecohealthalliance/fasterize},
 }
diff --git a/index.html b/index.html index 39b791c..af61bd1 100644 --- a/index.html +++ b/index.html @@ -13,9 +13,9 @@ fasterize: Fast Polygon to Raster Conversion — fasterize-package • fasterize + + +
+
+ + + +
+
+ + +
+

Provides a drop-in replacement for rasterize() from the 'raster' package that takes polygon vector or dataframe objects, and is much faster. There is support for the main options provided by the rasterize() function, including setting the field used and background value, and options for aggregating multi-layer rasters. Uses the scan line algorithm attributed to Wylie et al. (1967) doi:10.1145/1465611.1465619 +.

+

Fast polygons-to-raster conversion

+
+ + + +
+

Author

+

Maintainer: Michael Sumner mdsumner@gmail.com (ORCID) [contributor]

+

Authors:

Other contributors:

  • Jeroen Ooms [contributor]

  • +
  • Antoine Stevens [contributor]

  • +
  • EcoHealth Alliance [copyright holder]

  • +
  • USAID PREDICT [funder]

  • +
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.7.

+
+ +
+ + + + + + + + diff --git a/reference/fasterize.html b/reference/fasterize.html index 1b11927..0026c6f 100644 --- a/reference/fasterize.html +++ b/reference/fasterize.html @@ -1,6 +1,5 @@ -Rasterize an sf object of polygons — fasterize • fasterizeRasterize a vector or dataframe object of polygons — fasterize • fasterize @@ -18,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5 @@ -54,14 +53,13 @@

Rasterize set of polygons

-

Fast sf-to-raster conversion

@@ -78,21 +76,22 @@

Rasterize an sf object of polygons

Arguments

sf
-

an sf::sf() object with a geometry column of POLYGON and/or -MULTIPOLYGON objects.

+

a polygon vector or data frame object with a geometry column of POLYGON and/or +MULTIPOLYGON (equivalent) objects.

raster

A raster object. Used as a template for the raster output. Can be created with raster::raster(). The fasterize package provides a method to create a raster object from -an sf object.

+an polygon dataset.

field
-

character. The name of a column in sf, +

character (or numeric vector). The name of a column in sf, providing a value for each of the polygons rasterized. If NULL (default), -all polygons will be given a value of 1.

+all polygons will be given a value of 1. If a numeric vector this value +will be used as the value given to the pixel. (No recyling is done).

fun
@@ -130,6 +129,9 @@

Details

is originally attributed to Wylie et al. (1967) doi:10.1145/1465611.1465619 .

+

Note that original implementation worked only for sf dataframes of class "sf", but this +now works for any polygon vector (sfc, wkt, wkb, geos) or dataframe with a polygon vector +supported by the wk package handlers.

References

diff --git a/reference/index.html b/reference/index.html index 1384f8e..75f1ace 100644 --- a/reference/index.html +++ b/reference/index.html @@ -17,7 +17,7 @@ fasterize - 1.0.4.9002 + 1.0.5
@@ -63,7 +63,7 @@

All functions

fasterize()

-

Rasterize an sf object of polygons

+

Rasterize a vector or dataframe object of polygons

diff --git a/reference/raster.html b/reference/raster.html index 6d2a9eb..5dd7a32 100644 --- a/reference/raster.html +++ b/reference/raster.html @@ -19,7 +19,7 @@ fasterize - 1.0.4.9002 + 1.0.5
diff --git a/sitemap.xml b/sitemap.xml index de41839..50a934d 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -27,6 +27,9 @@ /news/index.html + + /reference/fasterize-package.html + /reference/fasterize.html