[R-sig-Geo] Background shapefile does not appear

MacQueen, Don macqueen1 at llnl.gov
Thu Apr 9 15:44:43 CEST 2015


My first guess is that your step "matched the geo-coding" did not succeed.
But with no details it's hard to say.

Is the NYC school district shapefile also in lat/long?
If you apply the proj4string() function to both of your objects in R, do
you get the same result?
If you apply the bbox() function (bounding box) to both of them, do the
bounding boxes at least overlap?

Of course they are not shapefiles anymore after they have been loaded into
R. Is the school point location data a SpatialPointsDataFrame, and the NYC
school district a SpatialPolygonsDataFrame object?

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 4/8/15, 12:03 PM, "Suga, Taeko" <ts2789 at tc.columbia.edu> wrote:

>Dear All,
>
>I have created a school-point-location shapefile, using the school point
>location data (longitude & latitude) from the National Center for
>Education
>Statistics, Common Core Data system.
>
>I matched the geo-coding of the shapefile with the NYC school district
>shapefile created by the NYC Department of City Planning.
>
>Then, I try to over lay the point location to the NYC school district
>shapefile, but failed. The district shape file did not appear.
>
>Hope someone could help me.
>Thank you!
>
>Taeko Suga
>Ed.M. student
>Teachers College
>
>	[[alternative HTML version deleted]]
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list