Skip to content

Commit

Permalink
Ticket not ready for deployment with 1.223.x`
Browse files Browse the repository at this point in the history
Revert "CMR-9025 Adding in changed grid schema and example record. (#1887)"

This reverts commit 79542b5.
  • Loading branch information
jwteague committed May 1, 2023
1 parent 68475f4 commit 402fb02
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 36 deletions.
24 changes: 12 additions & 12 deletions schemas/resources/schemas/grid/v0.0.1/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"GridDefinition": {
"CoordinateReferenceSystemID": {
"Type": "EPSG",
"Code": "EPSG:4326",
"Code": "EPSG:4326",
"Title": "WGS84 - World Geodetic System 1984, used in GPS - EPSG:4326",
"URL": "https://epsg.io/4326"
},
Expand All @@ -33,25 +33,25 @@
"SouthBoundingCoordinate": -90.0,
"WestBoundingCoordinate": 90.0,
"SpatialResolution": {
"Unit": "Degree",
"LongitudeResolution": "359.009",
"LatitudeResolution": "89.1"
"Unit": "Meter",
"LongitudeResolution": "10.0001",
"LatitudeResolution": "14.0001"
}
},
"DimensionScale": {
"0_360_DegreeProjection": true,
"0_360_DegreeProjection": false,
"X":
{
"Minimum": "-359-00-00.009",
"Maximum": "359-00-00.009",
"Unit": "Degrees-Minutes-Seconds",
"Minimum": 98.0330,
"Maximum": 98.0330,
"Unit": "Meter",
"Resolution": 0.125
},
"Y":
{
"Minimum": "-89-00-00.1",
"Maximum": "89-00-00.1",
"Unit": "Degrees-Minutes-Seconds",
"Minimum": 98.0330,
"Maximum": 98.0330,
"Unit": "Meter",
"Resolution": 0.5
},
"Time":
Expand Down Expand Up @@ -115,4 +115,4 @@
"Description": "Sample",
"DataType": "STRING"
}
}
}
44 changes: 20 additions & 24 deletions schemas/resources/schemas/grid/v0.0.1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
}
},
Expand Down Expand Up @@ -671,24 +671,20 @@


"DimensionScaleDegreeMinMaxTrueConditionX": {
"$comment": "Checks if the DimensionScale's Unit element value is Degree then sets the minimum and maximum values for Minimum and Maximum sub-elements for X.",
"if": {"properties": {"0_360_DegreeProjection": {"const": true},
"X": {"properties": {"Unit": {"const": "Degree"}}}}},
"then": {"properties": {"X": {"properties": {"Minimum": {"minimum": 0, "maximum": 360},
"Maximum": {"minimum": 0, "maximum": 360}}}}},
"else": {"properties": {"X": {"properties": {"Minimum": {"minimum": -180, "maximum": 180},
"Maximum": {"minimum": -180, "maximum": 180}}}}}
"$comment": "Checks if the DimensionScale's Unit element value is Degree then sets the minimum and maximum values for Minimum and Maximum sub-elements for X.",
"if": {"properties": {"X": {"properties": {"Unit": {"const": "Degree"},
"0_360_DegreeProjection": {"const": true}}}}},
"then": {"properties": {"X": {"properties": {"Minimum": {"minimum": 0, "maximum": 360},
"Maximum": {"minimum": 0, "maximum": 360}}}}}
},


"DimensionScaleDegreeMinMaxTrueConditionY": {
"$comment": "Checks if the DimensionScale's Unit element value is Degree then sets the minimum and maximum values for Minimum and Maximum sub-elements for X.",
"if": {"properties": {"0_360_DegreeProjection": {"const": true},
"Y": {"properties": {"Unit": {"const": "Degree"}}}}},
"then": {"properties": {"Y": {"properties": {"Minimum": {"minimum": -90, "maximum": 360},
"Maximum": {"minimum": -90, "maximum": 360}}}}},
"else": {"properties": {"Y": {"properties": {"Minimum": {"minimum": -90, "maximum": 90},
"Maximum": {"minimum": -90, "maximum": 90}}}}}
"$comment": "Checks if the DimensionScale's Unit element value is Degree then sets the minimum and maximum values for Minimum and Maximum sub-elements for Y.",
"if": {"properties": {"Y": {"properties": {"Unit": {"const": "Degree"},
"0_360_DegreeProjection": {"const": true}}}}},
"then": {"properties": {"Y": {"properties": {"Minimum": {"minimum": 0, "maximum": 360},
"Maximum": {"minimum": 0, "maximum": 360}}}}}
},

"DimensionScaleHourMinMaxPatternConditionTime": {
Expand Down Expand Up @@ -737,22 +733,22 @@
"DimensionScaleXUnitPatternDMS": {
"$comment": "Checks the DimensionScale's Unit element values pattern for Degrees-Minutes-Seconds. The value's format ##-##-##.### and Milliseconds are optional.",
"if": {"properties": {"X": {"properties": {"Unit": {"enum": ["Degrees-Minutes-Seconds"]}}}}},
"then": {"properties": {"X": {"properties": {"Minimum": {"pattern": "^-?(360-00-00\\.?[0]*)$|-?(3[0-5][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*)$|[0-2][0-9][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*?$"},
"Maximum": {"pattern": "^-?(360-00-00\\.?[0]*)$|-?(3[0-5][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*)$|[0-2][0-9][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*?$"}}}}}
"then": {"properties": {"X": {"properties": {"Minimum": {"pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{2}\\.?\\d*?$"},
"Maximum": {"pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{2}\\.?\\d*?$"}}}}}
},

"DimensionScaleYUnitPatternDMS": {
"$comment": "Checks the DimensionScale's Unit element values pattern for Degrees-Minutes-Seconds. The value's format ##-##-##.### and Milliseconds are optional.",
"if": {"properties": {"Y": {"properties": {"Unit": {"enum": ["Degrees-Minutes-Seconds"]}}}}},
"then": {"properties": {"Y": {"properties": {"Minimum": {"pattern": "^-?(90-00-00\\.?[0]*)$|[0-8][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*?$"},
"Maximum": {"pattern": "^-?(90-00-00\\.?[0]*)$|[0-8][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*?$"}}}}}
"then": {"properties": {"Y": {"properties": {"Minimum": {"pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{2}\\.?\\d*?$"},
"Maximum": {"pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{2}\\.?\\d*?$"}}}}}
},

"SpatialResolutionUnitPatternDMS": {
"$comment": "Checks the SpatialResolution Unit element values pattern for Degrees-Minutes-Seconds. The value's format ##-##-##.### and Milliseconds are optional.",
"if": {"properties": {"Unit": {"const": "Degrees-Minutes-Seconds"}}},
"then": {"properties": {"LongitudeResolution": {"pattern": "^-?(360-00-00\\.?[0]*)$|-?(3[0-5][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*)$|[0-2][0-9][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*?$"},
"LatitudeResolution": {"pattern": "^-?(90-00-00\\.?[0]*)$|[0-8][0-9]-[0-9]{2}-[0-9]{2}\\.?\\d*?$"}}}
"then": {"properties": {"LongitudeResolution": {"pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{2}\\.?\\d*?$"},
"LatitudeResolution": {"pattern": "^[0-9]{2}-[0-9]{2}-[0-9]{2}\\.?\\d*?$"}}}
},

"SpatialResolutionUnitPatternMinute": {
Expand All @@ -772,8 +768,8 @@
"SpatialResolutionUnitPatternDeg": {
"$comment": "Checks the SpatialResolution Unit element values pattern for Degrees.",
"if": {"properties": {"Unit": {"const": "Degree"}}},
"then": {"properties": {"LongitudeResolution": {"pattern": "^-?(360\\.?[0]*$|-?3[0-5][0-9]\\.?\\d*$|-?[0-2]{0,}[0-9]{0,}[0-9]{1,}\\.?\\d*$)"},
"LatitudeResolution": {"pattern": "^-?(90\\.?[0]*$|-?[0-8][0-9])\\.?\\d*?$"}}}
"then": {"properties": {"LongitudeResolution": {"pattern": "^(360|3[0-5][0-9]|[12][0-9]{1,2}|[1-9][0-9]|[0-9])\\.?\\d*?$"},
"LatitudeResolution": {"pattern": "^(180|1[0-7][0-9]|[1-9][0-9]|[0-9])\\.?\\d*?$"}}}
},

"SpatialResolutionUnitPatternKM": {
Expand Down Expand Up @@ -813,4 +809,4 @@
"if": {"properties": {"X": {"properties": {"Unit": {"const": "Degree"}}}}},
"then": {"properties": {"Y": {"properties": {"Unit": {"const": "Degree"}}}}}}
}
}
}

0 comments on commit 402fb02

Please sign in to comment.