jbaileyh / geogrid

Turning geospatial polygons into regular or hexagonal grids. For other similar functionality see the tilemaps package https://github.com/kaerosen/tilemaps
Other
393 stars 31 forks source link

polygons too few #10

Closed wegmann closed 6 years ago

wegmann commented 6 years ago

Hello,

how do I change the command if I get that I have too few (small) polygons? thanks, Martin

for (i in 1:6){

sassalley commented 6 years ago

Hi Martin,

A couple of things just to help me troubleshoot

  1. Do you know how many separate polygons your input file has?
  2. Could you share it?
  3. Have other learning rates worked for you (e.g. 0.03)

Best

@sassalley

wegmann commented 6 years ago

136 polygons and you can access them here: https://bitbucket.org/EAGLE_MSc/steigerwald

I changed the learning rates but no success yet.

thanks, Martin

sassalley commented 6 years ago

Thanks Martin,

I think the issue is the start size for the gradient descent. Because the file has lot's of small buildings, it's different to what I tested it with (I need to add tests).

For now, try changing the start_size in original_details to 10.

original_details$start_size <- 10

After doing this I was able to loop through the grid generation.

Best,

Joe

(if possible - let me know if this works)

sassalley commented 6 years ago

Closing this for now as commit dff0ef2 should have helped. Please re-open if not.