Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different behaviour across platforms: pj_init_plus #274

Closed
proj4-bot opened this issue May 22, 2015 · 1 comment
Closed

different behaviour across platforms: pj_init_plus #274

proj4-bot opened this issue May 22, 2015 · 1 comment

Comments

@proj4-bot
Copy link

Reported by rsbivand on 19 May 2015 19:00 UTC
In R (rgdal::checkCRSArgs) we are seeing behaviour that differs across platforms for calls to pj_init_plus. We can replicate the Debian/Fedora 64-bit behaviour (back to 4.7) that:

$ echo "5 50" | proj +proj=utm +zone=32

fails with errno -13: major axis or radius = 0 or not given. This is equivalent to:

> library(sp)
> library(rgdal)
> CRS("+proj=utm +zone=32")

which also fails on these platforms for 4.9.1 - obviously no tag giving an ellps value. For our Windows 32 and 64-bit builds, Solaris, and OSX, we see no error; on Windows for 4.9.1, we see +ellps=WGS84 being appended to the string returned by pj_get_def().

Where is the +ellps=WGS84 coming from? Why do different platforms behave differently for the same 4.9.1 released source code, with some appending a valid, default +ellps, and others choosing bum_call?

Somewhat puzzled,

Roger

Migrated-From: https://trac.osgeo.org/proj/ticket/274

@proj4-bot proj4-bot added this to the 4.9.1 milestone May 22, 2015
hobu added a commit that referenced this issue May 27, 2015
This was referenced Aug 30, 2015
sebastic added a commit to sebastic/PROJ that referenced this issue Sep 6, 2015
Adding proj_def.dat to pkgdata_DATA in ef4c492 is not sufficient to also
have the file included in the tarballs generated via `make dist-all`.
@sebastic
Copy link
Contributor

sebastic commented Sep 6, 2015

On 2015-05-20 14:04:06 @hobu wrote in Trac #274 comment 2:

I have fixed this in ef4c492. Please test that it fixes the issue.

I will issue a new release after this is confirmed as fixed.

With the changes in #296 & #297 I can successfully generate release tarballs that include nad/proj_def.dat again.

See also the Missing proj_def.dat in 4.9.1 release thread on the proj list.

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Sep 14, 2015
Note that the PVALUE rename is not an ABI change and there is no revbump.

4.9.2 Release Notes
-------------------

 o proj_def.dat was missing from source distribution
   see OSGeo/PROJ#274 for more detail

 o Update Geodesic library from GeographicLib

 o Remove setlocale() use in pj_init_ctx()

 o Renamed PVALUE in pj_param.c to prevent clash with Windows
@rouault rouault closed this as completed Nov 9, 2015
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Oct 28, 2016
* proj_def.dat was missing from source distribution see
  OSGeo/PROJ#274 for more detail
* Update Geodesic library from GeographicLib
* Remove setlocale() use in pj_init_ctx()
* Renamed PVALUE in pj_param.c to prevent clash with Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants