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

Post-process GetMap vector response to tag introduced bbox segments with <map-span class="bbox"> #51

Open
prushforth opened this issue Oct 26, 2022 · 0 comments
Labels

Comments

@prushforth
Copy link
Member

prushforth commented Oct 26, 2022

Background

In GetMap with format=text/mapml returns with rel=features for vector data it was established that MapML vector geometries returned by GetMap would be clipped to the boundary specified by the standard bbox GetMap parameter. When clipping point or line features, this process proceeds with little visual impact. When polygon or multipolygon geometry values are clipped, line segments created by the intersection of the bbox geometry with the multi/polygon being processed are introduced into the output geometry. The purpose of these line segments is to preserve the enclosure of space by the resulting polygon geometry.

A common map creation use case is to create a mosaic of GetMap image outputs, which may be accomplished by merging spatially adjacent image objects that have been previously generated, in the horizontal and vertical direction, often, but not exclusively, in a regular grid order (rows and columns). In order to create a visually continuous 2D image mosaic, the introduced line segments must have been removed or hidden during initial image rendering.

Requirement

  1. In the polygon geometries created as outputs from the GetMap clipping process in a MapML vector response form, wrap each of the introduced line segments in a <map-span class="bbox"> element. For reference see <map-span> documentation

  2. Ensure that a CSS class with a selector for bbox is present in the <map-style> element embedded in the response. The CSS rule for the bbox class should be as follows:

.bbox {
  display: none
}
  1. Ensure that WMS GetFeatureInfo for MapML vector data (at least, for WMS GetFeatureInfo requests with format=text/mapml&format_options=mapmlfeatures:true) MapML feature vector geometries are clipped, styled and processed per the requirement for GetMap, above.
@prushforth prushforth changed the title Post-process GetMap response to tag introduced bbox segments with <map-span class="bbox"> Post-process GetMap vector response to tag introduced bbox segments with <map-span class="bbox"> Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant