[GRASS-dev] [GRASS GIS] #3169: use external shapelib

GRASS GIS trac at osgeo.org
Thu Sep 29 23:57:00 PDT 2016


#3169: use external shapelib
--------------------------+---------------------------------
  Reporter:  opoplawski   |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.2.1
 Component:  Database     |    Version:  svn-releasebranch72
Resolution:               |   Keywords:  shapelib, OGR
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------
Changes (by mmetz):

 * component:  LibVector => Database


Comment:

 Replying to [comment:2 neteler]:
 > Replying to [ticket:3169 opoplawski]:
 > > Is there any reason at this point to not compile against an external
 shapelib?
 >
 > AFAIR we picked shapelib many years ago from
 http://shapelib.maptools.org/ (points to
 http://download.osgeo.org/shapelib/). The last release appears to be from
 2012 since it then became part of OGR
 (https://trac.osgeo.org/gdal/browser/branches/2.1/gdal/ogr/ogrsf_frmts/shape).
 >
 > Here is what we changed after that (for some years we kept it in sync
 with OGR, then lost track due to the needed effort). For the procedure,
 see
 >
 https://trac.osgeo.org/grass/browser/grass/trunk/lib/external/shapelib/README
 >
 > The real question is: cannot we call the shape driver via OGR interface
 and drop our own copy?

 GRASS needs lib/external/shapelib to read and write dbf files. We can not
 use the OGR interface easily without rewriting db/drivers/dbf because
 shapefil.h is not installed with OGR. Also, GRASS does not need the full
 shapelib, only those parts relevant for dbf RW. An external shapelib is
 usually not installed because shapefiles can be accessed with the generic
 OGR interface.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3169#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list