It would easy to compile it with mex and gdal. First, ensure gdal (and its development headers/libs) is installed via apt-get/yum/dnf/pacman/self-compiling. Then call
$MATLABROOT/bin/mex -v -lgdal mexgdal.c
The provided makefile assumes MATLAB 2017a and gdal are installed at system default position. Please change them accordingly.
Pre-built binrary (Win10 x64, MATLAB 2015a, VC++ 2010, GDAL 2.1.3) is provided. Dependencies:
- GDAL 2.1.3 (VS2010, x64 build) from GISInternals. A direct download link is here.
- Install. Add the installation dir into PATH system environmental variables.
- Add GDAL_DATA=%GDALInstallDir%/gdal_data and PROJ_LIB=%GDALInstallDir%/projlib variable to the system environmental variables
- (Optional) Verify all dependent DLLs are searchable. You may use Dependency Walker
- Run
test_gdal.m
For other version, you should adjust makefile.win32 and setup C compilers for MATLAB.
Install gdal via homebrew, then should be same with Linux
NO WARRANTY. Apache License 2.0 if proper.
Return spatial reference compatible with Mapping Toolboxes. (Partially done. Parse WKT with prjparse function)