Skip to content

Commit

Permalink
CRAN ready
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixAU committed Nov 13, 2018
1 parent eaa9485 commit 2926e28
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: geojsonsf
Type: Package
Title: GeoJSON to Simple Feature Converter
Version: 1.2.1
Date: 2018-10-19
Date: 2018-11-19
Authors@R: c(
person("David", "Cooley", ,"[email protected]", role = c("aut", "cre"))
)
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## v1.2.1

* fixed crash when mis-specified MultiPolygon [issue 51](https://github.com/SymbolixAU/geojsonsf/issues/51)
* `df_geojson()` converts data.frame to GeoJSON

## v1.2.0
Expand Down
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A simple, low-dependency and **fast** converter between GeoJSON and Simple Featu

---

**v1.2**
**v1.2.1**

Converts

Expand All @@ -37,6 +37,7 @@ Converts
- `sf` --> GeoJSON
- `sfc` --> GeoJSON
- GeoJSON --> Well-known text
- data.frame --> GeoJSON (POINT only)

As per GeoJSON ([RFC 7946 specification)](https://tools.ietf.org/html/rfc7946#page-11), foreign members are ignored, and nested objects and arrays inside the `properties` object are converted to string/characters.

Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Simple Feature objects in R.

-----

**v1.2**
**v1.2.1**

Converts

Expand All @@ -30,6 +30,7 @@ Converts
- `sf`\> GeoJSON
- `sfc`\> GeoJSON
- GeoJSON –\> Well-known text
- data.frame –\> GeoJSON (POINT only)

As per GeoJSON ([RFC 7946
specification)](https://tools.ietf.org/html/rfc7946#page-11), foreign
Expand Down Expand Up @@ -172,10 +173,13 @@ microbenchmark(
},
times = 2
)
# Unit: seconds
# expr min lq mean median uq max neval
# geojsonsf 1.513821 1.513821 1.620952 1.620952 1.728084 1.728084 2
# sf 4.160896 4.160896 4.368904 4.368904 4.576913 4.576913 2
# Unit: milliseconds
# expr min lq mean median uq max
# geojsonsf 709.2268 709.2268 722.0626 722.0626 734.8984 734.8984
# sf 1867.6840 1867.6840 1958.7968 1958.7968 2049.9097 2049.9097
# neval
# 2
# 2
```

### Does it work?
Expand Down

0 comments on commit 2926e28

Please sign in to comment.