Apologies for the mis-send above.

To clarify and summarize: there may be 3 steps
You need to define the coordinate system of your UTM data via proj4string:
      proj4string(cap.coords.sp) <- CRS("")
     The string in CRS defines whaat your GPS used: it might be as minimal
as
      "+proj=longlat +ellps=GRS80" but it might include +datum=.
Second, if that string is not exactly the same as for your polygons, you
need to reproject the points to the projection of the polygons using
spTransform:
      poly.proj <- proj4string(basin.polygons)
      cap.coords.sp2 <- spTransform(cap.coords.sp,CRS(poly.proj))
Then third, you can use over to extract the attributes of the containing
polygons for each point:
point.basins <- over(cap.coords.sp2,basin.polygons)



On Thu, May 23, 2013 at 12:50 PM, Tom Philippi <tephilippi@gmail.com> wrote:

> Chris--
> To clarify and summarize:
> You need to define the coordinate system of your UTM data via proj4string:
>       proj4string(cap.coords.sp) <- CRS("")
>
>
>
> On Thu, May 23, 2013 at 12:30 PM, Edzer Pebesma <
> edzer.pebesma@uni-muenster.de> wrote:
>
>>
>>
>> On 05/23/2013 07:08 PM, Chris Waigl wrote:
>> >
>> >>
>> >> Hi Roger- Getting closer to fixing the problem. You were correct with
>> the
>> >> proj4string differing. The fish capture coordinates are "NA" and the
>> Basins
>> >> are "+proj=longlat +ellps=WGS84." So now I am trying to convert the
>> points.
>> >> Here is the code I input:
>> >>
>> >> cap.coords.sp<-spTransform(cap.coords.sp,CRS("+proj=longlat"))
>> >
>> > Would this work:
>> >
>> > proj4string(cap.coords.sp) <- "+proj=longlat +datum=WGS84"
>>
>> this will only change the proj4string, but not reproject (and warn about
>> this fact).
>>
>> You have to use spTransform with the string containing the datum.
>>
>> >
>> > (Or maybe "+proj=longlat +ellps=WGS84" -- not sure why I use +datum and
>> you use +ellps.)
>> >
>> > Best regards,
>> >
>> > Chris Waigl
>> > _______________________________________________
>> > R-sig-Geo mailing list
>> > R-sig-Geo@r-project.org
>> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>> >
>>
>> --
>> Edzer Pebesma
>> Institute for Geoinformatics (ifgi), University of Münster
>> Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
>> 83 33081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>

	[[alternative HTML version deleted]]

