Strabon

changeset 481:f5b680870bd5

updated monetdb.DescribeOp accordingly
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Jul 20 15:14:07 2012 +0300 (2012-07-20)
parents 7bad4b0576f9
children 2e35628b10d0
files runtime/src/main/java/eu/earthobservatory/runtime/monetdb/DescribeOp.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/monetdb/DescribeOp.java	Fri Jul 20 15:12:53 2012 +0300
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/monetdb/DescribeOp.java	Fri Jul 20 15:14:07 2012 +0300
     1.3 @@ -14,8 +14,8 @@
     1.4  	 */
     1.5  	public static void main(String[] args) {
     1.6  
     1.7 -		if (args.length < 7) {
     1.8 -			System.err.println("Usage: eu.ist.semsorgrid4env.strabon.Strabon <HOST> <PORT> <DATABASE> <USERNAME> <PASSWORD> <QUERY> <FORMAT>");
     1.9 +		if (args.length < 6) {
    1.10 +			System.err.println("Usage: eu.ist.semsorgrid4env.strabon.Strabon <HOST> <PORT> <DATABASE> <USERNAME> <PASSWORD> <QUERY> [<FORMAT>]");
    1.11  			System.err.println("       where <HOST>       is the postgis database host to connect to");
    1.12  			System.err.println("             <PORT>       is the port to connect to on the database host");		
    1.13  			System.err.println("             <DATABASE>   is the spatially enabled postgis database that Strabon will use as a backend, ");
    1.14 @@ -32,7 +32,10 @@
    1.15  		String user = args[3];
    1.16  		String passwd = args[4];		
    1.17  		String queryString = args[5];
    1.18 -		String format = args[6];
    1.19 +		String format = null;
    1.20 +		if (args.length == 7) {
    1.21 +			format = args[6];
    1.22 +		}
    1.23  
    1.24  		Strabon strabon = null;
    1.25  		try {