setcoordMTX: cut map rectangel to small cell

Description Usage Arguments Value Examples

Description

for example rectangel=matrix(c(119.232566,26.131948,119.47288,25.941584),byrow = T,nrow = 2), but amap and baidumap can only search POI in a small cell ,so we need to cut big one to many samll cell

Usage

1
setcoordMTX(rectangel, grid = 5000, sep = ";")

Arguments

rectangel

matrix:

grid

numeic: samll cell length

sep

see detail

Value

a data.frame

Examples

1
2
3
4
5
6
7
## Not run: 
## rectangle

rectangel=matrix(c(119.281777,26.08224,119.324092,26.059111),byrow = T,nrow = 2)
df_grid=setcoordMTX(rectangel=rectangel,grid=5000,sep=';')

## End(Not run)

daigazi/bamapr documentation built on May 14, 2019, 3:28 p.m.