Home > Software design >  Mapview displays only one polygon instead of many with different colors
Mapview displays only one polygon instead of many with different colors

Time:07-24

I have this shapefile which you can download from enter image description here

CodePudding user response:

Every row seems to be that same shape, but some have a little bit cut out. So your plot is showing all of them on top of each other. Picking some at random:

par(mfrow=c(2,2))
plot(subs$geometry[1])
plot(subs$geometry[29])
plot(subs$geometry[129])
plot(subs$geometry[329])

enter image description here

If that's not what you expect then go back to whoever you got the data from and take it up with them, if you created it and its not what you expect then you need to fixup your processing pipeline.

  • Related