mainpktools - Support: sr #109042, pklas2img fails to build:...

 
 

sr #109042: pklas2img fails to build: conversion from 'CPLErr' to non-scalar type

Submitter:  Bas Couwenberg <sebastic>
Submitted:  Wed 18 May 2016 07:56:41 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  kempenep
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 18 May 2016 09:05:19 PM UTC, comment #1: 

return type of setProjection was changed in 2.6.7 from std::string to CPLErr. The string returned was only used in debug mode as info and has been removed in the current version.

Patch has been applied, thanks.

Pieter kempeneers <kempenep>
Group administrator
Wed 18 May 2016 07:56:41 AM UTC, original submission:  

With the switch to CMake in 2.6.7 pklas2img was no longer being built, so I added the attached patch to the pktools Debian package.

Unfortunately the build then fails with:

/build/pktools-2.6.7/src/apps/pklas2img.cc:290:60: error: conversion from 'CPLErr' to non-scalar type 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' requested
     string projectionString=outputWriter.setProjectionProj4(projection_opt[0]);
                                                            ^
This is with GDAL 2.1.0 on Debian unstable.

Bas Couwenberg <sebastic>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #37194:  pklas2img.patch added by sebastic (281B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kempenep (Posted a comment)
  • -email is unavailable- added by sebastic (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-20 kempenep StatusNone Done
    2016-05-18 kempenep Assigned toNone kempenep
        Open/ClosedOpen Closed
    2016-05-18 sebastic Attached File- Added pklas2img.patch, #37194

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code