|
|
@@ -40,14 +40,16 @@ public class CameraPhoto extends BaseObject<Integer> {
|
|
|
this.manufacturer = camPhoto.getManufacturer();
|
|
|
this.model = camPhoto.getModel();
|
|
|
this.software = camPhoto.getSoftware();
|
|
|
- if (camPhoto.getLongitude() != null) {
|
|
|
+ Double lng = camPhoto.getLongitude();
|
|
|
+ if (lng != null && lng != 0.0) {
|
|
|
this.longitude = BigDecimal.valueOf(camPhoto.getLongitude());
|
|
|
this.geoValid = true;
|
|
|
} else {
|
|
|
this.geoValid = false;
|
|
|
}
|
|
|
|
|
|
- if (camPhoto.getLatitude() != null) {
|
|
|
+ Double lat = camPhoto.getLatitude();
|
|
|
+ if (lat != null && lat != 0.0) {
|
|
|
this.latitude = BigDecimal.valueOf(camPhoto.getLatitude());
|
|
|
this.geoValid = true;
|
|
|
} else {
|