Skip to content
Prev 5909 / 29559 Next

confusing format of shapefile, change coordinate system to long/lat

On Thu, 11 Jun 2009, Demmler J. wrote:

            
Your shapefile contains 1935 observations, and the geometric form 
(support) of the observations is as polygons. As read, they are in the 
OSGB National Grid coordinate reference system. It seems that you believe 
that the data is in geographical coordinates, but it is not. If the two 
attributes GEOEAST and GEONORTH are geographical coordinates, you need to 
extract them, cbind() them to make a two column matrix, then make a 
SpatialPoints object - watch the datum of the CRS(), it will bite - and 
spTransform() that.

But it isn't obvious that you want to do that, or that GEOEAST, GEONORTH 
are in geographical coordinates (or POPEAST, POPNORTH for that matter) - 
do summary() of the object you have read and look at those variables. Find 
out from the data provider what they are, I suspect that the GEOEAST, 
GEONORTH pair is the centroid of the polygon, and that POPEAST, POPNORTH 
is the population-weighted centroid of the polygon for the population 
distribution at a known date.

Hope this helps,

Roger