Package org.apache.sis.console
Class CRSCommand
java.lang.Object
org.apache.sis.console.CommandRunner
org.apache.sis.console.FormattedOutputCommand
org.apache.sis.console.CRSCommand
The "crs" sub-command.
CRS are considered as a kind of metadata here.
- Since:
- 0.3
- Version:
- 0.8
-
Field Summary
Fields inherited from class org.apache.sis.console.FormattedOutputCommand
convention, hasUnexpectedFileCount
Fields inherited from class org.apache.sis.console.CommandRunner
colors, commandName, debug, encoding, err, files, instance, locale, options, out, outputBuffer, TEST, timezone
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.console.FormattedOutputCommand
format, getNodeFilter, readMetadataOrCRS
Methods inherited from class org.apache.sis.console.CommandRunner
canNotOpen, error, hasContradictoryOptions, hasUnexpectedFileCount, help, useStandardInput
-
Constructor Details
-
CRSCommand
CRSCommand(int commandIndex, String... args) throws InvalidOptionException Creates the"crs"
sub-command.- Throws:
InvalidOptionException
-
-
Method Details
-
run
Prints metadata or CRS information.- Specified by:
run
in classCommandRunner
- Returns:
- 0 on success, or an exit code if the command failed for a reason other than an uncaught Java exception.
- Throws:
Exception
- if an error occurred while executing the sub-command.
-