-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apply_mapshapper_commands not working? #121
Comments
nc <- sf::read_sf(system.file("gpkg/nc.gpkg", package = "sf"))
rmapshaper::apply_mapshaper_commands(geojsonsf::sf_geojson(nc), "-clean", force_FC = TRUE) It would certainly be possible to make |
Oh interesting. OK. That makes sense. Do you mind if we put that into an example? Not sure if that would cause CRAN check issues or anything. |
Sure, that's a great idea. I am in the process of converting most of the internals to using the |
documentation in apply_mapshaper_commands fixes #121
* Start experimenting with geojsonsf * Fix tests * Fix test * Remove geo_list methods * Change sp examples to sf * Add geojsonsf, move geojsonio to Suggests * document * Remove test that just tests mapshaper * Use rgdal directly to write sp to tempfile (no geojsonio) * Define and use expect_equivalent_json to test geojson strings * Fix tests and examples * Document * Make sure sf_to_GeoJSON always returns an FC * No longer need to install Rcpp from source * Add test helper to ignore df column order * Clean up scratch folder * Update DESCRIPTION * use checkout@v2 * Simpler example * change all proj -> crs * Error in clip_erase when non-identical crs * Methods for json rather than geo_json; also use jsonify::validate_json instead of geojsonlint * Update min geojsonsf version and add Remotes to DESCRIPTION * Don't support POSIXlt * set test encoding * remove last geojson method * silence rgdal CRS warnings; remove geojsonio refs * document * Update NEWS * namespace methods::slot * test encoding with sf and sp * Suppress crs assignment warning * Add test for #91 * Temporarily use geojsonsf branch with encoding fix * update encoding test for names and values * Use PR for geojsonsf remote (windows encoding) * Actions: Use ubuntu-gis-unstable ppa * Tweaks to GH Actions * Update CI * Remove docker-based CI workflow * CI: don't install spatial sysreqs since installing binaries from rspm * Udpate imports versions, remove remote from geojsonsf * Try new minimal CI workflow * Use v2 actions * Add old linux to test old v8 * Update gitignore * CI: Change old Ubuntu from 16.04 to 18.04 * Edit R-CMD-check badge, render README * documentation in apply_mapshaper_commands fixes #121 * Simplify cmd arg construction by setting NULL defaults * Use ... to pass common args to apply_mapshaper_commands * Add quiet parameter. Closes #125 * Add global sys_mem option * document * Use ... in clip & erase for common args * documentation * Add node mapshaper to CI * typo * Remove usages of rgdal and rgeos. Closes #129 * render readme and document * Update GH actions * Tweak news, build readme * sp -> sf --------- Co-authored-by: David Blodgett <dblodgett@usgs.gov>
I could work on a solution given a little head start, but maybe this is an easy fix?
Created on 2022-03-09 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: