[R-sig-Geo] Resoultion in LAT/LON when using WorldHires

2007-06-16 Thread Huse, Irene
Dear Geo-Users, This is embarrassing. Please forgive me, there is something wrong in the conversion of the positions, not the map resolution. Please look away from the previous message! Br Irene Dr. Irene Huse <>< F

[R-sig-Geo] Resoultion in LAT/LON when using WorldHires

2007-06-16 Thread Huse, Irene
Hi R-geo users, I do hope this is a simple task for you, for me, a beginner, it's very difficult. When I plot my positions (of recaptured fish) in a map, the resolution is completely wrong, and the points "clings up in lines" (horizontal and vertical), and looks very funny. The positions I try t

Re: [R-sig-Geo] newbie sp question

2007-06-16 Thread David Hugh-Jones
Thank you for this help. I realised after writing this that indeed, spatstat won't work because I have world-scale data in unprojected latitude/longitude form... so my distance measure is no use. This leads to more questions - is there a canonical way to convert projections from within "sp"? My cu

Re: [R-sig-Geo] Eliminate duplicate vertices in a SpatialPolygonsDataFrame object

2007-06-16 Thread Don MacQueen
Another post to R-sig-geo gave me a hint! I now have a way to remove duplicate adjacent vertices. Here's an outline for a simple single polygon case. If the SpatialPollygonsDataFrame includes more than one polygon then some looping will be needed. ## tmpn is a SpatialPolygonsDataFrame with onl

Re: [R-sig-Geo] newbie sp question

2007-06-16 Thread Roger Bivand
On Fri, 15 Jun 2007, David Hugh-Jones wrote: > Hi R-spatialists, > > I'm working with a big list of polygons (imported into R with package > sp as a SpatialPolygonDataFrame, and I am trying to calculate minimum > distances between each pair of polygons. For this, I need to get the > lines for each

Re: [R-sig-Geo] Eliminate duplicate vertices in a SpatialPolygonsDataFrame object

2007-06-16 Thread Roger Bivand
On Fri, 15 Jun 2007, Don MacQueen wrote: > I have managed to create several SpatialPoygonsDataFrame objects in > which the polygons have duplicate vertices. That is, there are > duplicate rows in the matrix in "coords" slot of the object. > > In most cases, the object has just one polygon, but in