[mapserver-commits] [mapserver/mapserver] 423842: Support GDAL 2.0 64bit integer fields

GitHub noreply at github.com
Wed Feb 24 03:23:45 PST 2016


  Branch: refs/heads/branch-7-0
  Home:   https://github.com/mapserver/mapserver
  Commit: 4238420939197f9a7412dcb9667613028e1a2847
      https://github.com/mapserver/mapserver/commit/4238420939197f9a7412dcb9667613028e1a2847
  Author: Even Rouault <even.rouault at mines-paris.org>
  Date:   2016-02-24 (Wed, 24 Feb 2016)

  Changed paths:
    M mapogr.cpp
    M mapogroutput.c
    M mappostgis.c
    M mapwfs.c

  Log Message:
  -----------
  Support GDAL 2.0 64bit integer fields

Now that http://trac.osgeo.org/gdal/wiki/rfc31_ogr_64 has been
committed in GDAL trunk 2.0dev, OFTInteger64 can be return as a
field type.
So :
- when reading OGR layer, support mapping OFTInteger64 to a new "Long" datatype
- when reading PostGIS layer, map INT8 columns to "Long" datatype
- in mapwfs, map "Long" to xs:long
- in OGR output code, map "Long" to OFTInteger64, if GDAL 2.0, or
  OFTReal otherwise

OGR_F_GetFID() in GDAL 2.0 returns a 64 bit integer. We just fix
warnings by casting to int, but if a 64bit FID was really returned,
we might have issues.




More information about the mapserver-commits mailing list