Note: Make sure you have Docker installed on the machine.
- Download the code files for the GDAL driver.
- Unzip the file.
- Open Powershell command prompt in Windows.
- Replace the provided Package\docker\Ubuntu-full folder, at the <Path to GDAL code>\Docker\.
- Change directory to < Path to GDAL code >\Docker\ubuntu-full Path.
-
From the Command prompt, run this command: docker build -t gdal_build.
This command creates an Ubuntu 24 image for gdal_build.
-
Once the image is created and process is completed, run this command: docker run -d -it --name NewName -v "":/gdal <ID of the image gdal_build name created in Step 6>.
The above step will start the created Docker image on your machine.
- Copy the package ogr\ogrsf_frmts \EFAL folder provided in to the \ogr\ogrsf_frmts.
-
Change the ogrsf_frmts.h and CMakeLists.txt as follows:
-
CMakeLists.txt: Add this code in the file ogr_optional_driver(efal "MapInfo EFAL") along with other formats.
-
ogrsf_frmts.h: Add this code in the file void CPL_DLL RegisterOGREFAL();
-
- Copy the Package\frmts\MRR folder provided at the path <GDAL Root Path of code>\frmts.
-
Edit the code files: gdalallregister.cpp, driver.ini, gdal_frmts.h, and CmakeLists.txt
- change gdalallregister.cpp to /frmts/gdalallregister.cpp
- add this code to /frmts/gdalallregister.cpp
#ifdef FRMT_mrr GDALRegister_MRR(); #endif
- add this code to /frmts/gdalallregister.cpp
- change driver.ini to /frmts/driver.ini
- add these entries to /frmts/driver.ini
- MRR
- EFAL
- add these entries to /frmts/driver.ini
- change gdal_frmts.h to /gcore/gdal_frmts.h
- add this code to /gcore/gdal_frmts.h
void CPL_DLL GDALRegister_mrf(void);
- add this code to /gcore/gdal_frmts.h
- change CmakeLists.txt to /frmts/CmakeLists.txt
- Make a new entry
- gdal_optional_format(mrr "MapInfo Multi Resolution Raster")
- Make a new entry
- change gdalallregister.cpp to /frmts/gdalallregister.cpp
-
<Code Path>/docker/ubuntu-full/build
CmakeCache.txt file make changes for:
-
GDAL_ENABLE_DRIVER_MRR_PLUGIN:BOOL=ON
-
OGR_ENABLE_DRIVER_EFAL_PLUGIN:BOOL=ON
-
-
On the Docker, execute the following:
- Change directory /gdal/docker/ubuntu-full
- Run
sh bh-gdal.sh
This will build the code and place the output at <GDAL Root Path of code>/docker/ubuntu-full/build. - The built code will have gdal_MRR and ogr_EFAL available as plugin.