[gdal-dev] Can't build GDAL 3.0.X to read GML format on Linux (Ubuntu 18.04)
Michaël Landry
michael.landry at hotmail.com
Sun Feb 2 06:12:07 PST 2020
Hi,
I have successfully built and tested GDAL 3.0.1 and 3.0.4 with the SWIG java bindings and everything works fine except that I can't read GML format files. When I call the java method ogr.open( .. ), it always returns null. I investigated and i found out that I cannot open GML files with the ogrinfo app either. It seems the problem is on the native side and not on the bindings side. Here is the output of the command ogrinfo --formats for the app.
[cid:2fd2948e-3523-4798-a6b1-c35c2e941e0b]
I am using a configure script to build my makefiles. I read online at https://gdal.org/drivers/vector/gml.html that XERCES or EXPAT is needed to read gml files. I first started to build with only EXPAT and now I am building with EXPAT and XERCES, but I still can't read GML files. Here is my configuration output from the console.
C++14 support: no
LIBTOOL support: yes
LIBZ support: external
LIBLZMA support: no
ZSTD support: no
cryptopp support: no
crypto/openssl support: no
GRASS support: no
CFITSIO support: no
PCRaster support: internal
LIBPNG support: internal
DDS support: no
GTA support: no
LIBTIFF support: internal (BigTIFF=yes)
LIBGEOTIFF support: internal
LIBJPEG support: internal
12 bit JPEG: yes
12 bit JPEG-in-TIFF: yes
LIBGIF support: internal
JPEG-Lossless/CharLS: no
OGDI support: no
HDF4 support: no
HDF5 support: no
Kea support: no
NetCDF support: no
Kakadu support: no
JasPer support: no
OpenJPEG support: no
ECW support: yes
MrSID support: yes
MrSID/MG4 Lidar support: no
JP2Lura support: no
MSG support: no
EPSILON support: no
WebP support: no
cURL support (wms/wcs/...):yes
PostgreSQL support: no
LERC support: yes
MySQL support: no
Ingres support: no
Xerces-C support: yes
Expat support: yes
libxml2 support: no
Google libkml support: no
ODBC support: no
FGDB support: no
MDB support: no
PCIDSK support: internal
OCI support: no
GEORASTER support: no
SDE support: no
Rasdaman support: no
DODS support: no
SQLite support: yes
PCRE support: no
SpatiaLite support: no
RasterLite2 support: no
Teigha (DWG and DGNv8): no
INFORMIX DataBlade support:no
GEOS support: no
SFCGAL support: no
QHull support: internal
Poppler support: no
Podofo support: no
PDFium support: no
OpenCL support: no
Armadillo support: no
FreeXL support: no
SOSI support: no
MongoDB support: no
MongoCXX v3 support: no
HDFS support: no
TileDB support: no
userfaultfd support: yes
I did not disable the gml driver and the makefile says that gml is built by default. Here is the list of the available formats listed for ogr where you can see gml.
[cid:4d09603f-8ab8-4bfb-9380-3e23227760f5]
Here is the call i make to configure and to make in my script file to build GDAL.
[cid:9db827de-93bd-401f-ae0a-1a881134d61a]
I also built GDAL 3.0.1 on Windows and the command ogrinfo --formats lists all the possible formats, including gml and maybe 50+ others. Is there a way to build gdal on linux so that all the formats are also available for ogr? I joined my script file to build gdal.
Thank you for your time!
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200202/862dcc70/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build_gdal_x64.sh
Type: text/x-sh
Size: 9823 bytes
Desc: build_gdal_x64.sh
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200202/862dcc70/attachment-0001.sh>
More information about the gdal-dev
mailing list