Skip to content
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

GetMap request throws IllegalArgumentException: "bbox" should not be null #135

Open
emxsys opened this issue Nov 13, 2017 · 1 comment
Open
Assignees
Milestone

Comments

@emxsys
Copy link
Contributor

emxsys commented Nov 13, 2017

IllegalArgumentExceptions regarding a null "bbox" were being generated by WMS GetMap requests on a layer group that used styles that defined min and max scale denominators. The exceptions were being thrown when the higher resolution layers were requested (e.g., level 15).

Based on empirical evidence, the null bbox errors appear to be related to WMS requests for higher resolution tiles with a "tiled=true" param and without a "tilesOrigin" param. This issue was manifest in the WWSK Explorer but not the Layer Preview. It only occurred in some layer groups with styles defining the min/max scale denominators for the higher resolution imagery.

I removed the "tiled=true" param from the WWSK Explorer and the problem remained. I re-added the "tiled=true" and added a "tilesOrigin=-180,-90" and the problem was abated.

@emxsys emxsys added the bug label Nov 13, 2017
@emxsys emxsys self-assigned this Nov 13, 2017
@emxsys emxsys changed the title GetMap request generates IllegalArgumentException: Argument "bbox" should not be null GetMap request throws IllegalArgumentException: "bbox" should not be null Nov 13, 2017
@emxsys
Copy link
Contributor Author

emxsys commented Dec 27, 2017

Issue:

During the rendering of the GetMap request, the request's bbox is transformed to the layer's projection by ProjectionHandler.transformEnvelope. The bbox must be within the projection's "validArea." A null value is returned by transformEnvelope if the bbox is not within the valid area.

For example, assuming a layer group comprised of UTM projections, the bbox for a high-resolution tile on the US east coast would not intersect Hawaii's UTM Zone 4N. For a UTM projection the valid area is +-45 deg from its central meridian (see the TransverseMercatorHandlerFactory constructor).

emxsys added a commit that referenced this issue Jan 3, 2018
- Includes a GetMapCallback that culls layers outside of the bbox extents. Prevents null bbox IllegalArgument exceptions.
- The module is not included in the distribution.
- Resolves #135.
@pdavidc pdavidc modified the milestone: WWSK v0.5.1 Jan 16, 2018
@emxsys emxsys added this to the WWSK v0.6.0 milestone Jan 26, 2018
@emxsys emxsys modified the milestones: WWSK v0.6.0, WWSK v1.0.0 May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants