Re: [gdal-dev] Determining Native Data Field Type Names for a Given Layer or Driver

2017-09-27 Thread Even Rouault
On mercredi 27 septembre 2017 15:22:15 CEST Andrew Joseph wrote: > Thanks, this worked out better than I could have hoped! I used: > > final String url = "/test_data/shapefiles/myshp.shp"; > final Dataset shapefileDs = gdal.OpenEx(url); > final Vector options = new Vector<>(Arrays.as

Re: [gdal-dev] Determining Native Data Field Type Names for a Given Layer or Driver

2017-09-27 Thread Even Rouault
On mardi 26 septembre 2017 17:16:28 CEST Andrew Joseph wrote: > I'm using the GDAL Java Bindings (most recent dev version 2.3.0) and looking > to determine the native datatype of a given layer field -or at least the > default mapping of the driver. For example I have manually written code > like th

[gdal-dev] Determining Native Data Field Type Names for a Given Layer or Driver

2017-09-26 Thread Andrew Joseph
I'm using the GDAL Java Bindings (most recent dev version 2.3.0) and looking to determine the native datatype of a given layer field -or at least the default mapping of the driver. For example I have manually written code like the following for Postgres/Postgis: private static final BiMap PG_OGR