public class CreateOverviewMapProcessor extends AbstractProcessor<CreateOverviewMapProcessor.Input,CreateOverviewMapProcessor.Output>
CreateMapProcessor is used.
Example Configuration:
attributes:
...
overviewMapDef: !overviewMap
width: 300
height: 200
maxDpi: 400
processors:
...
- !createOverviewMap
inputMapper: {
mapDef: map,
overviewMapDef: overviewMap
}
outputMapper: {
overviewMapSubReport: overviewMapOut,
layerGraphics: overviewMapLayerGraphics
}
Features:
The attribute overviewMap allows to overwrite all properties of the main map, for example to use different layers.
The overview map can have a different rotation than the main map. For example the main map is rotated and the overview map faces
north. But the overview map can also be rotated.
The style of the bbox rectangle can be changed by setting the style property.
See also: !overviewMap attribute
[[examples=verboseExample,overviewmap_tyger_ny_EPSG_900913]]| Modifier and Type | Class and Description |
|---|---|
static class |
CreateOverviewMapProcessor.Input
The Input object for the processor.
|
static class |
CreateOverviewMapProcessor.Output
Output for the processor.
|
AbstractProcessor.ContextProcessor.ExecutionContext| Constructor and Description |
|---|
CreateOverviewMapProcessor()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CreateOverviewMapProcessor.Input |
createInputParameter()
Returns a new/clean instance of a parameter object.
|
CreateOverviewMapProcessor.Output |
execute(CreateOverviewMapProcessor.Input values,
Processor.ExecutionContext context)
Perform the process on the input attributes.
|
protected void |
extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
Perform any extra validation a subclass may need to perform.
|
checkCancelState, getInputMapperBiMap, getInputPrefix, getOutputMapperBiMap, getOutputPrefix, getOutputType, setInputMapper, setInputPrefix, setOutputMapper, setOutputPrefix, setPrefix, toString, validatepublic final CreateOverviewMapProcessor.Input createInputParameter()
ProcessorValues object.
The way the properties will be looked up is to
Values object using the mapped property name
HasDefaultValue annotation is on the field for the property.
public final CreateOverviewMapProcessor.Output execute(CreateOverviewMapProcessor.Input values, Processor.ExecutionContext context) throws java.lang.Exception
Processorvalues - A Java object whose public fields are populated from the Values object
(which is used for transferring properties between processors).context - The execution context for a print task.Values object. The
key in the Values object is the name of the field or if there is a mapping in the
Processor.getOutputMapperBiMap() map, the mapped name. The key is determined in a similar way as for the input object.java.lang.Exceptionprotected final void extraValidation(java.util.List<java.lang.Throwable> validationErrors,
Configuration configuration)
AbstractProcessorextraValidation in class AbstractProcessor<CreateOverviewMapProcessor.Input,CreateOverviewMapProcessor.Output>validationErrors - a list to add errors to so that all validation errors are reported as one.configuration - the containing configuration