(String[] args)
| 464 | } |
| 465 | |
| 466 | public static void main(String[] args) { |
| 467 | |
| 468 | String sourceFilename = null; |
| 469 | String outputFilename = null; |
| 470 | String outputFormat = "GTiff"; |
| 471 | String layers = null; |
| 472 | String burnAttribute = null; |
| 473 | String where = null; |
| 474 | int outputType = gdalconstConstants.GDT_Float64; |
| 475 | String createOptions = null; |
| 476 | boolean quiet = false; |
| 477 | double[] minX = new double[1]; |
| 478 | double[] maxX = new double[1]; |
| 479 | double[] minY = new double[1]; |
| 480 | double[] maxY = new double[1]; |
| 481 | int sizeX = 0; |
| 482 | int sizeY = 0; |
| 483 | String SQL = null; |
| 484 | boolean hasClipSrc = false; |
| 485 | String clipSQL = null; |
| 486 | String clipLayer = null; |
| 487 | String clipWhere = null; |
| 488 | String outputSRS = null; |
| 489 | String algorithmAndOptions = null; |
| 490 | Geometry clipSrc = null; |
| 491 | Geometry spatialFilter = null; |
| 492 | ProgressCallback progressCallback = null; |
| 493 | String clipSrcDS = null; |
| 494 | boolean[] isXExtentSet = new boolean[1]; |
| 495 | boolean[] isYExtentSet = new boolean[1]; |
| 496 | |
| 497 | minX[0] = 0.0; |
| 498 | maxX[0] = 0.0; |
| 499 | minY[0] = 0.0; |
| 500 | maxY[0] = 0.0; |
| 501 | |
| 502 | isXExtentSet[0] = false; |
| 503 | isYExtentSet[0] = false; |
| 504 | |
| 505 | /* |
| 506 | * Register GDAL and OGR format(s) |
| 507 | */ |
| 508 | |
| 509 | gdal.AllRegister(); |
| 510 | ogr.RegisterAll(); |
| 511 | |
| 512 | /* |
| 513 | * Parse arguments |
| 514 | */ |
| 515 | |
| 516 | args = ogr.GeneralCmdLineProcessor(args); |
| 517 | |
| 518 | if (args.length < 2) { |
| 519 | Usage(); |
| 520 | } |
| 521 | |
| 522 | for (int i = 0; i < args.length; i++) { |
| 523 | if (args[i].equals("---utility_version")) { |
nothing calls this directly
no test coverage detected