Revision 29580 trunk/extensions/extOracleSpatial/src/es/prodevelop/cit/gvsig/fmap/drivers/jdbc/oracle/OracleSpatialUtils.java

View differences:

OracleSpatialUtils.java
3209 3209

  
3210 3210
        return -1;
3211 3211
    }
3212
    
3213
    
3214
    public static String EXPONENTIAL_INDICES_CONDITION = null;
3215
    
3216
    static {
3217
    	
3218
    	String sb = "";
3219
    	int i=0;
3220
    	sb = "(rownum = 1)";
3221
    	for (i=2; i<20; i++) {
3222
    		sb = "(" + sb + " OR (rownum = " + i + "))";
3223
    	}
3224
    	int cnt = 0;
3225
    	float aux = 1;
3226
    	while (cnt < 35) {
3227
    		aux = aux * 1.5f;
3228
    		i = 20 + Math.round(aux);
3229
    		sb = "(" + sb + " OR (rownum = " + i + "))";
3230
    		cnt++;
3231
    	}
3232
		aux = aux * 1.5f;
3233
		i = 20 + Math.round(aux);
3234
		sb = "(" + sb + " OR (rownum = " + i + "))";
3235
		EXPONENTIAL_INDICES_CONDITION = sb;
3236
    }
3237
    
3238
	
3212 3239

  
3213

  
3214

  
3215

  
3216 3240
}

Also available in: Unified diff