Skip to content
Prev 19678 / 29559 Next

Projected SpatialLinesDataFrame has a segment spanning the globe

Thanks much to you both--Edzer's suggestion does work to remove the offending
vertex. Based on the input I managed an alternative, which is to correct the
original vertex to not pass 180 degrees longitude (it's currently at
180.0000004, which is apparently the problem):

ind = which(coastsCoarse at lines[[94]]@Lines[[1]]@coords[,1] > 180)
coastsCoarse at lines[[94]]@Lines[[1]]@coords[ind,1] = 180

Cheers,
Ryan



Edzer Pebesma-2 wrote

            

        
            

            

        
        
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Projected-SpatialLinesDataFrame-has-a-segment-spanning-the-globe-tp7585010p7585018.html
Sent from the R-sig-geo mailing list archive at Nabble.com.