From a2fd4206924fedc96c3fd12607fb61e84c4841c0 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 26 Dec 2018 12:34:47 +0100 Subject: Remove PJ_OBJ type since it is now merged into PJ --- scripts/create_c_api_projections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/create_c_api_projections.py b/scripts/create_c_api_projections.py index 897212ee..76b54e1e 100755 --- a/scripts/create_c_api_projections.py +++ b/scripts/create_c_api_projections.py @@ -122,7 +122,7 @@ for sectiondef in compounddef.iter('sectiondef'): decl += " const char* linear_unit_name, double linear_unit_conv_factor" decl += ")" - header.write("PJ_OBJ PROJ_DLL *" + decl + ";\n\n") + header.write("PJ PROJ_DLL *" + decl + ";\n\n") briefdescription = func.find('briefdescription/para').xpath("normalize-space()") briefdescription = briefdescription.replace("Instanciate ", "Instanciate a ProjectedCRS with ") @@ -136,7 +136,7 @@ for sectiondef in compounddef.iter('sectiondef'): if has_angle: cppfile.write(" * Angular parameters are expressed in (ang_unit_name, ang_unit_conv_factor).\n") cppfile.write(" */\n") - cppfile.write("PJ_OBJ* " + decl + "{\n"); + cppfile.write("PJ* " + decl + "{\n"); cppfile.write(" SANITIZE_CTX(ctx);\n"); cppfile.write(" try {\n"); if has_linear: -- cgit v1.2.3 From 0e0e0e475414ddeb75e0e140d8a3381a431036d9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 28 Dec 2018 11:00:50 +0100 Subject: Rename proj_obj_XXX as proj_XXX and PJ_OBJ_XXX as PJ_XXX --- scripts/create_c_api_projections.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/create_c_api_projections.py b/scripts/create_c_api_projections.py index 76b54e1e..e99c36a8 100755 --- a/scripts/create_c_api_projections.py +++ b/scripts/create_c_api_projections.py @@ -96,7 +96,7 @@ for sectiondef in compounddef.iter('sectiondef'): shortName = name[len('create'):] c_shortName = snake_casify(shortName) - decl = "proj_obj_create_conversion_" + decl = "proj_create_conversion_" decl += c_shortName decl += "(\n" decl += " PJ_CONTEXT *ctx,\n" @@ -157,7 +157,7 @@ for sectiondef in compounddef.iter('sectiondef'): cppfile.write(", Scale(" + param[1] + ")") cppfile.write(");\n") - cppfile.write(" return proj_obj_create_conversion(conv);\n") + cppfile.write(" return proj_create_conversion(conv);\n") cppfile.write(" } catch (const std::exception &e) {\n"); cppfile.write(" proj_log_error(ctx, __FUNCTION__, e.what());\n") cppfile.write(" }\n") @@ -165,7 +165,7 @@ for sectiondef in compounddef.iter('sectiondef'): cppfile.write("}\n") test_cppfile.write("{\n") - test_cppfile.write(" auto projCRS = proj_obj_create_conversion_" + c_shortName + "(\n") + test_cppfile.write(" auto projCRS = proj_create_conversion_" + c_shortName + "(\n") test_cppfile.write(" m_ctxt") for param in params: test_cppfile.write(", 0") -- cgit v1.2.3