-
Notifications
You must be signed in to change notification settings - Fork 4
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
Prerelease wuekis sprint #76
Conversation
and added functionality to parse the returned capabilities-object
ensuring that wf's are covered, too.
@@ -953,7 +996,7 @@ export class MapOlService { | |||
} | |||
|
|||
if (l.bbox) { | |||
layeroptions.extent = transformExtent(l.bbox, WGS84, this.map.getView().getProjection().getCode()); | |||
layeroptions.extent = transformExtent(l.bbox.slice(0, 4) as [number, number, number, number], WGS84, this.map.getView().getProjection().getCode()); |
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.
Do we need to slice
all bboxes? I think GeoJSON can handle 3D bboxes https://tools.ietf.org/html/rfc7946#section-5
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.
You'd think so, right?
But when I include map-ol in a ukis-project (as we currently do in WUEKIS) and try to serve the app, I get
ERROR in projects/map-ol/src/lib/map-ol.service.ts:706:45 - error TS2345: Argument of type 'TGeoExtent' is not assignable to parameter of type 'Extent'.
Type '[number, number, number, number, number, number]' is not assignable to type '[number, number, number, number]'.
Types of property 'length' are incompatible.
Type '6' is not assignable to type '4'.
706 layeroptions.extent = transformExtent(l.bbox, WGS84, this.map.getView().getProjection().getCode());
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.
I never had this error but your right, ol extent only accepts for numbers.
Can you please add |
I also recognised that we get a build error https://github.com/dlr-eoc/ukis-frontend-libraries/actions/runs/683627826
|
Oh, that's really interesting! |
map-ol.servce/create_wfs_layer for url-parsing & manipulation
for projection code
That is really strange, I thought more it is a wrong Import or missing configuration on |
Me too. |
Yes I also checked this, and don't found type errors in the code... Yes, if it is only a button which triggers the download and creates the layers, then we can remove it e.g. in |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: 73
What is the new behavior?
This is a PR to merge in our latest developments during the WUEKIS sprint.
As such, against usual procedure, this PR actually bundles two changes:
WmsService
, including the functionalitygetLayerFromCapabilities
andgetTimeDimensionFromLayer
that were already developed earlier.owc-json
andmap-ol
to read WFS-layers from files and display them in ol-maps.Does this PR introduce a breaking change?
Other information
Is it part of one/more packages and which?
@dlr-eoc/utils-ogc
@dlr-eoc/services-ogc
@dlr-eoc/map-ol
@dlr-eoc/services-layers
demo-maps