import org.hibernate.search.annotations.SpatialMode;
import eu.etaxonomy.cdm.common.CdmUtils;
-import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
import eu.etaxonomy.cdm.strategy.parser.location.CoordinateConverter;
import eu.etaxonomy.cdm.strategy.parser.location.CoordinateConverter.ConversionResults;
import eu.etaxonomy.cdm.validation.Level2;
public static Double parseLatitude(String string) throws ParseException{
try{
- if (string == null){
+ if (string == null || string.isEmpty()){
return null;
}
string = setCurrentDoubleSeparator(string);
public static Double parseLongitude(String string) throws ParseException{
try {
- if (string == null){
+ if (string == null || string.isEmpty()){
return null;
}
string = setCurrentDoubleSeparator(string);
import java.util.Map;
/**
- * This class contains provides the set of applicable {@link Reference} fields per {@link ReferenceType}
+ * This class provides the set of applicable {@link Reference} fields per {@link ReferenceType}
* together with the type specific name of the getter.
* <p>
* All this information can in principle be generically retrieved from the reference interfaces. Creating and applying annotations