Project

General

Profile

« Previous | Next » 

Revision be23f38b

Added by Andreas Müller over 12 years ago

bugfix for Coordinate Parser with whitespaces, Dateparsing, etc.

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/location/CoordinateConverter.java
368 368

  
369 369
    //removes whitespace characters
370 370
    private String removeWhiteSpace(String str){
371
        str = str.replaceFirst("\\s*", "");
371
        str = str.replaceFirst("\\s+", "");
372 372
        return str;
373 373
    }
374 374

  
......
397 397

  
398 398

  
399 399
    public ConversionResults tryConvert(String str){
400
        //some local variables
400
        //some local variables 
401 401
        int sign; //sign of the coordinate
402 402
        String[] decimalBit, ddmmss, ddmm; //arrays for splitting
403 403
        double dd = 0, mm = 0, ss = 0, mmm = 0, sss = 0, dec = 0; //parts of the coordinates

Also available in: Unified diff