[GRASS-dev] [GRASS GIS] #2724: gdal-grass: Wrong return type in ogrgrass.h

#2724: gdal-grass: Wrong return type in ogrgrass.h
------------------------+-------------------------
Reporter: mkrapp | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Default | Version: unspecified
Keywords: gdal-grass | CPU: Unspecified
Platform: MacOSX |
------------------------+-------------------------
{{{GetFeatureCount( int )}}} in {{{ogrgrass.h}}} returns {{{int}}} but
should return {{{GIntBig}} instead. Error message when compiling the
source ({{{gdal-grass-1.4.3.tar.gz}}}) is:

{{{
In file included from ogrgrassdriver.cpp:30:
./ogrgrass.h:54:25: error: virtual function 'GetFeatureCount' has a
different return type ('int') than the function it overrides
       (which has return type 'GIntBig' (aka 'long long'))
     int GetFeatureCount( int );
     ~~~ ^

Find a patch attached
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2724&gt;
GRASS GIS <https://grass.osgeo.org>

#2724: gdal-grass: Wrong return type in ogrgrass.h
--------------------------+-------------------------
  Reporter: mkrapp | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Default | Version: unspecified
Resolution: | Keywords: gdal-grass
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Changes (by mkrapp):

* Attachment "gdal-grass.patch" added.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2724&gt;
GRASS GIS <https://grass.osgeo.org>

#2724: gdal-grass: Wrong return type in ogrgrass.h
--------------------------+-------------------------
  Reporter: mkrapp | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.1
Component: Default | Version: unspecified
Resolution: | Keywords: gdal-grass
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Changes (by neteler):

* milestone: => 7.0.1

Comment:

Thanks for the patch.

However, I'm afraid that this is the wrong bugtracker for the request: it
is a patch for the GDAL software which is tracked at

https://trac.osgeo.org/gdal/

Would you mind to submit it there? AFAIK I cannot reassign it to that
tracker myself.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2724#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2724: gdal-grass: Wrong return type in ogrgrass.h
--------------------------+-------------------------
  Reporter: mkrapp | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.1
Component: Default | Version: unspecified
Resolution: invalid | Keywords: gdal-grass
       CPU: Unspecified | Platform: MacOSX
--------------------------+-------------------------
Changes (by rouault):

* status: new => closed
* resolution: => invalid

Comment:

Neither a GRASS nor a GDAL bug. This error comes from using an old gdal-
grass archive when compiling with GDAL 2.0. Use
http://download.osgeo.org/gdal/2.0.0/gdal-grass-2.0.0.tar.gz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2724#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>