]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Remove erroneus fix made in previous commit for district CSV import 42/3042/1
authorjsimomaa <jani.simomaa@gmail.com>
Wed, 24 Jul 2019 06:50:00 +0000 (09:50 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Wed, 24 Jul 2019 06:50:00 +0000 (09:50 +0300)
gitlab #56
APROS-15523

Change-Id: I2a3ce1e55609b55605252907817dc25267524468

org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java

index 139b63e8d0bfe9b6eb2e4a99358ef7d2c20e9092..7e2a0e1e23c8cbbb4cd258792f7201a02b044dbc 100644 (file)
@@ -519,7 +519,8 @@ public class DistrictImportUtils {
                     }
                     graph.claimLiteral(subject, relation, Double.parseDouble(stringValue), Bindings.DOUBLE);
                 } catch (NumberFormatException e) {
-                    throw new DatabaseException(e);
+                    LOGGER.error("Could not parse {} {} {} {}", row, index, subject, relation, e);
+                    //throw new DatabaseException(e);
                 }
             }
         }
@@ -554,7 +555,7 @@ public class DistrictImportUtils {
                     double y = Double.parseDouble(p[1]);
                     if (actualTransform != null) {
                         DirectPosition2D targetPos = new DirectPosition2D();
-                        DirectPosition2D sourcePos = new DirectPosition2D(x, y);
+                        DirectPosition2D sourcePos = new DirectPosition2D(y, x);
                         DirectPosition res = actualTransform.transform(sourcePos, targetPos);
                         double[] coords = res.getCoordinate();
                         x = coords[1];