-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: WCS Coverage for multidimensional layers #332
Open
belentorrente
wants to merge
12
commits into
master
Choose a base branch
from
multidimcoverage2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8448400
Initial idea
48c1d51
Add min max, fix existing test
857278b
Extra example
6dfe759
Fix min and max
d564e95
Test fix
8e25055
Add individual values
9d9017c
Attempt at printing resolution
0390095
Extract ISO duration calculation, TODOs
4a1512c
Add extra tests
f78402a
New random timestep file with no repeated timestamps
2550975
Make modular + testing
57cceee
Merge branch 'master' into multidimcoverage2
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
194 changes: 194 additions & 0 deletions
194
tests/expectedoutputs/TestWCS/test_WCSDescribeCoverage_Multidimdata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
<?xml version='1.0' encoding="ISO-8859-1" ?> | ||
<CoverageDescription | ||
version="1.0.0" | ||
updateSequence="0" | ||
xmlns="http://www.opengis.net/wcs" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:gml="http://www.opengis.net/gml" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/describeCoverage.xsd"> | ||
<CoverageOffering> | ||
<description>data</description> | ||
<name>data</name> | ||
<label>data</label> | ||
<uom>km</uom> | ||
<lonLatEnvelope srsName="urn:ogc:def:crs:OGC:1.3:CRS84"> | ||
<gml:pos>-180.494446 -90.488892</gml:pos> | ||
<gml:pos>179.505554 89.511108</gml:pos> | ||
</lonLatEnvelope> | ||
<domainSet> | ||
<spatialDomain> | ||
<gml:Envelope srsName="EPSG:3411"> | ||
<gml:pos>-399240949.703125 -399607437.540235</gml:pos> | ||
<gml:pos>399487065.269510 398879979.546019</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:3412"> | ||
<gml:pos>-2868126705.493384 -2870740092.047709</gml:pos> | ||
<gml:pos>2869855924.003487 2865475278.583282</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:3575"> | ||
<gml:pos>-12712149.336113 -12731583.256617</gml:pos> | ||
<gml:pos>12735505.704073 12723911.899582</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:3857"> | ||
<gml:pos>-19201993.871211 -22228632.557364</gml:pos> | ||
<gml:pos>19982466.888021 34805382.412607</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:4258"> | ||
<gml:pos>-180.494446 -90.488892</gml:pos> | ||
<gml:pos>179.505554 89.511108</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:4326"> | ||
<gml:pos>-180.494446 -90.488892</gml:pos> | ||
<gml:pos>179.505554 89.511108</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="CRS:84"> | ||
<gml:pos>-180.494446 -90.488892</gml:pos> | ||
<gml:pos>179.505554 89.511108</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:25831"> | ||
<gml:pos>-15931605.907041 -19720315.591565</gml:pos> | ||
<gml:pos>17051580.684528 19828593.536145</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:25832"> | ||
<gml:pos>-14709787.414601 -19720736.728277</gml:pos> | ||
<gml:pos>17177711.901099 47405035.658741</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:28992"> | ||
<gml:pos>-352494887.244074 -527708138.497395</gml:pos> | ||
<gml:pos>319428390.883462 521690003.576207</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:7399"> | ||
<gml:pos>-17284159.484400 -8898366.230070</gml:pos> | ||
<gml:pos>17986681.325950 9020047.848074</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:50001"> | ||
<gml:pos>-2000000.000000 -2000000.000000</gml:pos> | ||
<gml:pos>10000000.000000 8500000.000000</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:54030"> | ||
<gml:pos>-16294244.470419 -8493172.970167</gml:pos> | ||
<gml:pos>16956530.805045 8610630.466538</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:32661"> | ||
<gml:pos>-407173329.856895 -406795071.401436</gml:pos> | ||
<gml:pos>411420024.012517 411546161.390658</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:40000"> | ||
<gml:pos>-411643188.990840 -411262647.285147</gml:pos> | ||
<gml:pos>411891372.245993 412018271.016759</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:900913"> | ||
<gml:pos>-19201993.871211 -22228632.557364</gml:pos> | ||
<gml:pos>19982466.888021 34805382.412607</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:3067"> | ||
<gml:pos>-15931605.907041 -19720315.591565</gml:pos> | ||
<gml:pos>17051580.684528 19828593.536145</gml:pos> | ||
</gml:Envelope> | ||
<gml:Envelope srsName="EPSG:4326"> | ||
<gml:pos>-180.494446 89.511108</gml:pos> | ||
<gml:pos>179.505554 -90.488892</gml:pos> | ||
</gml:Envelope> | ||
<gml:RectifiedGrid dimension="2"> | ||
<gml:limits> | ||
<gml:GridEnvelope> | ||
<gml:low>0 0</gml:low> | ||
<gml:high>359 179</gml:high> | ||
</gml:GridEnvelope> | ||
</gml:limits> | ||
<gml:axisName>x</gml:axisName> | ||
<gml:axisName>y</gml:axisName> | ||
<gml:origin> | ||
<gml:pos>-180.494446 89.511108</gml:pos> | ||
</gml:origin> | ||
<gml:offsetVector>1.000000 0</gml:offsetVector> | ||
<gml:offsetVector>0 -1.000000</gml:offsetVector> | ||
</gml:RectifiedGrid> | ||
</spatialDomain> | ||
<temporalDomain> | ||
<gml:timePosition>2017-01-01T00:15:00Z</gml:timePosition> | ||
<gml:timePosition>2017-01-01T00:20:00Z</gml:timePosition> | ||
<gml:timePosition>2017-01-01T00:25:00Z</gml:timePosition> | ||
</temporalDomain> | ||
</domainSet> | ||
<rangeSet> | ||
<RangeSet> | ||
<name>dimensions</name> | ||
<label>dimensions</label> | ||
<axisDescription> | ||
<AxisDescription> | ||
<name>"member"</name> | ||
<label>"member"</label> | ||
<values> | ||
<interval> | ||
<min>"member1"</min> | ||
maartenplieger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<max>"member6"</max> | ||
</interval> | ||
<singleValue>"member1"</singleValue> | ||
<singleValue>"member2"</singleValue> | ||
<singleValue>"member3"</singleValue> | ||
<singleValue>"member4"</singleValue> | ||
<singleValue>"member5"</singleValue> | ||
<singleValue>"member6"</singleValue> | ||
</values> | ||
</AxisDescription> | ||
</axisDescription> | ||
<axisDescription> | ||
<AxisDescription> | ||
<name>"elevation"</name> | ||
<label>"elevation"</label> | ||
<values> | ||
<interval> | ||
<min>"1000.0"</min> | ||
<max>"9000.0"</max> | ||
</interval> | ||
<singleValue>"1000.0"</singleValue> | ||
<singleValue>"2000.0"</singleValue> | ||
<singleValue>"3000.0"</singleValue> | ||
<singleValue>"4000.0"</singleValue> | ||
<singleValue>"5000.0"</singleValue> | ||
<singleValue>"6000.0"</singleValue> | ||
<singleValue>"7000.0"</singleValue> | ||
<singleValue>"8000.0"</singleValue> | ||
<singleValue>"9000.0"</singleValue> | ||
</values> | ||
</AxisDescription> | ||
</axisDescription> | ||
</RangeSet> | ||
</rangeSet> | ||
<supportedCRSs> | ||
<requestResponseCRSs>EPSG:3411</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:3412</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:3575</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:3857</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:4258</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:4326</requestResponseCRSs> | ||
<requestResponseCRSs>CRS:84</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:25831</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:25832</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:28992</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:7399</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:50001</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:54030</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:32661</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:40000</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:900913</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:3067</requestResponseCRSs> | ||
<requestResponseCRSs>EPSG:4326</requestResponseCRSs> | ||
<nativeCRSs>EPSG:4326</nativeCRSs> | ||
</supportedCRSs> | ||
<supportedFormats nativeFormat="NetCDF4"> | ||
<formats>GeoTIFF</formats> | ||
<formats>AAIGRID</formats> | ||
<formats>netcdf</formats> | ||
<formats>NetCDF3</formats> | ||
<formats>NetCDF4</formats> | ||
<formats>aaigrid</formats> | ||
<formats>geotiff</formats> | ||
</supportedFormats> | ||
<supportedInterpolations default="nearest neighbor"> | ||
<interpolationMethod>nearest neighbor</interpolationMethod> | ||
</supportedInterpolations> | ||
</CoverageOffering> | ||
</CoverageDescription> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to show for time the min/max and resolution?
When I do describecoverage on a KNMI Radar file there is no time dimension in the describecoverage. I think we have to accomodate for a webclient, for a webclient it would be useful to have this information to generate a UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The resolution in the same way that we show in the getCapabilities description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes!