Skip to content

Commit

Permalink
valid array #95
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed May 30, 2022
1 parent 0550dbe commit 9f6ed4d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: geojsonsf
Type: Package
Title: GeoJSON to Simple Feature Converter
Version: 2.0.1
Date: 2020-10-02
Version: 2.0.3
Date: 2022-05-31
Authors@R: c(
person("David", "Cooley", ,"[email protected]", role = c("aut", "cre"))
)
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

## v2.0.3

* Validated LineString array [issue95](https://github.com/SymbolixAU/geojsonsf/issues/95)

## v2.0.2

* Fixed UTF-8 encoded strings on Windows [issue 90](https://github.com/SymbolixAU/geojsonsf/issues/90)

## v2.0.1

* links to geometries library
Expand Down
2 changes: 2 additions & 0 deletions inst/include/geojsonsf/sf/sfg/geojson_sfg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ namespace sfg {

for( row = 0; row < n; row++ ) {
const Value& coord_array = line_array[ row ];
geojsonsf::validate::validate_array( coord_array );

R_xlen_t n_points = coord_array.Size();

if( n_points <= 1 ) {
Expand Down

0 comments on commit 9f6ed4d

Please sign in to comment.