Skip to content

readOGR not reading in prj file?

5 messages · Edzer Pebesma, Vinh Nguyen, Roger Bivand

#
On Apr 6, 2016 10:27 AM, "Edzer Pebesma" <edzer.pebesma at uni-muenster.de>
wrote:
Here's the content of the prj file:
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]

Thanks so much for your help.
#
On 06/04/16 19:33, Vinh Nguyen wrote:
When I replace the .prj file of an arbitrary shapefile with these
contents, it gets read well. Have you tried with current R (3.2.4) and
rgdal (1.1.7)?
#
On Wed, Apr 6, 2016 at 10:42 AM, Edzer Pebesma
<edzer.pebesma at uni-muenster.de> wrote:
Thanks Edzer, upgrading rgdal to 1.1.8 works.  Consider this issue close.

-- Vinh
#
On Wed, 6 Apr 2016, Vinh Nguyen wrote:

            
For completeness, which OS was this, and how was GDAL installed - do you 
recall what GDAL version was reported when rgdal loaded?

If Windows CRAN binary, it is possible that the underlying GDAL version of 
the spatial reference code and EPSG databases changed - there were no 
relevant changes in rgdal itself, I think.

Roger

  
    
#
On Apr 7, 2016 12:58 AM, "Roger Bivand" <Roger.Bivand at nhh.no> wrote:
recall what GDAL version was reported when rgdal loaded?
of the spatial reference code and EPSG databases changed - there were no
relevant changes in rgdal itself, I think.
Windows. I don't have the log with gdal version. Your assessment is
probably correct. Thanks.