Commit Graph

303 Commits

Author SHA1 Message Date
Alexandra Latysheva
b74b3c80fc use local variable instead of dynamic variable in TiffSapiSandbox::ModifyPolicy 2020-10-28 13:16:15 +00:00
Alexandra Latysheva
bb871df80f format; use explicit for construct with default values; rewrite GetImagePath usage 2020-10-28 12:54:06 +00:00
Alexandra Latysheva
8ceb08dbf4 absl_string -> std_string as Sandbox param 2020-10-28 12:04:12 +00:00
Alexandra Latysheva
b41bcccab7 parametrize test 2020-10-28 12:03:23 +00:00
Alexandra Latysheva
124680eb89 remove unused includes 2020-10-28 10:32:55 +00:00
Sandboxed API Team
ea379ef4d6 Cleans up statusor.h includes.
PiperOrigin-RevId: 339050213
Change-Id: Iea5747f907b294503cdb37e1c25cf787c7e83dcf
2020-10-26 09:08:41 -07:00
Alexandra Latysheva
de377ffd2d default values (remove 123 and 456) 2020-10-23 12:39:52 +00:00
Alexandra Latysheva
b6a47abf01 PtrBefore/PtrBoth/PtrAfter 2020-10-23 06:54:36 +00:00
Alexandra Latysheva
418bc3f356 using absl 2020-10-22 16:19:27 +00:00
Copybara-Service
cba334a9d1 Merge pull request #64 from bohdanty:gdal_sandbox
PiperOrigin-RevId: 337856019
Change-Id: Ib1d9c5614f02da4df8d624f006f31ea09bb5c560
2020-10-19 08:08:03 -07:00
Alexandra Latysheva
1350cfb3b6 bool status -> bool status_ok (tests:raw_decode) 2020-10-19 10:40:19 +00:00
Alexandra Latysheva
316828a219 auto& -> const auto&; bool status -> bool status_ok 2020-10-19 10:36:47 +00:00
happyCoder92
2e3b118ec9
Merge branch 'master' into gdal_sandbox 2020-10-19 10:05:44 +02:00
Bohdan Tyshchenko
5159b67d7d Moved test data to paths to environment variables
Added environment variables to remove relative paths from the code
2020-10-16 09:15:11 -07:00
Bohdan Tyshchenko
5711a66d77 Comments fix, code update to correspond latest SAPI version
Comments fix
Changed sapi::StatusOr to absl::StatusOr
Code changes according to new CStr(absl::string_view) constructor
2020-10-15 08:13:11 -07:00
Bohdan Tyshchenko
b1a1aef39e Project architecture redesign, coding style update
Put duplicated code inside the transaction, which is used by both tests and raster_to_gtiff
Removed <filesystem> header, reimplemented one of its utilities for file checking
Code style changes
Replaced .data() with .c_str() for std::string
Updated README to show how to build both GDAL and PROJ inside the build folder and how to link them to the sandbox
2020-10-13 13:03:04 -07:00
Alexandra Latysheva
9eb518c57a move using to namespace 2020-10-11 11:06:18 +00:00
Latysheva Alexandra
77c44f9c87
add flags to readme 2020-10-11 17:02:47 +06:00
Latysheva Alexandra
7750b43c56
remove tabs in readme 2020-10-11 16:54:37 +06:00
Alexandra Latysheva
554c03bec9 use absl format string 2020-10-11 10:53:08 +00:00
Alexandra Latysheva
60541cc8ea clang-format 2020-10-11 10:30:10 +00:00
Alexandra Latysheva
16d904e174 code block 2020-10-11 10:24:55 +00:00
Alexandra Latysheva
64b74c97e0 4 spaces -> 2 spaces 2020-10-11 10:23:42 +00:00
Alexandra Latysheva
1d1c4b9579 clear array initialization 2020-10-11 10:18:53 +00:00
Alexandra Latysheva
466259a985 using auto* for pointers 2020-10-11 10:13:27 +00:00
Alexandra Latysheva
ab3f992c78 using auto* for pointers 2020-10-11 10:11:56 +00:00
Alexandra Latysheva
6945f7304f replace all unsigned except in wrapper 2020-10-11 10:01:59 +00:00
Alexandra Latysheva
69fbe39293 Declare all vars on separate lines 2020-10-11 09:44:02 +00:00
Alexandra Latysheva
d190abf2e2 using from .h to .cc 2020-10-11 09:40:47 +00:00
Alexandra Latysheva
1785e39d4b add nolint to every include '*.h' that is added by this pr 2020-10-11 08:20:40 +00:00
Andrei Medar
150fd02ed4 Implemented requested changes 2020-10-09 13:52:17 +00:00
Andrei Medar
519b5af157 Added ld_preload example usage 2020-10-08 10:58:21 +00:00
Copybara-Service
33bc36ae3d Merge pull request #62 from andreimedar:libarchive
PiperOrigin-RevId: 336042102
Change-Id: I7b1ceaa794851c10e07dbdef4f4e37000edc25d4
2020-10-08 02:06:50 -07:00
Andrei Medar
f038f7aa3f added empty line at the end of files (was removed by clang-format) 2020-10-07 14:36:24 +00:00
root
c63302f731 Changed constants naming in unit tests. 2020-10-07 12:52:55 +00:00
Andrei Medar
04f4ff5960 Removed computer specific code 2020-10-07 11:51:59 +00:00
Andrei Medar
e87e583bca Merge remote-tracking branch 'upstream/master' into libarchive
Merge fork with upstream for pull request.
2020-10-07 10:10:08 +00:00
Andrei Medar
efff53149d Implemented requested changes (variable names, functions return absl::Status/absl::StatusOr) 2020-10-07 10:07:13 +00:00
Bohdan Tyshchenko
48348d6aa5 Headers order fix, NOLINT project headers 2020-10-07 01:33:20 -07:00
Bohdan Tyshchenko
19612c642f Removed unnecessary code 2020-10-06 04:21:29 -07:00
Bohdan Tyshchenko
8e0141cc9a Readme fix 2020-10-06 04:12:50 -07:00
Bohdan Tyshchenko
22a8cee4ea Updated CMake and tests, wrote README
Added instructions on how to build GDAL Sandbox using GDAL and PROJ build from sources
Updated test data
2020-10-06 04:06:54 -07:00
Bohdan Tyshchenko
5442d8c6e0 Updated sandbox construction logic and CMakeLists
More flexible CMake file with variables
Added logic to check whether proj.db exists and fetch it from the environment variable
2020-10-05 11:01:15 -07:00
Alexandra Latysheva
5449e2f0df renamed g_in_dir in local variable style 2020-10-04 17:58:21 +00:00
Alexandra Latysheva
b6abae3356 rewtite pixels and clusters check for clarify. sapi::StatusOr -> absl::StatusOr (building problems). resolved review issues 2020-10-04 17:38:10 +00:00
Andrei Medar
725f665b79 Added one extra test 2020-10-02 16:52:13 +00:00
Andrei Medar
589776b6f9 Modified sandbox to limit ioctl. Use .value() instead of manually checking .ok(). 2020-10-02 15:52:29 +00:00
Copybara-Service
569c7d84b0 Merge pull request #54 from Manwi23:jsonnet
PiperOrigin-RevId: 335017461
Change-Id: I583444057bb4d8c8c33694fbba4d3717bb22101a
2020-10-02 06:47:45 -07:00
Andrei Medar
7e1d9179e5 Solved some pr comments 2020-10-02 10:56:14 +00:00
Copybara-Service
47ba5c8e39 Merge pull request #61 from FedericoStazi:curl
PiperOrigin-RevId: 334994112
Change-Id: Iedd065f33cdb5ebda796722d0a4d158ba719ff2c
2020-10-02 03:15:25 -07:00
Andrei Medar
b4c64dac69 Added FetchContent command to cmake so that patches are applied automatically to libarchive clone 2020-10-01 19:01:50 +00:00
Alexandra Latysheva
6497a40bff last for now 2020-10-01 17:11:28 +00:00
Alexandra Latysheva
fea40e017f format 2020-10-01 16:56:45 +00:00
Alexandra Latysheva
2869fba479 example 2020-10-01 16:49:59 +00:00
Bohdan Tyshchenko
b06d020f32 Raster to GTiff workflow implementation
Implemented simple GTiff file parser to test sandboxed part of code on a real data, added unit tests.
Need to improve the CMake file to make it work without specifying the absolute paths to libraries.
2020-10-01 03:59:18 -07:00
Andrei Medar
c5d44eab37 Removed computer specific line in CMakeLists.txt 2020-10-01 00:17:15 +00:00
Andrei Medar
efe48ccca6 Added unit tests. Cleaned up the code and added comments. Added README 2020-10-01 00:15:33 +00:00
Alexandra Latysheva
477de3b6b7 last for today 2020-09-30 19:17:23 +00:00
Alexandra Latysheva
0f8cbd1bfc some more fixes 2020-09-30 18:45:48 +00:00
Alexandra Latysheva
d513f18c2e resolved part of issues 2020-09-30 17:54:47 +00:00
Federico Stazi
2025cea89c
Fix formatting in README 2020-09-30 11:18:30 +01:00
Copybara-Service
d292a9af7b Merge pull request #52 from andreimedar:master
PiperOrigin-RevId: 334560525
Change-Id: I605ce78638ebfd7a88811879c4185bb4e107d915
2020-09-30 02:56:32 -07:00
Andrei Medar
525acea7c4 Fixed small typo 2020-09-29 22:58:35 +00:00
Andrei Medar
7e6872ee26 Added first basic test 2020-09-29 22:50:43 +00:00
Andrei Medar
95ef6fc683 Merge remote-tracking branch 'upstream/master'
Sync lodepng project.
2020-09-29 19:32:08 +00:00
Andrei Medar
815fd35930 removed computer specific line in CMakeLists.txt 2020-09-29 19:31:30 +00:00
Andrei Medar
267686afb6 Added test helper class 2020-09-29 19:27:40 +00:00
Federico Stazi
fec2124ee1 Add namespaces and improve error handling in examples 2020-09-29 13:50:13 +00:00
Christian Blichmann
0b1951ea4c
Add OpenJPEG and libcurl submodules 2020-09-29 12:23:42 +02:00
Federico Stazi
4379725696 Add namespaces in examples 2020-09-28 18:41:37 +00:00
Andrei Medar
e6e564f412 renamed main project folder 2020-09-28 15:35:51 +00:00
Andrei Medar
e4a631251c renamed project folder 2020-09-28 15:11:44 +00:00
Andrei Medar
b04d718554 Modified CMakeLists.txt indentation 2020-09-28 15:03:00 +00:00
root
eef5b8bdeb Reorganized project structure in order to make functions testable 2020-09-28 15:00:33 +00:00
Katarzyna Miernikiewicz
17b3f78f94 minor changes 2020-09-28 14:45:16 +00:00
Katarzyna Miernikiewicz
a7077093af
Merge branch 'master' into jsonnet 2020-09-28 16:43:07 +02:00
Katarzyna Miernikiewicz
bfa6b2502b Google style added 2020-09-28 14:41:32 +00:00
Katarzyna Miernikiewicz
e411799d0d requested changes applied 2020-09-28 14:33:43 +00:00
Christian Blichmann
83836b16ac
Add PFFFT submodule 2020-09-28 12:14:38 +02:00
Alexandra Latysheva
8b36b3e5af clang-format again 2020-09-26 11:27:13 +00:00
Alexandra Latysheva
71e43cd99c main fixes 2020-09-25 21:21:07 +00:00
Katarzyna Miernikiewicz
ac7c1ee1ee NOLINT added, changed using CHECKS to a function returning absl::Status 2020-09-25 16:03:06 +00:00
root
0625f30f7a Cleaned up the code files + added some comments 2020-09-25 15:46:06 +00:00
Federico Stazi
a61421621c Address review comments 2020-09-25 15:06:24 +00:00
Christian Blichmann
cd75f94094 Migrate guetzli to absl::StatusOr<>
PiperOrigin-RevId: 333731054
Change-Id: I1446b1b58387dbd7c4853b146249bee7deb8c307
2020-09-25 07:43:34 -07:00
Katarzyna Miernikiewicz
8f8796b320 changed sapi::StatusOr to absl::StatusOr 2020-09-25 12:00:52 +00:00
Katarzyna Miernikiewicz
2276f5d48e part of the requested changes 2020-09-25 11:20:50 +00:00
Federico Stazi
192e443b7c Update README.md 2020-09-25 10:55:28 +00:00
Federico Stazi
22d21cd1c3 Initial LibUV commit 2020-09-25 10:55:24 +00:00
Andrei Medar
3052967374 added relative path cleanup using file::CleanPath 2020-09-24 18:47:19 +00:00
Andrei Medar
388bcff972 merged .gitmodules with upstream 2020-09-24 18:28:25 +00:00
Andrei Medar
cab74bc7fb Merge remote-tracking branch 'upstream/master' 2020-09-24 18:18:39 +00:00
Andrei Medar
811dbf8d74 applied requested changes. Modified sapi::StatusOr to absl::StatusOr 2020-09-24 18:17:27 +00:00
Copybara-Service
73be2c4212 Merge pull request #57 from doinachiroiu:master
PiperOrigin-RevId: 333529053
Change-Id: I6e2b7b31ecaa4f7ef11fc7b1260d441d897dd41a
2020-09-24 09:22:44 -07:00
doinachiroiu
e0624f7220 Clang-format 2020-09-24 14:42:23 +00:00
doinachiroiu
61e8274954 Coding style fixed 2020-09-24 14:40:01 +00:00
doinachiroiu
29310a2305 Required changes resolved 2020-09-24 14:38:52 +00:00
doinachiroiu
3db70e6bea Changed name of variable 2020-09-24 14:36:30 +00:00
doinachiroiu
56649c5513 Resolving returning error for Transform and RasterIO functions 2020-09-24 14:16:33 +00:00
Copybara-Service
5604c85129 Merge pull request #53 from doinachiroiu:master
PiperOrigin-RevId: 333505714
Change-Id: I719108c1e7df20185a8ba5dcf3906821c47a9ee3
2020-09-24 06:57:28 -07:00