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

Sementation fault when searching for authority with IAU projection codes #3828

Closed
snowman2 opened this issue Jul 17, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@snowman2
Copy link
Contributor

From: pyproj4/pyproj#1319

Example of problem

projinfo 'PROJCRS["Earth (2015) / Ocentric/ Equirectangular, clon = 0",BASEGEODCRS["Earth (2015) / Ocentric", DATUM["Earth (2015)", ELLIPSOID["Earth (2015)", 6378136.6, 298.25700617732406,LENGTHUNIT["metre", 1, ID["EPSG", 9001]]], ANCHOR["Greenwich : 0"]],PRIMEM["Reference Meridian", 0, ANGLEUNIT["degree", 0.0174532925199433, ID["EPSG", 9122]]], ID["IAU", 39902, 2015]],CONVERSION["Equirectangular, clon = 0", METHOD["Equidistant Cylindrical", ID["EPSG", 1028]], PARAMETER["Latitude of 1st standard parallel", 0, ANGLEUNIT["degree",0.0174532925199433,ID["EPSG", 9122]], ID["EPSG", 8823]], PARAMETER["Longitude of natural origin", 0, ANGLEUNIT["degree",0.0174532925199433,ID["EPSG", 9122]], ID["EPSG", 8802]], PARAMETER["False easting", 0, LENGTHUNIT["metre",1,ID["EPSG", 9001]], ID["EPSG", 8806]],PARAMETER["False northing", 0, LENGTHUNIT["metre",1,ID["EPSG", 9001]], ID["EPSG", 8807]]],CS[Cartesian, 2], AXIS["Easting (E)", east, ORDER[1], LENGTHUNIT["metre", 1]], AXIS["Northing (N)", north, ORDER[2], LENGTHUNIT["metre", 1]],ID["IAU", 39912, 2015]]' --identify -o PROJ

Problem description

Command output:

PROJ.4 string:
+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=6378136.6 +rf=298.257006177324 +units=m +no_defs +type=crs
Segmentation fault (core dumped)

This may be helpful:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6d90b90 in osgeo::proj::crs::GeographicCRS::coordinateSystem() const () from ~/lib/libproj.so.25

Environment Information

  • PROJ version: 9.2.1
  • Operation System Information: Ubuntu 22

Installation method

  • conda
@snowman2 snowman2 added the bug label Jul 17, 2023
@rouault rouault self-assigned this Jul 18, 2023
rouault added a commit that referenced this issue Jul 18, 2023
Projected CRS identification: fix crash when the base CRS is a non-geographic geodetic CRS (fixes #3828)
@snowman2
Copy link
Contributor Author

Thanks @rouault 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants