Installation
Building from source#
| Dependencies | Version |
|---|---|
| GDAL | >=3.2.0 |
ovr2shp depends GDAL & OGR headers for coordinate system operations and Shapefile creation. This would require a development version of GDAL.
Please refer to the GDAL's official build guide to build a local development version.
- Linux
- Windows
We will be using the Microsoft C++ toolset from the command line to build ovr2shp. You can download the build tools here.
| Compiler | Arch. |
|---|---|
| MSVC 1900 | x64 |
| MSVC 1900 | x86 |
After installing the build tools, there are some convenience scripts that we will have access to that helps ensure our VC environment is set up properly.
Using win_setup.bat we can build either the x86 or x64 version for ovr2shp. It references vcvarsall.bat so do make sure that the PATH environment variable is set properly.
Set the appropiate GDAL paths in
makefile.vcBuild
win_setup.bat x64win_setup.bat x86
caution
Make sure that when you are building a x64 version of ovr2shp, its external dependencies like GDAL has been built for a x64 system. Ensure that the GDAL static library that we will be using for compiling is built for x64.
info
ovr2shp runtime depends gdal.dll so do make sure that it is in PATH environment variable or in the same folder as your executable. For more details on .dll resolution
| Compiler | Arch. |
|---|---|
| GCC 9.3 | x64 |
| Optional Dependencies | Version |
|---|---|
| gnuplot | 5.2 |
gnuplot-iostream.h | latest |
info
gnuplot is used as a lightweight plotting alternative to GIS softwares to visualize the geometry of annotation objects. It is mainly used as a development tool.
- Build without
gnuplot
- Build with
gnuplot
Docker#
Build
Spin up a container
data_path: path to local data directory that contains.ovrfiles to be converted
Run