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

Tile has more than four diagonal neighbours #1

Open
spono opened this issue Apr 7, 2021 · 4 comments
Open

Tile has more than four diagonal neighbours #1

spono opened this issue Apr 7, 2021 · 4 comments

Comments

@spono
Copy link

spono commented Apr 7, 2021

Hi,
I'm working on a pretty basic land cover classification procedure for aerial RGB imagery and it seems that your package comes in help. The provided tiles are appr. 3.5x3.1 km in size with buffer included.
Unfortunately tileDetector returns this error. Any idea where to check for the issue?

> file.list = list.files( img.folder, pattern = "\\.tif$", full.names = TRUE)
> ts = tileDetector(file.list)
Error in FUN(X[[i]], ...) : Tile 3 has more than four diagonal neighbours
@andrew-plowright
Copy link
Owner

Yeah tileDetector is pretty shaky. Any chance I could take a look at the data to debug? (You can replace the raster values if it's confidential, I just need the raster extents and resolutions)

@spono
Copy link
Author

spono commented Apr 7, 2021

great, thanks.
I had to aggregate resolution from 0.20 cm to 1 m but it shouldn't be an issue for the aim.

@andrew-plowright
Copy link
Owner

Thanks for sending those along. Unfortunately, tileDetector isn't flexible enough to detect irregularly placed tiles like these. As you can see in this plot, although they loosely form a grid, their actual placement and their degree of overlap isn't consistent.

image

@spono
Copy link
Author

spono commented Apr 8, 2021

mmm, weird...I didn't realise it was THAT irregular...BTW, thanks for checking: I'll dig a bit more!

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

2 participants