Changelogs » Bcdata

PyUp Safety actively tracks 373,221 Python packages for vulnerabilities and notifies you when to upgrade.

Bcdata

0.5.1

------------------
  - bc2pg - remove non-functional option to specify geom type on load, revert to --promote_to_multi (92)

0.5.0

------------------
  - bc2pg - add option to validate on load (91)
  - bc2pg - add option to specify geometry type on load (92)
  - bump click version requirement (94)

0.4.5

------------------
  - fix outdated setup.py (88)

0.4.4

------------------
  - track most recent date a table is downloaded to postgres via bc2pg with `public.bcdata` (86)
  - cleanup temp tables on bail (73)
  - remove pgdata dependency and use psycopg2 built in string methods (87)

0.4.3

------------------
  - make dataset name arguments case insensitive
  - default max_workers to 2 in functions outside of CLI
  - bc2pg - add option --promote_to_multi to invoke ogr2ogr's -nlt PROMOTE_TO_MULTI and support
  layers with mixed single/multipart types
  - add optional crs object to geojson output of bcdata.get_data() (82)

0.4.2

------------------
  - bc2pg - fix bug that populated incorrect primary key values for multi-page requests (78)
  - bc2pg - for large requests, default max_workers to 2 rather than 5 (75)

0.4.1

------------------
  - fix bc2pg connection string (74)

0.4.0

------------------
  - WxS requests made via https (59)
  - add options --verbose / --quiet to CLI (62)
  - add option --interpolation to dem command (63)
  - add option as_gdf to get_data function to load directly to a geopandas
  dataframe (67)
  - fix bc2pg to actually use port specified in --db_url (69)
  - regenerate data list cache daily (70)
  - fix bc2pg to only use a password when provided in --db_url (72)

0.3.5

------------------
  - use http WFS requests to avoid certificate errors (59)
  - fix bug introduced in v0.3.4 (60)

0.3.4

------------------
  - support using --bounds and --filter at the same time (58)
  - support --bounds_crs option for most tools/functions
  - rename --src_crs option for dem command to --bounds_crs

0.3.3

------------------
  - use OBJECTID as default sortby key (57)
  - bc2pg - add dim option to support loading data with Z dimensions
  - bc2pg - add fid option to enable correct assignment of primary key
  - bc2pg - remove sortby option
  - fix get_dem to use CRS parameters correctly (53)
  - bug fixes

0.3.2

------------------
  - add append option to bc2pg
  - fix bcdata cat not requesting specified CRS (48)
  - fix crash when DATABASE_URL not set (49)
  - handle WCS request errors

0.3.1

------------------
  - fix 45
  - add progress bar
  - enable bc2pg pagesize

0.3.0

------------------
  Major revision, nothing is backwards compatible
  - download data via WFS rather than DWDS
  - functions renamed
  - data downloaded to file is to geojson only
  - added `bc2pg` command for mirroring BC table in postgres

0.2.4

* Code in `.onLoad()` that sent a request to the wfs getCapabilities endpoint could cause the package to fail to load. This was moved into an internal function `bcdc_get_capabilities()` that makes the request the first time it's required, and stores the result for the remainder of the session (271)
  * testthat is now used conditionally to only run tests if the testthat package is installed.

0.2.3

IMPROVEMENTS
  - Setting the `bcdata.single_download_limit` limit dynamically from the getCapabilities endpoint. 256
  - `bcdc_describe_feature` now joins an object description column to the returned object to provide more information about a field directly in R. 241, 259
  - Better documentation and information surrounding the `bcdata.max_geom_pred_size` option. 243, 258
  - Add new function `bcdc_check_geom_size` so users can check prior to submitting a WFS request with `filter` to see
  if the request will require a bounding box conversion. 243, 258
  - Better documentation and messaging about when and why paginated requests are required by `bcdc_query_geodata()`. 240, 264
  - Better documentation and print method for what records are suitable for use with `bcdc_query_geodata()`. 265, 267

0.2.2

IMPROVEMENTS
  * Added `bcdc_list_groups` and `bcdc_list_group_records` to provide the ability to query on the group endpoint of the catalogue API. 234
  * Added new option `bcdata.single_download_limit` to enable setting the maximum number of records an object can be before forcing a paginated download (252)
  
  BUG FIXES
  * Fixed bug in `collect.bcdc_promise` where the wrong parameter name in `crul::Paginator$new()` resulted in an error in paginated wfs requests (250, thanks meztez)
  * Fixed a bug where the name of `bcdata.chunk_limit` option had a typo, so that it was not actually used properly (252)

0.2.1

BUG FIXES
  * Remove link for pipe documentation for simplicity.
  * Fixed bug where using many `as.` functions (e.g., `as.Date()`, `as.character()`, `as.numeric()`) in a filter statement would fail. (218, 219)
  
  MAINTENANCE
  * Updated internal SQL translation to use `DBI` S4 generics (`DBI::dbQuoteIdentifier()` is now used instead of
  `dbplyr::sql_escape_ident()` and `DBI::dbQuoteString()` instead of `dbplyr::sql_escape_string()`), to comply
  with upcoming `dbplyr` 2.0 release (225, 225; https://github.com/tidyverse/dbplyr/issues/385)
  * Wrapped all examples that call web resources in `try()` to avoid spurious check failures (229).

0.2.0

------------------
  - use DataBC Catalogue API to find data (25, 31)

0.1.2

IMPROVEMENTS
  * Add `bcdc_tidy_resources` for retrieving a data frame containing the metadata for all resources from a single B.C. Data Catalogue record (PR149, 147)
  * Add a more decorative record print method  (73)
  * More reliable detection of layer name for a wfs call in `bcdc_query_geodata()` (129, 138, 139)
  * Add `mutate` method for bcdc_promise that only fails and suggest an alternative approach. (PR134)
  * Add back in querying vignette
  * Using `tidyselect` so that `select.bcdc_promise` behaviour is typical of `dplyr::select` ($140, 138)
  * Using GitHub actions for CI.
  
  MINOR BREAKING CHANGES
  * Remove `BEYOND()` and `RELATE()` geometry predicates as they are currently not fully supported by geoserver
  
  BUG FIXES
  * Now precompiling vignettes so that queries are submitted locally and no actually requests are made from CRAN (151)
  * Fix `NOTE: Namespace in Imports field not imported from: ‘methods’` error on CRAN (145)
  * Fixed a bug where functions nested inside geometry predicates were not evaluated (146, 154)
  * Fixed a bug where `DWITHIN` wasn't working because `units` needed to be unquoted (154)
  * Fixed a bug where `BBOX()` used in a `filter()` statement combined with `bcdc_query_geodata()` did not work (135, 137, 131)
  * Fixed a bug where layer names with a number in them would not work in `bcdc_query_geodata()` (126, 127)

0.1.1

* Expand and standardize checking w[ms]f features to make package more resistant to slight warehouse API changes.
  * Data retrieval functions now work with BCGW name (106)
  * Add CITATION file (104)
  * Increased test coverage (112)
  * Skipping all tests on CRAN that require a web connection
  * Better and more informative error message when experiencing http failures occur (121)
  * Added print methods for `show_query`
  * Change examples to donttest
  * Added verbose argument to `bcdc_get_record` to enable suppressing console writing

0.1.0.post1

------------------
  - fix typo in README

0.1.0

------------------
  - upload release to PyPI
  - add continuous integration testing
  - simplify file structure
  - add info function/option (30)
  - require html5lib (29)
  - add path option to download function (28)
  - set default timeout 2hrs (27, 26)
  - Python 3 compatible, test with tox (23)
  - fix test (21)

0.0.5

------------------
  - remove selenium and phantomjs dependencies
  - geomark support removed
  - CRS support removed

0.0.4

------------------
  - headless downloads! (1)
  - cli testing now functional (3)

0.0.3

------------------
  - use a better key to find download link on catalog page (15)

0.0.2

------------------
  - close issues related to layers / projections / appending (2, 9, 10)
  - cleanup
  - fix problems with CLI

0.0.1

------------------
  Automation of simple downloads from British Columbia's Data Distribution Service.