To Reproduce:
Send this incomplete command to geowave:
geowave ingest localtogw --gdelt.cql "BBOX(not_the_default_value, 1, 2, 3, 4)"
Expected Result:
Error messages are displayed, as well as usage information for the geowave ingest localtogw command.
Actual Result:
The usage information displays an incorrect default value:
--gdelt.cql
A CQL filter, only data matching this filter will be ingested
Default: BBOX(not_the_default_value, 1, 2, 3, 4)
NOTE: It appears that the value must be valid for this to occur - when I set --gdelt.cql foo, this bug did not happen.
Full message:
28 Jul 20:46:34 WARN [cli.GeoWaveMain] - Unable to execute operation
com.beust.jcommander.ParameterException: Requires arguments: <file or directory> <storename> <comma delimited index/group list>
at mil.nga.giat.geowave.core.ingest.operations.LocalToGeowaveCommand.execute(LocalToGeowaveCommand.java:88)
at mil.nga.giat.geowave.core.cli.GeoWaveMain.run(GeoWaveMain.java:87)
at mil.nga.giat.geowave.core.cli.GeoWaveMain.main(GeoWaveMain.java:53)
Usage: geowave ingest localToGW [options] <file or directory> <storename> <comma delimited index/group list>
Options:
--avro.avro
A flag to indicate whether avro feature serialization should be used
Default: false
--avro.cql
A CQL filter, only data matching this filter will be ingested
Default: <empty string>
--avro.typename
A comma-delimitted set of typenames to ingest, feature types matching the
specified typenames will be ingested (optional, by default all types will be
ingested)
-x, --extension
individual or comma-delimited set of file extensions to accept (optional)
-f, --formats
Explicitly set the ingest formats by name (or multiple comma-delimited
formats), if not set all available ingest formats will be used
--gdelt.avro
A flag to indicate whether avro feature serialization should be used
Default: false
--gdelt.cql
A CQL filter, only data matching this filter will be ingested
Default: BBOX(not_the_default_value, 1, 2, 3, 4)
--gdelt.extended
A flag to indicate whether extended data format should be used
Default: false
--gdelt.typename
A comma-delimitted set of typenames to ingest, feature types matching the
specified typenames will be ingested (optional, by default all types will be
ingested)
--geolife.avro
A flag to indicate whether avro feature serialization should be used
Default: false
--geolife.cql
A CQL filter, only data matching this filter will be ingested
Default: <empty string>
--geolife.typename
A comma-delimitted set of typenames to ingest, feature types matching the
specified typenames will be ingested (optional, by default all types will be
ingested)
--geotools-raster.coverage
Optional parameter to set the coverage name (default is the file name)
--geotools-raster.crs
A CRS override for the provided raster file
--geotools-raster.histogram
Build a histogram of samples per band on ingest for performing band
equalization
Default: false
--geotools-raster.mergeStrategy
Optional parameter to choose a tile merge strategy used for mosaic.
Default behavior will be `none`. Alternatively 'no-data' will mosaic the most
recent tile over previous tiles, except where there are no data values.
Default: none
--geotools-raster.nodata
Optional parameter to set 'no data' values, if 1 value is giving it is
applied for each band, if multiple are given then the first
totalNoDataValues/totalBands are applied to the first band and so on, so each band can have multiple
differing 'no data' values if needed
Default: []
--geotools-raster.pyramid
Build an image pyramid on ingest for quick reduced resolution query
Default: false
--geotools-raster.separateBands
Optional parameter to separate each band into its own coverage name. By
default the coverage name will have '_Bn' appended to it where `n` is the band's
index.
Default: false
--geotools-raster.tileSize
Optional parameter to set the tile size stored (default is 256)
Default: 256
--geotools-vector.cql
A CQL filter, only data matching this filter will be ingested
Default: <empty string>
--geotools-vector.data
A map of date field names to the date format of the file. Use commas to
separate each entry, then the first ':' character will separate the field name
from the format. Use '\,' to include a comma in the format. For example:
"time:MM:dd:YYYY,time2:YYYY/MM/dd hh:mm:ss" configures fields 'time' and 'time2' as dates with different
formats
--geotools-vector.type
Optional parameter that specifies specific type name(s) from the source
file
Default: []
--gpx.avro
A flag to indicate whether avro feature serialization should be used
Default: false
--gpx.cql
A CQL filter, only data matching this filter will be ingested
Default: <empty string>
--gpx.typename
A comma-delimitted set of typenames to ingest, feature types matching the
specified typenames will be ingested (optional, by default all types will be
ingested)
--tdrive.avro
A flag to indicate whether avro feature serialization should be used
Default: false
--tdrive.cql
A CQL filter, only data matching this filter will be ingested
Default: <empty string>
--tdrive.typename
A comma-delimitted set of typenames to ingest, feature types matching the
specified typenames will be ingested (optional, by default all types will be
ingested)
-t, --threads
number of threads to use for ingest, default to 1 (optional)
Default: 1
--twitter.avro
A flag to indicate whether avro feature serialization should be used
Default: false
--twitter.cql
A CQL filter, only data matching this filter will be ingested
Default: <empty string>
--twitter.typename
A comma-delimitted set of typenames to ingest, feature types matching the
specified typenames will be ingested (optional, by default all types will be
ingested)
-v, --visibility
The visibility of the data ingested (optional; default is 'public')
Unable to execute operation: Requires arguments: <file or directory> <storename> <comma delimited index/group list>
To Reproduce:
Send this incomplete command to geowave:
Expected Result:
Error messages are displayed, as well as usage information for the
geowave ingest localtogwcommand.Actual Result:
The usage information displays an incorrect default value:
NOTE: It appears that the value must be valid for this to occur - when I set
--gdelt.cql foo, this bug did not happen.Full message: