Thanks Jukka. So the "init=esri" is a known issue and not supported when using proj.db, but "init=epsg" is supported still.
I'm not suggesting we remove "init=" for projections that are actually stored in init files, but do you think we should guide users to use "EPSG:4326" rather than "init=ESPG:4326" for all projections that are found in proj.db? Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Thu, Aug 24, 2023, at 2:14 PM, Rahkonen Jukka wrote: > Hi, > > There is a ticket https://github.com/OSGeo/PROJ/issues/1895 saying the > +init esri: is not supported even when +init is enabled. > > The deprecation of the init files is not mentioned for example here > https://proj.org/en/9.2/resource_files.html#init-files. > > -Jukka Rahkonen- > > > > -----Alkuperäinen viesti----- > Lähettäjä: MapServer-dev <[email protected]> Puolesta > Seth G > Lähetetty: torstai 24. elokuuta 2023 13.52 > Vastaanottaja: MapServer Devs <[email protected]> > Aihe: [MapServer-dev] PROJECTION block strings and init= > > Hi all, > > I just ran into an issue when using the following projection block > returned "msProcessProjection(): Projection library error. proj error > "Invalid value for an argument" for "init=esri:54052": > > PROJECTION > "init=esri:54052" > END > > However using the following without the "init=" works: > > PROJECTION > "esri:54052" > END > > This is confusing as "esri:54052" is in the proj.db, and for EPSG code > both approaches work e.g. "init=epsg:4326" and "epsg:4326" are both > fine. > > As noted in the PROJ docs [1] the "init=" PROJ strings were deprecated in > PROJ6. > > So a couple of questions: > > 1. Should we update the msautotests and MapServer docs to remove > "init=" from PROJECTION blocks? > However I think the "init=" needs to be kept to support custom > projections not in proj.db as used in [2] 2. Should we consider having > a minimum required version of PROJ for a future release of MapServer? > This would allow backwards compatible code to be removed. > > > Seth > > [1] > https://proj.org/en/9.2/development/migration.html#backward-incompatibilities > [2] https://github.com/MapServer/MapServer/pull/6795 > > -- > web:https://geographika.net/ & https://mapserverstudio.net/ > twitter: @geographika > _______________________________________________ > MapServer-dev mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-dev _______________________________________________ MapServer-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-dev
