Hi,<br><br>I Have a problem with a psp object.<br><br>I can't plot it, neither perform a pointsOnLines calculation on it.<br><br>---<br>Here is what I obtain with my different operations:<br>> track <- readOGR("voie.shp", "voie")<br>
OGR data source with driver: ESRI Shapefile <br>Source: "voie.shp", layer: "voie"<br>with 1 features and 14 fields<br>Feature type: wkbLineString with 2 dimensions<br><br>> track.psp <- as(track, "psp")<br>
Message d'avis :<br>In as.psp.SpatialLinesDataFrame(from) : 13 columns of data frame discarded<br><br>> plot(track.psp)<br>Erreur dans image.default(c(893999.767449278, 895777.422954333), c(Inf, -Inf : <br> 'x' and 'y' values must be finite and non-missing<br>
<br>#plot(track) is OK<br><br>> pts <- pointsOnLines(track.psp, eps=50)<br>Erreur dans ppp(x = x, y = y, window = win) : <br> all coordinate values are NA or NaN<br>---<br><br>Any help would be appreciated.<br><br>
The related SpatialLinesDataFrame track object is attached to this mail if you'd like to have a look..<br><br>Thanks!<br>