Now working in main branch, removed references to old trunk branch.
Removed geojsonlint and all linting facilities and code. linting_opts()
is deprecated.
New maintainer Michael Sumner.
ndgeo_read()
(#39)ndgeo_write()
and ndgeo_read()
. ndgeo_write()
leverages writeLines()
to write to disk, while ndgeo_read()
leverages a modified version of jsonlite::stream_in()
to stream in line by line. ndgeo_write()
works only with the geojson package classes geofeature
and geofeaturecollection
(#31) (#38)as.geojson()
generic gains a new method for sf
, see showMethods('as.geojson')
to see methods available. The method is only available if you have sf
installed (#30) thanks @cpsievertas.geojson()
now throw warning message from jsonlite
when json is invalid to help user sort out what's wrong with their JSON when the input is not valid JSON (#32)asc()
to use stringi::stri_replace_all()
if installed, and if not fall back to using gsub()
tibble::data_frame()
with tibble::tibble()
throughout packageprint.geojson()
to not calculate and print the bounding box because for very large geojson can take a very long time. Also changed to precomputing everything so printing geojson objects is fast (#36)geo_bbox()
to handle negative coordinates (#33) (#34) thanks very much @aolesto_geojson
convert GeoJSON character
string to the approriate GeoJSON class by detecting GeoJSON
type automatically. this makes some other tasks easier
(#28) (#29)as.geojson
function to do print summary on
all GeoJSON types well, not just GeometryCollection
and FeatureCollection (#27)properties_add()
to give back the same class object
as that given to the function. In addition, correctly adds properties
to FeatureCollection objects as well. (#22)print.featurecollection()
that was not calculating and
printing number of features correctly (#24)