Geographic data abstraction library GDAL/OGR has got a new very important driver – NextGIS Web. The new driver is available starting GDAL 2.4. NextGIS Web (NGW) – is a server GIS, our main product that allows to organize storage, visualization and management of your team’s geodata. NGW is used by thousands of users around the world in our nextgis.com cloud and lots of different organizations on their premises.
GDAL/OGR is a de-facto standard in GIS field and NGW support opens broad avenues for bringing its support to many products using GDAL. At the same time we’re going to update our own products to use this driver instead of custom implementations. The products to be updated are:
New GDAl is already used in NextGIS QGIS available for Mac OS, Ubuntu and Windows.
Main driver features:
- Get information about NGW resources: vector, raster layers, styles, services.
- Obtain (download) data itself (both raster and vector)
- Update (edit) data (vector and raster starting GDAL 2.4.1)
More of NGW support on GDAL website.
More of NGW raster support on GDAL website.
See examples of new functionality in action below:
There is a LNK2019 error when compiled with GDAL/OGR library.
ogrsf_frmts.lib(ogrregisteral.obj), RegisterOGRNGW, OGRRegisterAllInternal
Hi, where did you get sources? All builds and unit tests passed fine:
If you have specific OS or compiler, please report you issue to GDAL official repository (https://github.com/OSGeo/gdal/issues) or gdal-dev mailing list
Building GDAL-2.4.0 on Windows10 platform using nmake generates the same LNK2019 error. I am using the Visual Studio 2017 Developer Command Prompt.
link /nologo /dll /INCLUDE:_OSRValidate /INCLUDE:_OPTGetProjectionMethods /INCLUDE:_OGR_G_GetPointCount /INCLUDE:_OGRRegisterAll /INCLUDE:_GDALSimpleImageWarp@36 /INCLUDE:_GDALReprojectImage@48 /INCLUDE:_GDALComputeMedianCutPCT@32 /INCLUDE:_GDALDitherRGB2PCT@28 /INCLUDE:_OCTNewCoordinateTransformation@8 port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib gnm\*.obj gnm\gnm_frmts\o\*.obj third_party\o\*.obj apps\commonutils.obj apps\gdalinfo_lib.obj apps\gdal_translate_lib.obj apps\gdalwarp_lib.obj apps\ogr2ogr_lib.obj apps\gdaldem_lib.obj apps\nearblack_lib.obj apps\gdal_grid_lib.obj apps\gdal_rasterize_lib.obj apps\gdalbuildvrt_lib.obj legacy_stdio_definitions.lib odbc32.lib odbccp32.lib user32.lib ws2_32.lib kernel32.lib psapi.lib gcore\Version.res /out:gdal204.dll /implib:gdal_i.lib
Creating library gdal_i.lib and object gdal_i.exp
ogrsf_frmts.lib(ogrregisterall.obj) : error LNK2019: unresolved external symbol _RegisterOGRNGW referenced in function _OGRRegisterAllInternal
gdal204.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: ‘”C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\link.EXE”‘ : return code ‘0x460’
Any ideas as to what has gone wrong? Nothing was modified.
This is subject for issue at https://github.com/OSGeo/gdal/issues.
But before creating the issue, please check your build environment and you have cleaned all previous builds artifacts. As I see at appveyor (https://ci.appveyor.com/project/OSGeo/gdal) builds on Windows including NGW driver and it unittests passed fine.
I’ve done a bit more digging and it seems that ogr/ogrsf_frmts/ngw is not being built and ogrngwdriver.cpp holds the RegisterOGRNGW() function.
This could just be a makefile issue but I’m not sure how to fix it. Could you let me know how to best fix this issue?