Class RenderingCLI
java.lang.Object
org.openstreetmap.josm.gui.mappaint.RenderingCLI
- All Implemented Interfaces:
CLIModule
Command line interface for rendering osm data to an image file.
- Since:
- 12906
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum(package private) static classData class to hold return values fordetermineRenderingArea(DataSet). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LatLonprivate Boundsprivate RenderingHelper.StyleDataprivate booleanprivate Doubleprivate Integerprivate Stringprivate Integerprivate Stringprivate Stringprivate Doubleprivate List<RenderingHelper.StyleData>private booleanprivate Doubleprivate Integerprivate Integerprivate static final intstatic final RenderingCLIThe singleton instance of this class.private static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void(package private) RenderingCLI.RenderingAreaFind the area to render and the scale, given certain command line options and the dataset.Get the action keyword that the user needs to provide as first command line argument to invoke this module.private static StringgetHelp()private Levelprivate voidprivate voidhandleOption(RenderingCLI.Option o, String arg) (package private) voidInitialization.private DataSet(package private) voidparseArguments(String[] argArray) Parse command line arguments and do some low-level error checking.voidprocessArguments(String[] argArray) Process the remaining command line arguments and run any of the requested actions.static voidshowHelp()Displays help on the consoleprivate voidwriteImageToFile(BufferedImage image)
-
Field Details
-
INSTANCE
The singleton instance of this class. -
PIXEL_PER_METER
- See Also:
-
DEFAULT_MAX_IMAGE_SIZE
- See Also:
-
argDebug
-
argTrace
-
argInput
-
argOutput
-
argStyles
-
argZoom
-
argScale
-
argBounds
-
argAnchor
-
argWidthM
-
argHeightM
-
argWidthPx
-
argHeightPx
-
argProjection
-
argMaxImageSize
-
argCurrentStyle
-
-
Constructor Details
-
RenderingCLI
-
-
Method Details
-
getActionKeyword
Description copied from interface:CLIModuleGet the action keyword that the user needs to provide as first command line argument to invoke this module.- Specified by:
getActionKeywordin interfaceCLIModule- Returns:
- the action keyword of this module
-
processArguments
Description copied from interface:CLIModuleProcess the remaining command line arguments and run any of the requested actions.- Specified by:
processArgumentsin interfaceCLIModule- Parameters:
argArray- command line arguments without the initial action keyword
-
parseArguments
Parse command line arguments and do some low-level error checking.- Parameters:
argArray- the arguments array
-
handleOption
-
handleOption
-
showHelp
Displays help on the console -
getHelp
-
initialize
void initialize()Initialization. Requires arguments to be parsed already (parseArguments(java.lang.String[])). -
getLogLevel
-
determineRenderingArea
Find the area to render and the scale, given certain command line options and the dataset.- Parameters:
ds- the dataset- Returns:
- area to render and the scale
-
loadDataset
- Throws:
IOExceptionIllegalDataException
-
checkPreconditions
-
writeImageToFile
- Throws:
IOException
-