@@ -67,7 +67,7 @@ void unset_error_handler(void)
67
67
CPLSetErrorHandler ((CPLErrorHandler)__err_silent);
68
68
}
69
69
70
- // [[Rcpp::export]]
70
+ // [[Rcpp::export(rng=false) ]]
71
71
void CPL_gdal_init ()
72
72
{
73
73
CPLSetErrorHandler ((CPLErrorHandler)__err_handler);
@@ -77,15 +77,15 @@ void CPL_gdal_init()
77
77
}
78
78
79
79
// #nocov start
80
- // [[Rcpp::export]]
80
+ // [[Rcpp::export(rng=false) ]]
81
81
void CPL_gdal_cleanup_all ()
82
82
{
83
83
OGRCleanupAll ();
84
84
OSRCleanup ();
85
85
}
86
86
// #nocov end
87
87
88
- // [[Rcpp::export]]
88
+ // [[Rcpp::export(rng=false) ]]
89
89
const char * CPL_gdal_version (const char * what = " RELEASE_NAME" )
90
90
{
91
91
return GDALVersionInfo (what);
@@ -193,7 +193,7 @@ OGRSpatialReference *OGRSrs_from_crs(Rcpp::List crs) {
193
193
return dest;
194
194
}
195
195
196
- // [[Rcpp::export]]
196
+ // [[Rcpp::export(rng=false) ]]
197
197
Rcpp::List CPL_crs_parameters (Rcpp::List crs) {
198
198
199
199
char *cp = NULL ;
@@ -370,7 +370,7 @@ int srid_from_crs(Rcpp::List crs) {
370
370
return (ret_val);
371
371
}
372
372
373
- // [[Rcpp::export]]
373
+ // [[Rcpp::export(rng=false) ]]
374
374
Rcpp::LogicalVector CPL_crs_equivalent (Rcpp::List crs1, Rcpp::List crs2) {
375
375
376
376
OGRSpatialReference *srs1 = OGRSrs_from_crs (crs1);
@@ -504,7 +504,7 @@ Rcpp::List sfc_from_ogr(std::vector<OGRGeometry *> g, bool destroy = false) {
504
504
return ret;
505
505
}
506
506
507
- // [[Rcpp::export]]
507
+ // [[Rcpp::export(rng=false) ]]
508
508
Rcpp::List CPL_crs_from_input (Rcpp::CharacterVector input) {
509
509
OGRSpatialReference *ref = new OGRSpatialReference;
510
510
handle_axis_order (ref);
@@ -519,7 +519,7 @@ Rcpp::List CPL_crs_from_input(Rcpp::CharacterVector input) {
519
519
return crs;
520
520
}
521
521
522
- // [[Rcpp::export]]
522
+ // [[Rcpp::export(rng=false) ]]
523
523
Rcpp::List CPL_roundtrip (Rcpp::List sfc) { // for debug purposes
524
524
std::vector<OGRGeometry *> g = ogr_from_sfc (sfc, NULL );
525
525
for (size_t i = 0 ; i < g.size (); i++) {
@@ -531,7 +531,7 @@ Rcpp::List CPL_roundtrip(Rcpp::List sfc) { // for debug purposes
531
531
return sfc_from_ogr (g, true ); // destroys g;
532
532
}
533
533
534
- // [[Rcpp::export]]
534
+ // [[Rcpp::export(rng=false) ]]
535
535
Rcpp::List CPL_circularstring_to_linestring (Rcpp::List sfc) { // need to pass more parameters?
536
536
std::vector<OGRGeometry *> g = ogr_from_sfc (sfc, NULL );
537
537
std::vector<OGRGeometry *> out (g.size ());
@@ -543,7 +543,7 @@ Rcpp::List CPL_circularstring_to_linestring(Rcpp::List sfc) { // need to pass mo
543
543
return sfc_from_ogr (out, true ); // destroys out;
544
544
}
545
545
546
- // [[Rcpp::export]]
546
+ // [[Rcpp::export(rng=false) ]]
547
547
Rcpp::List CPL_multisurface_to_multipolygon (Rcpp::List sfc) { // need to pass more parameters?
548
548
std::vector<OGRGeometry *> g = ogr_from_sfc (sfc, NULL );
549
549
std::vector<OGRGeometry *> out (g.size ());
@@ -560,7 +560,7 @@ Rcpp::List CPL_multisurface_to_multipolygon(Rcpp::List sfc) { // need to pass mo
560
560
return sfc_from_ogr (out, true ); // destroys out;
561
561
}
562
562
563
- // [[Rcpp::export]]
563
+ // [[Rcpp::export(rng=false) ]]
564
564
Rcpp::List CPL_compoundcurve_to_linear (Rcpp::List sfc) { // need to pass more parameters?
565
565
std::vector<OGRGeometry *> g = ogr_from_sfc (sfc, NULL );
566
566
std::vector<OGRGeometry *> out (g.size ());
@@ -572,7 +572,7 @@ Rcpp::List CPL_compoundcurve_to_linear(Rcpp::List sfc) { // need to pass more pa
572
572
return sfc_from_ogr (out, true ); // destroys out;
573
573
}
574
574
575
- // [[Rcpp::export]]
575
+ // [[Rcpp::export(rng=false) ]]
576
576
Rcpp::List CPL_curve_to_linestring (Rcpp::List sfc) { // need to pass more parameters? #nocov start
577
577
std::vector<OGRGeometry *> g = ogr_from_sfc (sfc, NULL );
578
578
std::vector<OGRGeometry *> out (g.size ());
@@ -583,7 +583,7 @@ Rcpp::List CPL_curve_to_linestring(Rcpp::List sfc) { // need to pass more parame
583
583
return sfc_from_ogr (out, true ); // destroys out;
584
584
} // #nocov end
585
585
586
- // [[Rcpp::export]]
586
+ // [[Rcpp::export(rng=false) ]]
587
587
Rcpp::LogicalVector CPL_can_transform (Rcpp::List src, Rcpp::List dst) {
588
588
if (src.size () != 2 || dst.size () != 2 )
589
589
return false ;
@@ -605,7 +605,7 @@ Rcpp::LogicalVector CPL_can_transform(Rcpp::List src, Rcpp::List dst) {
605
605
return false ;
606
606
}
607
607
608
- // [[Rcpp::export]]
608
+ // [[Rcpp::export(rng=false) ]]
609
609
Rcpp::List CPL_transform (Rcpp::List sfc, Rcpp::List crs,
610
610
Rcpp::NumericVector AOI, Rcpp::CharacterVector pipeline, bool reverse = false ,
611
611
double desired_accuracy = -1.0 , bool allow_ballpark = true ) {
@@ -674,7 +674,7 @@ Rcpp::List CPL_transform(Rcpp::List sfc, Rcpp::List crs,
674
674
return ret;
675
675
}
676
676
677
- // [[Rcpp::export]]
677
+ // [[Rcpp::export(rng=false) ]]
678
678
Rcpp::NumericVector CPL_transform_bounds (Rcpp::NumericVector bb, Rcpp::List crs_dst,
679
679
int densify_pts = 21 ) {
680
680
@@ -722,7 +722,7 @@ Rcpp::NumericVector CPL_transform_bounds(Rcpp::NumericVector bb, Rcpp::List crs_
722
722
return ret;
723
723
}
724
724
725
- // [[Rcpp::export]]
725
+ // [[Rcpp::export(rng=false) ]]
726
726
Rcpp::List CPL_wrap_dateline (Rcpp::List sfc, Rcpp::CharacterVector opt, bool quiet = true ) {
727
727
728
728
std::vector <char *> options = create_options (opt, quiet);
@@ -735,7 +735,7 @@ Rcpp::List CPL_wrap_dateline(Rcpp::List sfc, Rcpp::CharacterVector opt, bool qui
735
735
return sfc_from_ogr (ret, true ); // destroys ret;
736
736
}
737
737
738
- // [[Rcpp::export]]
738
+ // [[Rcpp::export(rng=false) ]]
739
739
Rcpp::List CPL_get_gdal_drivers (int dummy) {
740
740
741
741
int ndr = GetGDALDriverManager ()->GetDriverCount ();
@@ -766,7 +766,7 @@ Rcpp::List CPL_get_gdal_drivers(int dummy) {
766
766
Rcpp::Named (" vsi" ) = vsi_attr);
767
767
}
768
768
769
- // [[Rcpp::export]]
769
+ // [[Rcpp::export(rng=false) ]]
770
770
Rcpp::List CPL_sfc_from_wkt (Rcpp::CharacterVector wkt) {
771
771
std::vector<OGRGeometry *> g (wkt.size ());
772
772
OGRGeometryFactory f;
@@ -781,13 +781,13 @@ Rcpp::List CPL_sfc_from_wkt(Rcpp::CharacterVector wkt) {
781
781
return sfc_from_ogr (g, true );
782
782
}
783
783
784
- // [[Rcpp::export]]
784
+ // [[Rcpp::export(rng=false) ]]
785
785
Rcpp::LogicalVector CPL_gdal_with_geos () {
786
786
bool withGEOS = OGRGeometryFactory::haveGEOS ();
787
787
return Rcpp::LogicalVector::create (withGEOS);
788
788
}
789
789
790
- // [[Rcpp::export]]
790
+ // [[Rcpp::export(rng=false) ]]
791
791
Rcpp::LogicalVector CPL_axis_order_authority_compliant (Rcpp::LogicalVector authority_compliant) {
792
792
if (authority_compliant.size () > 1 )
793
793
Rcpp::stop (" argument authority_compliant should have length 0 or 1" ); // #nocov
0 commit comments