Skip to content

Commit

Permalink
feat: change DEFAULT_TOLERANCE to 0.01
Browse files Browse the repository at this point in the history
The current value was too high, which was allowing through huge geometries that didn't need all those points.
  • Loading branch information
gadomski committed Aug 23, 2023
1 parent 4000403 commit b531538
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 19,791 deletions.
2 changes: 1 addition & 1 deletion src/stactools/sentinel2/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
DATASTRIP_METADATA_ASSET_KEY: Final[str] = "datastrip_metadata"
TILEINFO_METADATA_ASSET_KEY: Final[str] = "tileinfo_metadata"

DEFAULT_TOLERANCE: Final[float] = 0.0001
DEFAULT_TOLERANCE: Final[float] = 0.01
COORD_ROUNDING: Final[int] = 6

SENTINEL_BANDS: Final[Dict[str, Band]] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stac_version": "1.0.0",
"id": "S2A_MSIL1C_20200717T221941_R029_T01LAC_20200717T234135",
"properties": {
"created": "2023-07-13T15:45Z",
"created": "2023-08-22T13:22Z",
"providers": [
{
"name": "ESA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stac_version": "1.0.0",
"id": "S2A_MSIL1C_20210908T042701_R133_T46RER_20210908T070248",
"properties": {
"created": "2023-07-13T15:45Z",
"created": "2023-08-22T13:22Z",
"providers": [
{
"name": "ESA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stac_version": "1.0.0",
"id": "S2A_MSIL2A_20190212T192651_R013_T07HFE_20201007T160857",
"properties": {
"created": "2023-07-13T15:45Z",
"created": "2023-08-22T13:22Z",
"providers": [
{
"name": "ESA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stac_version": "1.0.0",
"id": "S2A_MSIL2A_20230625T234621_R073_T01WCP_20230626T022157",
"properties": {
"created": "2023-07-13T15:45Z",
"created": "2023-08-22T13:22Z",
"providers": [
{
"name": "ESA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stac_version": "1.0.0",
"id": "S2A_MSIL2A_20230625T234621_R073_T01WCP_20230626T022158",
"properties": {
"created": "2023-07-13T15:45Z",
"created": "2023-08-22T13:22Z",
"providers": [
{
"name": "ESA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"stac_version": "1.0.0",
"id": "S2A_MSIL2A_20230625T234621_R073_T01WCS_20230626T022157",
"properties": {
"created": "2023-07-13T15:45Z",
"created": "2023-08-22T13:22Z",
"providers": [
{
"name": "ESA",
Expand Down
Loading

0 comments on commit b531538

Please sign in to comment.