{"action":"opened","issue":{"url":"https://api.github.com/repos/proj4-bot/proj.4/issues/245","labels_url":"https://api.github.com/repos/proj4-bot/proj.4/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/proj4-bot/proj.4/issues/245/comments","events_url":"https://api.github.com/repos/proj4-bot/proj.4/issues/245/events","html_url":"https://github.com/proj4-bot/proj.4/issues/245","id":79339895,"number":245,"title":"Bad projection definition (epsg:22332) in epsg file","user":{"login":"proj4-bot","id":12542084,"avatar_url":"https://avatars.githubusercontent.com/u/12542084?v=3","gravatar_id":"","url":"https://api.github.com/users/proj4-bot","html_url":"https://github.com/proj4-bot","followers_url":"https://api.github.com/users/proj4-bot/followers","following_url":"https://api.github.com/users/proj4-bot/following{/other_user}","gists_url":"https://api.github.com/users/proj4-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/proj4-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proj4-bot/subscriptions","organizations_url":"https://api.github.com/users/proj4-bot/orgs","repos_url":"https://api.github.com/users/proj4-bot/repos","events_url":"https://api.github.com/users/proj4-bot/events{/privacy}","received_events_url":"https://api.github.com/users/proj4-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/proj4-bot/proj.4/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/proj4-bot/proj.4/labels/C:%20default","name":"C: default","color":"0000aa"},{"url":"https://api.github.com/repos/proj4-bot/proj.4/labels/P:%20minor","name":"P: minor","color":"dcffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T07:50:04Z","updated_at":"2015-05-22T07:50:04Z","closed_at":null,"body":"**Reported by pmauduit on 10 Sep 2014 08:35 UTC**\nRelying on the definition (trunk/proj/nad/epsg line 7099), EPSG:22332 is defined as:\r\n\r\n```\r\n<22332> +proj=utm +zone=32 +datum=carthage +units=m +no_defs  <>\r\n```\r\n\r\nOn http://spatialreference.org/ref/epsg/22332/proj4/, it is defined as:\r\n\r\n```\r\n+proj=utm +zone=32 +a=6378249.2 +b=6356515 +units=m +no_defs \r\n```\r\n\r\nA customer reported that he had some troubles using this projection in mapserver, his mapfile is using an EPSG:2232 as projection parameter, as follows:\r\n\r\n```\r\n    PROJECTION\r\n      \"init=epsg:22332\"\r\n    END\r\n```\r\n\r\nWe tried with proj4 version available in ubuntu (4.8.0-2ubuntu2, which provides the same epsg definition for this projection), and the following code snippet returns an error (return 1):\r\n\r\n```\r\n#include <proj_api.h>\r\n\r\nint main(int argc, char **argv) {\r\n  projPJ pj;\r\n\r\n  // spatial-reference version\r\n  // if (!(pj = pj_init_plus(\"+proj=utm +zone=32 +a=6378249.2 +b=6356515 +units=m +no_defs\"))) {\r\n  // /usr/share/proj/epsg version\r\n  if (!(pj = pj_init_plus(\"+proj=utm +zone=32 +datum=carthage +units=m +no_defs\"))) {\r\n     return 1;\r\n   }\r\n   return 0;\r\n}\r\n\r\n```\r\n\r\nUsing the one from spatialreference.org (the first one commented out in my code) fixes the problem (returns 0). Is there any problem with the epsg file about this projection ? I'm pretty new to proj4 codebase, we might be using it in a wrong way or so.\r\n\r\n\r\n\n\nMigrated-From: https://trac.osgeo.org/proj/ticket/245"}}