Read, save and filter images based on GDAL Currently supports: image filtering of custom operators, image reading, saving, channel separation and other functions #pragma once #ifdef __GDAL_UTILITY__ #include <gdal/gdal_priv.h> #include <gdal/gdal.h> #include <iostream> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include <list> #include <vector> #include <array> #include <cassert> #include <memory> #include <cstring> #include <initializer_list> […]
Tag: gdal
A method for Java to call GDAL to fuse polygon vector data with the same field attributes
Table of Contents 1. Write before the article 2. Implementation ideas 3. Implementation process 1. Open vector data 2. Generate fusion results 3. Do not fuse non-adjacent geometric figures 4. Write the merged geometry to a new layer 5. The effect of fusion 4. Complete example 1. Write before the article As shown in the […]
Application Utility – Reading geospatial raster files using GDAL OpenCV v4.8.0
Previous tutorial: Adding a track bar to our application Next tutorial: Video input using OpenCV and similarity measurement Original author Marvin Smith Compatibility OpenCV >= 3.0 Geospatial raster data is a product heavily used in geographic information systems and photogrammetry. Raster data can often represent images and digital elevation models (DEMs). The standard library for […]
Use CMake to compile and install GDAL3.6.1 under Ubuntu, link Java, and add FileGDB driver
Use CMake to compile and install GDAL3.6.1 under Ubuntu, link with Java, and add FileGDB driver Write in front ? The first time I compiled source code under Linux, I encountered many pitfalls and almost gave up. I looked at the online tutorials and they were all old versions, not compiled using the CMake method. […]
C#+ArcEngine environment construction & C++ configuration Gdal library
C# + ArcEngine environment construction & C++ configuration Gdal library Part 1 C# + ArcEngine 10.2 environment construction Foreword: This installation version is VS2010 + ArcEngine 10.2.2 Before installing AE, you need to install VS (multiple versions can be installed without conflict). AE 10.2 corresponds to VS 10 and 12 versions. The corresponding situation of […]
Convert python GDAL development source code to c++ source code (parsing of tif files)
The company considered that there were few developers in Python and needed subsequent code maintenance. On the other hand, C++ had higher operating efficiency, so it was assigned a task of converting Python source code to C++ source code and was given a Python source code file. After about In more than two weeks, the […]
C++ language GDAL batch cropping of multi-band raster images: cropping based on the number of pixels
This article introduces the GDAL module based on the C + + language. According to the given number of pixel rows and number of columns strong>, batch crop a large number of multi-band raster remote sensing image files, and save the resulting cropped new multi-band remote sensing image files Method at the specified path. In […]
GDAL processes remote sensing images – gdal.GetDriverByName method code example
This article summarizes typical usage code examples of the gdal.GetDriverByNamemethod in Python. If you are struggling with the following questions: How to use the Python gdal.GetDriverByName method? How to use Python gdal.GetDriverByName? Example of using Python gdal.GetDriverByName? So congratulations, the selected method code examples here may be able to help you. You can also learn […]
[Python&RS] Modify the DN value of raster data based on GDAL
Remote sensing workers cannot do without raster data. Sometimes we may need to modify the value of raster data, but there are no tools to directly modify DN values in ENVI and ArcGIS. There are only tools such as raster calculator and Band math. Calculate the value of the entire band, or the Edit Classification […]
docker builds gdal-java image (including tomcat)
It is troublesome to install gdal3.x in centos, so you can prepare a compilation image, compile gdal inside the image, and then copy the compiled gdal from it every time you build other packages. Compile image: FROM adoptopenjdk/openjdk8:x86_64-centos-jdk8u312-b07 WORKDIR /src # Download source code RUN curl https://www.sqlite.org/2021/sqlite-autoconf-3350400.tar.gz -o sqlite.tar.gz & amp; & amp; \ tar […]