[gdal-dev] Q: GFS Type for int64/bigint?

Even Rouault even.rouault at spatialys.com
Fri Feb 28 04:45:41 PST 2020


Just,

> I use ogr2ogr (GML to PG) with a .gfs file with Type specs.  I need to
> map a GML integer value to eventually a BigInt in PostgreSQL. I see
> String, Integer, Real etc. "Integer" maps to "integer" type in
> PostgreSQL but I need to map to a PG BigInt.
> 
> What Type do I need to specify in the .gfs file?

Use
<Type>Integer</Type>
<SubType>Integer64</SubType>

See
https://github.com/OSGeo/gdal/blob/7f942653f570f3e99cf0273e979272190cc6c312/gdal/data/ruian_vf_v1.gfs#L60

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list