This variable is used in the following components:
1 VectorTileMapOutputFormat.java
1) Generate the paintArea:
paintArea = new Rectangle(this.tileBuilderFactory.getOversampleX() *
mapWidth, this.tileBuilderFactory.getOversampleY() * mapHeight);
2) Generate the buffer:
if (this.tileBuilderFactory.shouldOversampleScale()) { // buffer
is in pixels (style pixels), need to convert to paint area pixels
buffer *= Math.max(Math.max(
this.tileBuilderFactory.getOversampleX(),this.tileBuilderFactory.getOversampleY()),1);
// if 0 (i.e. test case), don't expand }
2 PipelineBuilder.java
1) Create the context:
context.screenSimplificationDistance = PIXEL_BASE_SAMPLE_SIZE /
overSampleFactor; context.targetCRSSimplificationDistance =
Math.min(spans_targetCRS[0], spans_targetCRS[1]) / overSampleFactor;
context.screenMap.setSpans(spans_sourceCRS[0] / overSampleFactor,
spans_sourceCRS[1] / overSampleFactor);
And from MapBoxTileBuilderFactory I found this:
/** * For Mapbox tiles, since they are rendered in screen/tile space,
oversampling produces more * consistent results when zooming. See this
question here: * *
<p>https://github.com/mapbox/vector-tiles/issues/45 */ @Override
public boolean shouldOversampleScale() { return true; }
However the link is broken. :(
And as far as I know, the vector tile extent is 4096, but when I request a
vector tile with 256x256, the paintArea at runtime will be 4096*4096 and
8192*8192 for 512x512 tile request.
Also it seems that this variable still influences the simplification.
So anyone can provide an explanation?
?6?7
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users