Commit 66a4cbef authored by Matija Obreza's avatar Matija Obreza

WIEWS export has decimal geo coordinates

parent 80481434
......@@ -29,7 +29,6 @@ import org.apache.commons.logging.LogFactory;
import org.genesys2.server.model.impl.Country;
import org.genesys2.server.model.impl.FaoInstitute;
import org.genesys2.server.model.impl.FaoInstituteSetting;
import org.genesys2.server.persistence.domain.CountryRepository;
import org.genesys2.server.persistence.domain.FaoInstituteRepository;
import org.genesys2.server.persistence.domain.FaoInstituteSettingRepository;
import org.genesys2.server.persistence.domain.GenesysLowlevelRepository;
......@@ -64,9 +63,6 @@ public class InstituteServiceImpl implements InstituteService {
@Autowired
private FaoInstituteSettingRepository instituteSettingRepository;
@Autowired
private CountryRepository countryRepository;
@Autowired
private ContentService contentService;
......
......@@ -234,9 +234,9 @@ public class InstituteUpdater {
faoInstitute.setEmail(email);
faoInstitute.setType(type);
faoInstitute.setUrl(url);
final Double lat = parseDoubleIgnore0(latitude, 100);
final Double lat = parseDoubleIgnore0(latitude, 1);
faoInstitute.setLatitude(lat);
final Double lon = parseDoubleIgnore0(longitude, 100);
final Double lon = parseDoubleIgnore0(longitude, 1);
faoInstitute.setLongitude(lon);
final Double elev = parseDoubleIgnore0(elevation, 1);
faoInstitute.setElevation(elev);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment