[PROJ] [PROJ 6.0.0] Different behaviors for creating a transformation of type EPSG:9616
Didier Richard
Didier.Richard at ign.fr
Tue Apr 30 07:02:50 PDT 2019
1.- Does not work either with "urn:ogc:def:coordinateOperation:IGNF::SG1250". I guess because of the authority ?
2.- My bad. It works with PJ_CATEGORY_COORDINATE_OPERATION and returns PJ_TYPE_TRANSFORMATION ! Thx a lot
3.- Ok, I thought that operations located in other_transformation table were of type PJ_TYPE_OTHER_COORDINATE_OPERATION. Do you have an example of an operation for which the type is PJ_TYPE_OTHER_COORDINATE_OPERATION ? I found nothing in the test/ directory checking this.
--
RICHARD Didier - Chef du Centre de Compétences Technologies des Systèmes d'Information
http://fr.linkedin.com/pub/didier-richard/98/2a3/a8/ - https://www.osgeo.org/member/didier/
IGN/Direction des Sciences et Technologies de l'Information/ENSG Géomatique
6/8 avenue Blaise Pascal - BP Champs-sur-Marne - 77455 MARNE-LA-VALLÉE CEDEX 2
Tél : +33 (0) 1 43 98 83 23
________________________________________
De : Even Rouault [even.rouault at spatialys.com]
Envoyé : mardi 30 avril 2019 15:50
À : proj at lists.osgeo.org
Cc : Didier Richard
Objet : Re: [PROJ] [PROJ 6.0.0] Different behaviors for creating a transformation of type EPSG:9616
On mardi 30 avril 2019 13:06:43 CEST Didier Richard wrote:
> Hi all,
>
> Still on library testing, I try to create using different methods a
> transformation that exists in the proj.db, in other_transformation table
> (IGNF:TSG1250 which is EPSG:9616 method) :
>
> 1.- using proj_create : fails ;
Yes, expected. See
https://proj4.org/development/reference/functions.html#c.proj_create
Short syntax AUTH:CODE in proj_create() will try only CRS objects.
Use urn:ogc:def:coordinateOperation:AUTH::CODE for coordinate operations
> 2.- using proj_create_from_database : succeed but got a type different from
> the one given to the function ;
Misuse of the API. You should pass a PJ_CATEGORY value, not a PJ_TYPE one;
Unfortunately a C compiler doesn't warn about that, wheras a C++ errors out.
So use PJ_CATEGORY_COORDINATE_OPERATION
(the fact that it returned something is completely undefined behavior. it
might have crashed as well)
> 3.- using proj_create_from_name : succeed
> but got a type which is not PJ_TYPE_OTHER_COORDINATE_OPERATION (expected).
Yes, returns PJ_TYPE_TRANSFORMATION=22 as expected
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the PROJ
mailing list