Giter VIP home page Giter VIP logo

wellknown's Introduction

wellknown

Project Status: Unsupported

This package has been archived. The former README is now in README-not.

wellknown's People

Contributors

jeroen avatar maelle avatar sckott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wellknown's Issues

Support for EMPTY geometries

from wikipedia page

Empty geometries which contain no coordinates can be specified by using the symbol EMPTY after the type name.

Possibly change interface

via r-spatial/sf#12

e.g., do

list(Point = c(116.4, 52.2))

instead of the current

list('type' = 'Point', 'coordinates' = c(116.4, 45.2))

it's still early days in the pkg, so not too bad to change if that's a better UI

fix for cran email

These show warnings (look in the pkg.Rcheck directory) of the form data length [193] is not a sub-multiple or multiple of the number of rows [32]

It is unlikely but possible this does what was intended, but showing
warnings in examples/vignettes does not give confidence to would-be users.

If the warning is coming from a package you use, please liaise with the
other maintainer or change your usage.

Please correct before 2021-06-05 to safely retain your package on CRAN.

Functions to create WKT from R objects

Including

  • vectors
  • lists
  • data.frames
  • matrix

done for those done below

For each of

  • point()
  • multipoint()
  • linestring()
  • multilinestring()
  • polygon()
  • multipolygon()
  • geometrycollection()

No equivalents for these in GeoJSON

  • triangle()
  • tin()
  • circularstring()
  • compoundcurve()
  • curvepolygon()
  • multicurve()
  • multisurface()
  • curve()
  • surface()
  • polyhedralsurface()

wkt validator

No good solution right now for validating wkt strings. Could use geos C library, but way to heavy just for validating. There doesn't seem to be any web APIs for this. The Python client geomet simply throws an error if the string doesn't parse.

Could work on a R validator - then reimplement in C if super slow.

Case sensitivity in wkt2geojson()

Sometimes WKT objects are written in lower case. However wkt2geojson only works with uppercase. Is there any reason for that ?

str <- "POINT (-116.4000000000000057 45.2000000000000028)"
wkt2geojson(str)

gives a result, but :

str <- "Point (-116.4000000000000057 45.2000000000000028)"
 wkt2geojson(str)

returns an error message.

Account for 3d/4d WKT

from r-spatial/sf#12

point(data.frame(1, 2, 3)) should generate point z(1 2 3) or point m(1 2 3), depending on (and indicating what) the 3rd dim means, but not point (1 2 3)

point(data.frame(1, 2, 3))
[1] "POINT (1.0000000000000000 2.0000000000000000 3.0000000000000000)"
  • Add parameter for z vs. m if 3rd dimension encountered

coordinates from wkt2geojson() are not numeric

Coordinates from wkt2geojson() are character instead of numeric, which causes problems when using the results with leaflet.

str <- "POLYGON ((100 0.1, 101.1 0.3, 101 0.5, 100 0.1),(103.2 0.2, 104.8 0.2, 100.8 0.8, 103.2 0.2))"
as_json(wkt2geojson(str))
{
  "type": "Feature",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        ["100.0000000000000000", "0.1000000000000000"],
        ["101.0999999999999943", "0.3000000000000000"],
        ["101.0000000000000000", "0.5000000000000000"],
        ["100.0000000000000000", "0.1000000000000000"]
      ],
      [
        ["103.2000000000000028", "0.2000000000000000"],
        ["104.7999999999999972", "0.2000000000000000"],
        ["100.7999999999999972", "0.8000000000000000"],
        ["103.2000000000000028", "0.2000000000000000"]
      ]
    ]
  }
} 

NOTE with devtools::check on Windows 10

NOTE with devtools::check on Windows 10. Probably related to this

https://stackoverflow.com/questions/64402688/information-on-o-files-for-x64-is-not-available-note-on-r-package-checks-using

> devtools::check()
------------------------------------------------------------------------------------------------------------------------
i Installed roxygen2 version (7.1.2) doesn't match required version (7.1.1)
x check() will not re-document this package
------------------------------------------------------------------------------------------------------------------------
-- Building ----------------------------------------------------------------------------------------------- wellknown --
Setting env vars:
* CFLAGS    : -Wall -pedantic
* CXXFLAGS  : -Wall -pedantic
* CXX11FLAGS: -Wall -pedantic
------------------------------------------------------------------------------------------------------------------------
√  checking for file 'C:\Users\ftw712\Desktop\wellknown/DESCRIPTION' (362ms)
-  preparing 'wellknown': (1.4s)
√  checking DESCRIPTION meta-information ... OK
-  cleaning src
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
   Removed empty directory 'wellknown/tests/othertests'
-  building 'wellknown_0.7.4.tar.gz'
   
-- Checking ----------------------------------------------------------------------------------------------- wellknown --
Setting env vars:
* _R_CHECK_CRAN_INCOMING_REMOTE_: FALSE
* _R_CHECK_CRAN_INCOMING_       : FALSE
* _R_CHECK_FORCE_SUGGESTS_      : FALSE
* NOT_CRAN                      : true
-- R CMD check ---------------------------------------------------------------------------------------------------------
-  using log directory 'C:/Users/ftw712/AppData/Local/Temp/RtmpgTlvQc/wellknown.Rcheck' (418ms)
-  using R version 4.1.2 (2021-11-01)
-  using platform: x86_64-w64-mingw32 (64-bit)
-  using session charset: ISO8859-1
-  using options '--no-manual --as-cran'
√  checking for file 'wellknown/DESCRIPTION' ...
-  this is package 'wellknown' version '0.7.4'
-  package encoding: UTF-8
√  checking package namespace information ...
√  checking package dependencies (3.9s)
√  checking if this is a source package ... 
√  checking if there is a namespace
√  checking for executable files (2.5s)
√  checking for hidden files and directories ... 
√  checking for portable file names ... 
√  checking serialization versions ...
√  checking whether package 'wellknown' can be installed (5m 8.7s)
√  checking installed package size ... 
√  checking package directory (671ms)
√  checking for future file timestamps (381ms)
√  checking DESCRIPTION meta-information (844ms)
√  checking top-level files ...
√  checking for left-over files ...
√  checking index information ...
√  checking package subdirectories ... 
√  checking R files for non-ASCII characters ... 
√  checking R files for syntax errors ... 
-  loading checks for arch 'i386'
√  checking whether the package can be loaded (1.3s)
√  checking whether the package can be loaded with stated dependencies (890ms)
√  checking whether the package can be unloaded cleanly (1s)
√  checking whether the namespace can be loaded with stated dependencies (1.3s)
√  checking whether the namespace can be unloaded cleanly (1s)
-  loading checks for arch 'x64'
√  checking whether the package can be loaded (674ms)
√  checking whether the package can be loaded with stated dependencies (467ms)
√  checking whether the package can be unloaded cleanly (574ms)
√  checking whether the namespace can be loaded with stated dependencies (445ms)
√  checking whether the namespace can be unloaded cleanly (450ms)
√  checking dependencies in R code (890ms)
√  checking S3 generic/method consistency (871ms)
√  checking replacement functions (576ms)
√  checking foreign function calls (880ms)
√  checking R code for possible problems (6.8s)
√  checking Rd files (654ms)
√  checking Rd metadata ... 
√  checking Rd line widths ... 
√  checking Rd cross-references (445ms)
√  checking for missing documentation entries (524ms)
√  checking for code/documentation mismatches (2s)
√  checking Rd \usage sections (1.6s)
√  checking Rd contents (507ms)
√  checking for unstated dependencies in examples (883ms)
√  checking contents of 'data' directory ... 
√  checking data for non-ASCII characters ... 
√  checking LazyData
√  checking data for ASCII and uncompressed saves ... 
√  checking line endings in C/C++/Fortran sources/headers ... 
√  checking line endings in Makefiles
√  checking compilation flags in Makevars (2.2s)
√  checking for GNU extensions in Makefiles ...
√  checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ...
√  checking use of PKG_*FLAGS in Makefiles ... 
√  checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... 
√  checking pragmas in C/C++ headers and code ... 
√  checking compilation flags used ... 
N  checking compiled code (1m 0.6s)
   Note: information on .o files for i386 is not available
   Note: information on .o files for x64 is not available
   File 'C:/Users/ftw712/AppData/Local/Temp/RtmpgTlvQc/wellknown.Rcheck/wellknown/libs/i386/wellknown.dll':
     Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
     Found 'exit', possibly from 'exit' (C), 'stop' (Fortran)
     Found 'printf', possibly from 'printf' (C)
   File 'C:/Users/ftw712/AppData/Local/Temp/RtmpgTlvQc/wellknown.Rcheck/wellknown/libs/x64/wellknown.dll':
     Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
     Found 'exit', possibly from 'exit' (C), 'stop' (Fortran)
     Found 'printf', possibly from 'printf' (C)
   
   Compiled code should not call entry points which might terminate R nor
   write to stdout/stderr instead of to the console, nor use Fortran I/O
   nor system RNGs. The detected symbols are linked into the code but
   might come from libraries and not actually be called.
   
   See 'Writing portable packages' in the 'Writing R Extensions' manual.
-  checking examples (765ms)
√  running examples for arch 'i386' (4.5s)
√  running examples for arch 'x64' (5.5s)
√  checking for unstated dependencies in 'tests' ... 
-  checking tests
-- running tests for arch 'i386'      
√  Running 'test-all.R' (4.2s)
-- running tests for arch 'x64'       (453ms)
√  Running 'test-all.R' (7.1s)
√  checking for non-standard things in the check directory
√  checking for detritus in the temp directory ...
   
   See
     'C:/Users/ftw712/AppData/Local/Temp/RtmpgTlvQc/wellknown.Rcheck/00check.log'
   for details.
   
   
-- R CMD check results ---------------------------------------------------------------------------- wellknown 0.7.4 ----
Duration: 7m 13.5s

> checking compiled code ... NOTE
  Note: information on .o files for i386 is not available
  Note: information on .o files for x64 is not available
  File 'C:/Users/ftw712/AppData/Local/Temp/RtmpgTlvQc/wellknown.Rcheck/wellknown/libs/i386/wellknown.dll':
    Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
    Found 'exit', possibly from 'exit' (C), 'stop' (Fortran)
    Found 'printf', possibly from 'printf' (C)
  File 'C:/Users/ftw712/AppData/Local/Temp/RtmpgTlvQc/wellknown.Rcheck/wellknown/libs/x64/wellknown.dll':
    Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
    Found 'exit', possibly from 'exit' (C), 'stop' (Fortran)
    Found 'printf', possibly from 'printf' (C)
  
  Compiled code should not call entry points which might terminate R nor
  write to stdout/stderr instead of to the console, nor use Fortran I/O
  nor system RNGs. The detected symbols are linked into the code but
  might come from libraries and not actually be called.
  
  See 'Writing portable packages' in the 'Writing R Extensions' manual.

0 errors √ | 0 warnings √ | 1 note x
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] rstudioapi_0.13   magrittr_2.0.1    rcmdcheck_1.4.0   usethis_2.1.3     devtools_2.4.3    pkgload_1.2.3    
 [7] R6_2.5.1          rlang_0.4.12      fastmap_1.1.0     fansi_0.5.0       tools_4.1.2       pkgbuild_1.2.0   
[13] xopen_1.0.0       sessioninfo_1.2.1 utf8_1.2.2        cli_3.1.0         withr_2.4.2       ellipsis_0.3.2   
[19] remotes_2.4.1     digest_0.6.28     rprojroot_2.0.2   tibble_3.1.6      lifecycle_1.0.1   crayon_1.4.2     
[25] processx_3.5.2    purrr_0.3.4       callr_3.7.0       vctrs_0.3.8       fs_1.5.0          ps_1.6.0         
[31] curl_4.3.2        testthat_3.1.0    memoise_2.0.1     glue_1.5.0        cachem_1.0.6      compiler_4.1.2   
[37] pillar_1.6.4      desc_1.4.0        prettyunits_1.1.1 pkgconfig_2.0.3 

Export centroid fxn

to make it easy to get a centroid - the internal function centroid() is currently set up to take in geojson as a list, should make it general to use with WKT or geojson as list or json

from #14

Compilation errors with release candidate for BH package 1.75.0

As mentioned in issue 76 at the BH repo, its new version creates compilation issues with package wellknown. I have not had time to really dive into this, but this may be caused by changes to Boost geometry---which also required a switch to C++14 for a few other packages. Here it is less clear but something changed with the definition of point.

Please reach out if you have any questions, and a big Thank You! for maintaining wellknown on CRAN.

(Sorry about the copy-and-paste error on the initial title. This was issue five of five I had to file and this slipped. My bad.)

Binary WKT

Still not implemented, not sure how yet

Maintenance status / help needed?

👋 @jhnwllr!

Do you still intend to become this package's maintainer?

If so do you need any help? For instance an aspect where you'd appreciate some tips, contributions, a PR review? Do you need an invitation to our friendly Slack workspace?

geojson2wkt fails with jsons for MultiLinestring and Polygons

I have geojson for Polygons that I can't convert to WKT anymore. The documentation for geojson2wkt says obj can be of the types (list/json/character), but the function doesn't work when the geojson is of a multilinestring or polygon.

# POINT
point <- list("type" = "Point", "coordinates" = list(100.0, 0.0)) %>% 
  jsonlite::toJSON(digits = NA, auto_unbox = TRUE)
wellknown::geojson2wkt(point)
# returns "POINT (100   0)"

# LINESTRING
linestring <- list("type" = "LineString",
                   "coordinates" =  list(c(100.0, 0.0), c(101.0, 1.0) )) %>% 
                     jsonlite::toJSON(digits = NA, auto_unbox = TRUE)
wellknown::geojson2wkt(linestring)
# returns "LINESTRING (100 0, 101 1)"

# MULTIPOINT
multipoint <-  list("type" = "MultiPoint",
                    "coordinates" = list(c(100.0, 0.0), c(101.0, 1.0) )) %>% 
  jsonlite::toJSON(digits = NA, auto_unbox = TRUE)
wellknown::geojson2wkt(multipoint)
# returns "MULTIPOINT ((100 0), (101 1))"

# MULTILINESTRING
multilinestring <- list("type" = "MultiLineString",
                        "coordinates" = list(
                          list(c(100.0, 0.0), c(101.0, 1.0),
                          list(c(102.0, 2.0), c(103.0, 3.0))
                          ))) %>% 
  jsonlite::toJSON(digits = NA, auto_unbox = TRUE)
wellknown::geojson2wkt(multilinestring) 
# Fails with the message " expecting matrices for all 'coordinates' elements"

# POLYGON
poly <- list(type = 'Polygon',
             coordinates = list(
               list(c(100.0, 0.0), c(101.0, 0.0), c(101.0, 1.0), c(100.0, 1.0), c(100.0, 0.0))
             )) %>% jsonlite::toJSON(digits = NA, auto_unbox = TRUE)
wellknown::geojson2wkt(poly, simplifyMatrix = TRUE)
# also fails

Even if I pass the args simplifyMatrix = TRUE, I get the error message your top most element must be a list..I can't figure out the right way to convert polygon geojsons to WKT

cran checks windows oldrel

trace

* installing *source* package 'wellknown' ...
** package 'wellknown' successfully unpacked and MD5 sums checked
** using staged installation
** libs

*** arch - i386
make[1]: Entering directory `/cygdrive/d/temp/RtmpuKyM9L/R.INSTALL1792c612d2acf/wellknown/src-i386'
rm -Rf wellknown.dll RcppExports.o bounding_wkt.o centroid.o reverse.o utils.o validate.o wkt_bounding.o wkt_coords.o wkt_correct.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/g++   -std=gnu++14  -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG  -I"d:/RCompile/CRANpkg/lib/3.6/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.6/BH/include"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2  -c RcppExports.cpp -o RcppExports.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/g++   -std=gnu++14  -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG  -I"d:/RCompile/CRANpkg/lib/3.6/Rcpp/include" -I"d:/RCompile/CRANpkg/lib/3.6/BH/include"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2  -c bounding_wkt.cpp -o bounding_wkt.o
In file included from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry.hpp:17:0,
                 from def.h:3,
                 from utils.h:2,
                 from bounding_wkt.cpp:3:
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/geometry.hpp:27:125: note: #pragma message: CAUTION: Boost.Geometry in Boost 1.73 deprecates support for C++03 and will require C++14 from Boost 1.75 onwards.
 BOOST_PRAGMA_MESSAGE("CAUTION: Boost.Geometry in Boost 1.73 deprecates support for C++03 and will require C++14 from Boost 1.75 onwards.")
                                                                                                                             ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/geometry.hpp:28:97: note: #pragma message: CAUTION: Define BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING to suppress this message.
 BOOST_PRAGMA_MESSAGE("CAUTION: Define BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING to suppress this message.")
                                                                                                 ^
In file included from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/math/constants/constants.hpp:11:0,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/util/math.hpp:30,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/core/radian_access.hpp:33,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/geometry.hpp:51,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry.hpp:17,
                 from def.h:3,
                 from utils.h:2,
                 from bounding_wkt.cpp:3:
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/math/tools/cxx03_warn.hpp:99:75: note: #pragma message: CAUTION: One or more C++11 features were found to be unavailable
 BOOST_PRAGMA_MESSAGE("CAUTION: One or more C++11 features were found to be unavailable")
                                                                           ^
In file included from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/math/constants/constants.hpp:11:0,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/util/math.hpp:30,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/core/radian_access.hpp:33,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/geometry.hpp:51,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry.hpp:17,
                 from def.h:3,
                 from utils.h:2,
                 from bounding_wkt.cpp:3:
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/math/tools/cxx03_warn.hpp:100:126: note: #pragma message: CAUTION: Compiling Boost.Math in pre-C++11 conformance modes is now deprecated and will be removed from March 2021.
 BOOST_PRAGMA_MESSAGE("CAUTION: Compiling Boost.Math in pre-C++11 conformance modes is now deprecated and will be removed from March 2021.")
                                                                                                                              ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/math/tools/cxx03_warn.hpp:101:93: note: #pragma message: CAUTION: Define BOOST_MATH_DISABLE_DEPRECATED_03_WARNING to suppress this message.
 BOOST_PRAGMA_MESSAGE("CAUTION: Define BOOST_MATH_DISABLE_DEPRECATED_03_WARNING to suppress this message.")
                                                                                             ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/math/tools/cxx03_warn.hpp:102:96: note: #pragma message: CAUTION: This message was generated due to the define: BOOST_NO_CXX11_THREAD_LOCAL
 BOOST_PRAGMA_MESSAGE("CAUTION: This message was generated due to the define: " BOOST_MATH_CXX03_WARN_REASON)
                                                                                                ^
In file included from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray.hpp:45:0,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/rtree/node/node.hpp:24,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/rtree.hpp:64,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/within/multi_point.hpp:35,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/within/implementation.hpp:41,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp:25,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/covered_by.hpp:24,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp:32,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/buffer/buffer_inserter.hpp:29,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/buffer.hpp:41,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/geometry.hpp:63,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry.hpp:17,
                 from def.h:3,
                 from utils.h:2,
                 from bounding_wkt.cpp:3:
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:131:13: error: 'is_trivially_copyable' is not a member of 'std'
             std::is_trivially_copyable
             ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:112:12: error: parse error in template argument list
     : std::integral_constant
            ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:134:18: error: expected '{' before '::' token
                 >::value
                  ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:135:9: error: expected initializer before '>' token
         >
         ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:153:13: error: 'is_trivially_copyable' is not a member of 'std'
             std::is_trivially_copyable
             ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:141:12: error: parse error in template argument list
     : std::integral_constant
            ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:156:18: error: expected '{' before '::' token
                 >::value
                  ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:157:9: error: expected initializer before '>' token
         >
         ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp: In function 'void boost::geometry::index::detail::varray_detail::uninitialized_fill(I, I, const DisableTrivialInit&)':
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:483:46: error: 'is_trivially_constructible' is not a member of 'std'
     uninitialized_fill_dispatch(first, last, std::is_trivially_constructible<value_type>(), disable_trivial_init);     // may throw
                                              ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:483:88: error: expected primary-expression before '>' token
     uninitialized_fill_dispatch(first, last, std::is_trivially_constructible<value_type>(), disable_trivial_init);     // may throw
                                                                                        ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:483:90: error: expected primary-expression before ')' token
     uninitialized_fill_dispatch(first, last, std::is_trivially_constructible<value_type>(), disable_trivial_init);     // may throw
                                                                                          ^
In file included from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray.hpp:45:0,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/rtree/node/node.hpp:24,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/rtree.hpp:64,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/within/multi_point.hpp:35,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/within/implementation.hpp:41,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp:25,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/covered_by.hpp:24,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp:32,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/detail/buffer/buffer_inserter.hpp:29,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/algorithms/buffer.hpp:41,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/geometry.hpp:63,
                 from d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry.hpp:17,
                 from def.h:3,
                 from utils.h:2,
                 from bounding_wkt.cpp:3:
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp: In function 'void boost::geometry::index::detail::varray_detail::construct(const DisableTrivialInit&, I)':
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:509:13: error: 'is_trivially_constructible' is not a member of 'std'
             std::is_trivially_constructible<value_type>::value
             ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:509:13: error: 'is_trivially_constructible' is not a member of 'std'
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:509:55: error: template argument 2 is invalid
             std::is_trivially_constructible<value_type>::value
                                                       ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:510:13: error: qualified-id in declaration before '&&' token
             &&
             ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:514:34: error: there are no arguments to 'dont_init' that depend on a template parameter, so a declaration of 'dont_init' must be available [-fpermissive]
     construct_dispatch(dont_init(), pos);                                                // may throw
                                  ^
d:/RCompile/CRANpkg/lib/3.6/BH/include/boost/geometry/index/detail/varray_detail.hpp:514:34: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[1]: *** [bounding_wkt.o] Error 1
make[1]: Leaving directory `/cygdrive/d/temp/RtmpuKyM9L/R.INSTALL1792c612d2acf/wellknown/src-i386'
ERROR: compilation failed for package 'wellknown'
* removing 'd:/Rcompile/CRANpkg/lib/3.6/wellknown'
* restoring previous 'd:/Rcompile/CRANpkg/lib/3.6/wellknown'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.