Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Releases: ropensci-archive/lawn

lawn v0.6.0

06 Jan 00:37
1ebbb78
Compare
Choose a tag to compare
  • update Javascript libraries to their latest versions - associated changes mostly not public API facing in the R code here to adapt to the JS changes (#84)
  • move readme images into man/figures (#83)

lawn v0.5.0

01 Feb 00:03
Compare
Choose a tag to compare
  • fix tests for upcoming V8 R package changes (#78) (#79)

v0.4.2

23 Oct 18:35
Compare
Choose a tag to compare

Fix problems on Fedora.

lawn v0.4.0

15 Sep 14:46
Compare
Choose a tag to compare

NEW FEATURES

  • view() gains .feature method to plot feature class objects (#57)
  • gains new function as.feature to attempt to coerce strings or json
    to features. associated with, adds lawn_featurecollection.feature, and
    as.turf.feature (#71)
  • JS library updates: Upgraded from turf.js v3.10.4 to v4.7.3. Upgraded from
    turf/meta v3.10.4 to v4.4.0. Upgraded from turf/invariant v3.10.4 to v4.7.3.
    Upgraded from simple-statistics v2.1.0 to v4.1.0. Upgraded from geojsonhint
    v2.0.0-beta2 to v2.0.1. Upgraded from clone v2.0.0-beta2 to v2.1.1.
    Upgraded from geojson-random v0.2.2 to v0.4.0. Pkg gains new functions
    lawn_line_offset, lawn_rewind, lawn_pt2line_distance,
    lawn_transform_rotate, lawn_transform_scale, lawn_transform_translate,
    and lawn_unkinkpolygon (#51) (#67) (#68) (#69) (#73) (#74)

MINOR IMPROVEMENTS

  • lots of documentation consistency improvements (#58)
  • Now running on simple-statistics v4.1.0 (very close to the
    latest version on NPM) (#66)
  • Started adding type checks to functions, only in lawn_within and
    lawn_buffer for now. These are type checks to check that the correct
    GeoJSON types (e.g., Feature or FeatureCollection) are passed. Will finish
    off remainder of package later (#65)

lawn v0.3.3

16 May 16:05
Compare
Choose a tag to compare
  • changed to using markdown docs
  • tidied docs to 80 line width
  • typo fixes in #60 from @patperu
  • added a number of new methods from turf.js #51
  • updated bundled turf.js to v3.5.2
  • repo now with paper.md and paper.bib for JOSS

lawn v0.3.0

24 Oct 23:06
Compare
Choose a tag to compare

NEW FEATURES

  • Updated to using turf.js v3.5.2 (#49) (#50), with the following significant
    changes. Defunct functions (these methods were removed from turf, so
    made sense to remove them here): lawn_aggregate, lawn_jenks,
    lawn_quantile, lawn_reclass, lawn_size. New functions (these methods
    were added to turf): lawn_circle, lawn_collect, lawn_bbox,
    lawn_feature, lawn_tesselate. New data functions
    to create geojson: lawn_multipoint, lawn_multipolygon,
    lawn_multilinestring, lawn_geometrycollection.
  • as.turf gains S3 methods for multipoint, multipolygon,
    multilinestring, and geometrycollection.
  • lawn_featurecollection gains a default S3 method to error
    gracefully on classes not supported, and gains S3 methods for multipoint,
    multipolygon, multilinestring, and geometrycollection.
  • lawn_erase renamed to lawn_difference, following turf changes
  • lawn_average parameter name changes: field to in_field,
    outputField to out_field
  • lawn_count loses parameter countField, and gains parameters
    in_field, and out_field (with default 'count')
  • lawn_deviation parameter name changes: inField to in_field,
    outField to out_field (with default 'deviation')
  • lawn_max parameter out_field with new default value 'max'
  • lawn_median parameter out_field with new default value 'median'
  • lawn_min parameter out_field with new default value 'min'
  • lawn_sum parameter out_field with new default value 'sum'
  • lawn_variance parameter out_field with new default value 'variance'
  • all aggregatation/math functions (lawn_average, lawn_count, lawn_deviation,
    lawn_max, lawn_median, lawn_min, lawn_sum, lawn_variance)
    use turf.collect internally, same method that's used in lawn_collect

MINOR IMPROVEMENTS

  • Fixed example for lawn_tag() that wasn't working. Also,
    poly_id parameter changed to field, and containing_polyid
    changed to out_field. (#30)
  • lawn_merge uses new turf method turf.union internally, but
    no user facing changes
  • Changed x parameter to coordinates in lawn_point for
    consistency with similar methods
  • Changed rings parameter to coordinates in lawn_polygon for
    consistency with similar methods
  • Internal changes to lawn_remove following turf changes, but
    there should be no user facing changes

BUG FIXES

  • Fixed bug in lawn_buffer() (#53)
  • Fixed bug in lawn_random(). num_vertices parameter wasn't working (#44)

lawn v0.1.7

02 May 18:12
Compare
Choose a tag to compare

BUG FIXES

  • Fixes tests (#46)

lawn v0.1.6

04 Mar 01:18
Compare
Choose a tag to compare

MINOR IMPROVEMENTS

  • Fixes expectations in test suite on failure for new V8 version (#45)
  • Updated geojsonhint Javascript library (v1.2.0) (#42)

lawn 0.1.4

14 Sep 15:30
Compare
Choose a tag to compare

NEW FEATURES

  • Added a code of conduct

MINOR IMPROVEMENTS

  • Implemented print methods for most output objects for easier
    comprehension (#26)

BUG FIXES

  • Import all non-base R functions, now from methods, stats,
    and utils (#40)

lawn 0.1.0

16 May 01:21
Compare
Choose a tag to compare

NEW FEATURES

  • released to CRAN