Commit 7416fe6
authored
Move raster footprint functionality into a class (#396)
* feat: sinusoidal projection raster footprint geometry
- supplements existing raster footprint with new densification method and projection to lon/lat that does not wrap longitudes
* refactor: a little cleaner subclassing, better projection parameters
* refactor: separate out a base class
- 2 subclasses: default and sinusoidal
* wip
* refactor: make single class
- add instance creation methods
- remove sinusoidal class
* fix: remove unnecessary change from test_raster_footprint.py
* fix: remove unneccessary modis test files
* fix: prevent potential subclassing problem
- return `cls` rather than `RasterFootprint` from a classmethod
* fix: generalize return types from class methods
* fix: docstring fixups
* refactor: free `reproject_polygon()`
* docs: deprecated existing free functions
* refactor: make optional argument order consistent
* docs: remove unrelated doc changes
- Removes doc and docstring edits to the round utility, which are more
appropriately addressed in a new PR.
* fix: modify cogify_subdatasets tests to pass
* fix: revert test_subdataset test
* fixups: PR review fixups
* feat: update cli and add densify tests
- update cli to use new RasterFootprint class method
- test densification methods
* chore: update CHANGELOG
* docs: update footprint.rst contents
* fix: add accidentally deleted changelog contents1 parent ef6b5e7 commit 7416fe6
File tree
6 files changed
+869
-240
lines changed- docs
- src/stactools
- cli/commands
- core/utils
- tests/core/utils
6 files changed
+869
-240
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| 20 | + | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| 82 | + | |
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
| 86 | + | |
71 | 87 | | |
72 | 88 | | |
73 | 89 | | |
74 | 90 | | |
75 | 91 | | |
76 | 92 | | |
77 | | - | |
| 93 | + | |
78 | 94 | | |
79 | 95 | | |
80 | 96 | | |
81 | 97 | | |
| 98 | + | |
82 | 99 | | |
83 | 100 | | |
84 | 101 | | |
| 102 | + | |
85 | 103 | | |
86 | 104 | | |
87 | 105 | | |
| |||
0 commit comments