[gdal-dev] Which Proj.4 transforms are available in GDAL?

Even Rouault even.rouault at spatialys.com
Sun Aug 27 01:39:07 PDT 2017


On dimanche 27 août 2017 00:02:35 CEST Joaquim Luis wrote:
> >> gdaltransform -s_srs EPSG:4326 -t_srs +proj=bonne
> >> 
> >> 
> >> 
> >> ERROR 6: Failed to initialize PROJ.4 with `+proj=bonne +lon_0=0 +lat_1=0
> >> 
> >> 
> >> 
> >> +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs'.
> > 
> > I thing the issue is that lat_1=0 is invalid for bonne. Any non zero
> > value is OK
> 
> Sorry Even, but it still fails
> 
> gdaltransform -s_srs EPSG:4326 -t_srs "+proj=bonne +lat_0=1 +wktext"
> ERROR 6: Failed to initialize PROJ.4 with `+proj=bonne +lat_0=1 +wktext'.

It is lat_1 which must be non zero.

> 
> And I'm facing some other issues with the +wktext.
> 
> This GMT using proj.4 via GDAL, and it works.
> 
> grdproject lixo.grd -J+proj=sinu -Glixo2.grd
> 
> but adding +wktext makes it fail in GDAL
> 
> grdproject lixo.grd -J"+proj=sinu +wktext" -Glixo2.grd
> ERROR 6: Failed to initialize PROJ.4 with `+proj=sinu +wktext'

Perhaps due to the lack of datum/ellipsoid, if you don't have a proj_def.dat file that will 
contain the implicit one

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170827/5ad6259d/attachment.html>


More information about the gdal-dev mailing list