R package for downloading OpenStreetMap data
at main 36 lines 1.3 kB view raw
1/*************************************************************************** 2 * Project: osmdata 3 * File: get-bbox.h 4 * Language: C++ 5 * 6 * osmdata is free software: you can redistribute it and/or modify it under 7 * the terms of the GNU General Public License as published by the Free 8 * Software Foundation, either version 3 of the License, or (at your option) 9 * any later version. 10 * 11 * osmdata is distributed in the hope that it will be useful, but WITHOUT ANY 12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 14 * details. 15 * 16 * You should have received a copy of the GNU General Public License along with 17 * osm-router. If not, see <https://www.gnu.org/licenses/>. 18 * 19 * Author: Mark Padgham 20 * E-Mail: mark.padgham@email.com 21 * 22 * Description: Header for rcpp_get_bbox 23 * 24 * Limitations: 25 * 26 * Dependencies: none (rapidXML header included in osmdata) 27 * 28 * Compiler Options: -std=c++11 29 ***************************************************************************/ 30 31#pragma once 32 33#include <Rcpp.h> 34 35Rcpp::NumericMatrix rcpp_get_bbox (double xmin, double xmax, double ymin, double ymax); 36Rcpp::NumericVector rcpp_get_bbox_sf (double xmin, double xmax, double ymin, double ymax);