Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

六边形栅格没有布满bounds区域 #94

Open
FvNCCR228 opened this issue Mar 30, 2024 · 0 comments
Open

六边形栅格没有布满bounds区域 #94

FvNCCR228 opened this issue Mar 30, 2024 · 0 comments

Comments

@FvNCCR228
Copy link

大佬您好
我使用您的库时发现

当我设置栅格为六边形hexa时,如 (2),比如经纬度为 104.1545..., 30.8061...(这是在 self.bounds 范围内的,如 (1)),它对应的栅格id为 (21, -13, -34) ,这运行 (3) 得出。然后我发现这个id并不在 self.grid 范围中

self.bounds = [103.90, 30.52, 104.26, 30.81]   (1)
self.grid, self.params = tbd.area_to_grid(self.bounds, accuracy=1200, method='hexa')   (2)
tbd.GPS_to_grid(104.15457922898818, 30.80613863513823, self.params)   (3)

请问大佬这个六边形栅格是不是没有布满整个bounds区域

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant