├── .gitignore
├── CITATION.cff
├── CMakeLists.txt
├── LICENSE
├── NEWS
├── NOTES
├── README.md
├── cmake
├── GetGitRevisionDescription.cmake
└── GetGitRevisionDescription.cmake.in
├── docker
├── Dockerfile
├── README.md
└── docker-compose.yaml
├── evaluation
└── main.cpp
├── include
└── arc_raster_rescue
│ └── arc_raster_rescue.hpp
└── src
└── arr.cpp
/.gitignore:
--------------------------------------------------------------------------------
1 | *.exe
2 | build/
3 |
--------------------------------------------------------------------------------
/CITATION.cff:
--------------------------------------------------------------------------------
1 | cff-version: 1.2.0
2 | message: "If you use this software, please cite it as below."
3 | authors:
4 | - family-names: "Barnes"
5 | given-names: "Richard"
6 | orcid: "https://orcid.org/0000-0002-0204-6040"
7 | title: "ArcRasterRescue"
8 | doi: 10.5281/zenodo.4128479
9 | date-released: 2016-08-29
10 | url: "https://github.com/r-barnes/ArcRasterRescue"
--------------------------------------------------------------------------------
/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.5)
2 |
3 | project(arc_raster_rescue LANGUAGES CXX)
4 |
5 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
6 | include(GetGitRevisionDescription)
7 | get_git_head_revision(GIT_REFSPEC GIT_HASH)
8 |
9 | string(TIMESTAMP MY_TIMESTAMP "%Y-%m-%d %H:%M:%S")
10 |
11 | find_package(GDAL REQUIRED)
12 | find_package(ZLIB REQUIRED)
13 |
14 | option(EXPLORE "Whether or not to print exploratory debugging info useful for building new features.")
15 |
16 | add_library(arc_raster_rescue
17 | src/arr.cpp
18 | )
19 | target_include_directories(arc_raster_rescue PUBLIC ${GDAL_INCLUDE_DIR} include)
20 | target_link_libraries(arc_raster_rescue PRIVATE ZLIB::ZLIB ${GDAL_LIBRARY})
21 | target_compile_options(arc_raster_rescue PRIVATE
22 | -Wall -pedantic -Wno-unused-variable
23 | )
24 | target_compile_features(arc_raster_rescue PRIVATE cxx_constexpr)
25 | target_compile_definitions(arc_raster_rescue PUBLIC
26 | GIT_HASH=\"${GIT_HASH}\"
27 | COMPILE_TIME=\"${MY_TIMESTAMP}\"
28 | )
29 | if(EXPLORE)
30 | target_compile_definitions(arc_raster_rescue PRIVATE EXPLORE)
31 | endif()
32 |
33 |
34 |
35 | add_executable(arc_raster_rescue.exe
36 | evaluation/main.cpp
37 | )
38 | target_link_libraries(arc_raster_rescue.exe PRIVATE arc_raster_rescue)
39 | target_compile_options(arc_raster_rescue.exe PRIVATE
40 | -Wall -pedantic -Wno-unused-variable
41 | )
42 | target_compile_features(arc_raster_rescue.exe PRIVATE cxx_constexpr)
43 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2020 Richard Barnes
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/NEWS:
--------------------------------------------------------------------------------
1 | 2020-10-25 (v0.1)
2 | =================
3 |
4 | * Added NEWS.
5 | * Improved geotransform calculations.
6 | * Switched to cmake build system.
--------------------------------------------------------------------------------
/NOTES:
--------------------------------------------------------------------------------
1 | JPEG compression only works with 8-bit data.
2 | JPEG2000 compression only works with 8- or 16-bit data.
3 |
4 | band_types with compression
5 | ===========================
6 |
7 | uncompressed, float
8 | band_types = 0 0 2 1 00000000 00000000 00000010 00000001
9 |
10 | LZ77, float32
11 | band_types = 0 4 2 1 00000000 00000100 00000010 00000001
12 |
13 | JPEG, 75% quality, uint8_t
14 | band_types = 0 8 40 0 00000000 00001000 01000000 00000000
15 |
16 | JPEG, 23% quality, uint8_t
17 | band_types = 0 8 40 0 00000000 00001000 01000000 00000000
18 |
19 | JPEG2000 75% quality, int16_t
20 | band_types = 0 c 81 0 00000000 00001100 10000001 00000000
21 |
22 | JPEG2000 23% quality, int16_t
23 | band_types = 0 c 81 0 00000000 00001100 10000001 00000000
24 |
25 |
26 | LibJPEG examples:
27 | * https://github.com/LuaDist/libjpeg/blob/master/example.c
28 |
29 | * http://www.andrewewhite.net/wordpress/2008/09/02/very-simple-jpeg-writer-in-c-c/
30 |
31 | * http://www.aaronmr.com/en/2010/03/test/
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://zenodo.org/badge/latestdoi/66634837)
2 |
3 | ArcRasterRescue
4 | ===============
5 |
6 | **Seeking someone knowledgeable in the ways of crafting GDAL drivers to help with that part of the effort.**
7 |
8 | The enclosed program extracts (rescues!) raster data from an ArcGIS File
9 | Geodatabase into a GeoTIFF file.
10 |
11 | List the numbers and names of rasters in the geodatabase using
12 |
13 | ./arc_raster_rescue.exe
14 |
15 | Extract to a GeoTIFF using
16 |
17 | ./arc_raster_rescue.exe