Releases: ropensci/geojsonio
Releases · ropensci/geojsonio
geojsonio v0.7.0
NEW FEATURES
geo2topo()
gains a new parameterquantization
to quantize geometry prior to computing topology. becausetopojson_write()
usesgeo2topo()
internally,topojson_write()
also gains aquantization
parameter that's passed togeo2topo()
internally (#138) thanks @pvictor
MINOR IMPROVEMENTS
- use package
sf
instead ofsp
intopojson_read()
. note that the return object is now class sf instead of classes from the sp package (#144) (#145) - the
type
parameter intopojson_json()
now set totype="auto"
if the input is an sf/sfc/sfg class object (#139) (#146) - fix to
geojson_list.sfc()
for changes in sf >= v0.7, which names geometries, but that's not valid geojson (#142)
DEPRECATED AND DEFUNCT
geojsonio v0.6.0
Installation
From cran (binaries not available yet)
install.packages("geosjonio")
from github
remotes::install_github("ropensci/geojsonio")
# OR
devtools::install_github("ropensci/geojsonio")
NEWS
NEW FEATURES
topojson_write()
gains a new parameterobject_name
. With it you can set the name for the resulting TopoJSON object name created. As part of thisgeo2topo()
also gains a new parameter, similarly calledobject_name
, that does the same thing as fortopojson_write()
. (#129) (thanks @josiekre) PR (#131)- As part of PR (#132) we added a new function
geojson_sf()
to convert output ofgeojson_list()
orgeojson_json()
tosf
package classes - as an analog togeojson_sp()
MINOR IMPROVEMENTS
geojson_json()
gains option with thetype
parameter to skip a coercion to thegeojson
package classgeoclass
. Usingtype = "skip"
you can skip thegeoclass
class coercion, which in some cases with large datasets should have performance improvements (#128) PR (#133)
BUG FIXES
geojsonio v0.5.0
NEW FEATURES
- gains new function
geojson_atomize
to "atomize" a FeatureCollection
into its features, or a GeometryCollection into its geometries (#120)
via (#119) thx @SymbolixAU - gains new functions
topojson_list
andtopojson_json
for converting
many input types with spatial data to TopoJSON, both as lists and
as JSON (#117) geojson_json
uses brief output provided by thegeojson
package - this makes it less frustrating when you have an especially
large geojson string that prints to console - this instead prints a
brief summary of the GeoJSON object (#86) (#124)
MINOR IMPROVEMENTS
- doing a much more thorough job of cleaning up temp files that are
necessarily generated due to having to go to disk sometimes (#122) - @ateucher made improvements to
geojson_json
to maketype
parameter more flexible (#125)
BUG FIXES
- Fixe bug in
topojson_write
- we were writing topojson file, but also
a geojson file - we now cleanup the geojson file (#127)
geojsonio v0.4.2
BUG FIXES
- Fix package so that we load
topojson-server.js
from within the
package instead of from the web. This makes it so that the
package doesn’t make any web requests on load, which prevented package
from loading when no internet connection available. (#118)
geojsonio v0.4.0
NEW FEATURES
- Gains new functions
geo2topo
,topo2geo
,topojson_write
, andtopojson_read
for working with TopoJSON data - associated with this, we
now importgeojson
package (#24) (#100)
MINOR IMPROVEMENTS
- Updated vignette with details on the GeoJSON specification to the new
specification at https://tools.ietf.org/html/rfc7946 (#114)
geojsonio v0.3.8
MINOR IMPROVEMENTS
geojson_write
andgeojson_json
now pass...
argument through to
rgdal::writeOGR
orjsonlite::toJSON
depending on the class/method. For
those methods that use the latter, this now allows setting of thena
argument to control howNA
values are represented in json, and the
pretty
argument to control whether or the resulting json is
pretty-formated or compact (#109) (#111)- Spelling/grammar fixes, thanks @patperu ! (#106)
BUG FIXES
geojson_json
andgeojson_write
now convert unsupported classes to
their basic class before conversion and/or writing to geojson. This was most
commonly occurring with fields insf
objects calculated bysf::st_area
andsf::st_length
which were of classunits
. (#107)- Fixed a bug occurring with
GDAL
version >= 2.2.0 where the layer name in
a geojson file was not detected properly (#108)
geojsonio v0.3.2
BUG FIXES
- Fix to tests for internal fxn
convert_wgs84
to do minimal test of
output, and to conditionally test only ifsf
is available (#103)
geojsonio v0.3.0
NEW FEATURES
geojson_json
,geojson_list
, andgeojson_write
gain new S3 methods:
sf
,sfc
, andsfg
- the three classes in thesf
package (#95)geojson_json
,geojson_list
, andgeojson_write
gain two new
parameters each:convert_wgs84
(boolean) to convert to WGS84 or not (the
projection assumed for GeoJSON) andcrs
to assign a CRS if known
(#101) (#102)
MINOR IMPROVEMENTS
geojson_json()
for non-sp classes now only keeps seven decimal places
in the coordinates. This follows the default that GDAL uses.- Now namespacing base package calls for
methods
/stats
/utils
instead of importing them - Improved documentation for
method
parameter ingeojson_read
clarifying what the options are for (#93) thanks @bhaskarvk - Internal fxn
to_json
now defaults to 7 digits, which is used in
as.json
andgeojson_json
(#96)
BUG FIXES
- Fix to
geojson_read
to read correctly from a URL - in addition
to file paths (#91) (#92) thanks @lecy - Fix to
geojson_read
to read non-.geojson
extensions (#93)
thanks @bhaskarvk
geojsonio v0.2.0
MINOR IMPROVEMENTS
- Major performance improvement for
geojson_json()
- moved to
reading in json withreadr::read_file()
(#85) thanks @javrucebo ! - Now requiring explicit versions of some package dependencies
- Removed the startup message
BUG FIXES
- Changed
file_to_geojson()
to usehttr::write_disk()
instead of
download.file()
(#83) thanks @patperu
DEPRECATED AND DEFUNCT
- The two linting functions in this package,
lint()
andvalidate()
are now deprecated, and will be defunct in the next version of this
package. See the new packagegeojsonlint
on CRAN for linting
geojson functionality (#82)
geojsonio v0.1.8
NEW FEATURES
- New method
geojson_sp.json()
added togeojson_sp()
to handle json
class inputs
MINOR IMPROVEMENTS
- Added
encodin="UTF-8"
tohttr::content()
calls
BUG FIXES
geojson_write()
didn't overwrite existing files despite saying so.
New parameter added to the functionoverwrite
to specify whether to
overwrite a function or not, which defaults toTRUE
(#81)
thanks @Robinlovelace !