Coordinate transformation issue

by zxy55, (46 days ago)

Hi,
I hope that you don't have anything against me writing on english

I want to report a bug in latest version
Module-> Coordinate transformation
When I want to generate a report in .html i can't it retruns this error.

java.lang.NullPointerException: Cannot invoke "java.nio.file.Path.getFileName()" because "template" is null
 at org.applied_geodesy.jag3d/org.applied_geodesy.coordtrans.ui.menu.UIMenuBuilder.createReport(UIMenuBuilder.java:363)
 at org.applied_geodesy.jag3d/org.applied_geodesy.coordtrans.ui.menu.MenuEventHandler.handleAction(MenuEventHandler.java:108)
 at org.applied_geodesy.jag3d/org.applied_geodesy.coordtrans.ui.menu.MenuEventHandler.handle(MenuEventHandler.java:54)
 at org.applied_geodesy.jag3d/org.applied_geodesy.coordtrans.ui.menu.MenuEventHandler.handle(MenuEventHandler.java:1)
 at javafx.base@25.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
 at javafx.base@25.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
 at javafx.base@25.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
 at javafx.base@25.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
 at javafx.base@25.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
 at javafx.base@25.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
 at javafx.base@25.0.1/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
 at javafx.base@25.0.1/javafx.event.Event.fireEvent(Event.java:199)
 at javafx.controls@25.0.1/javafx.scene.control.MenuItem.fire(MenuItem.java:459)
 at javafx.controls@25.0.1/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.doSelect(ContextMenuContent.java:1426)
 at javafx.controls@25.0.1/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.lambda$createChildren$6(ContextMenuContent.java:1379)
 at javafx.base@25.0.1/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
 at javafx.base@25.0.1/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
 at javafx.base@25.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:232)
 at javafx.base@25.0.1/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:189)
 at javafx.base@25.0.1/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
 at javafx.base@25.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
 at javafx.base@25.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
 at javafx.base@25.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
 at javafx.base@25.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
 at javafx.base@25.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
 at javafx.base@25.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
 at javafx.base@25.0.1/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
 at javafx.base@25.0.1/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
 at javafx.base@25.0.1/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
 at javafx.base@25.0.1/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
 at javafx.base@25.0.1/javafx.event.Event.fireEvent(Event.java:199)
 at javafx.graphics@25.0.1/javafx.scene.Scene$MouseHandler.process(Scene.java:4061)
 at javafx.graphics@25.0.1/javafx.scene.Scene.processMouseEvent(Scene.java:1947)
 at javafx.graphics@25.0.1/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2784)
 at javafx.graphics@25.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.get(GlassViewEventHandler.java:353)
 at javafx.graphics@25.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.get(GlassViewEventHandler.java:255)
 at javafx.graphics@25.0.1/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424)
 at javafx.graphics@25.0.1/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:387)
 at javafx.graphics@25.0.1/com.sun.glass.ui.View.handleMouseEvent(View.java:573)
 at javafx.graphics@25.0.1/com.sun.glass.ui.View.notifyMouse(View.java:975)
 at javafx.graphics@25.0.1/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
 at javafx.graphics@25.0.1/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168)
 at java.base/java.lang.Thread.run(Thread.java:1474)

Also i'm wondering is it possible if I have like 20 points in source system, and 24 points in target system is it possible for Jag to automatically apply coordinate transformation parameter and calculate the missing points?

Coordinate transformation issue

by Micha ⌂, Bad Vilbel, (46 days ago) @ zxy55

Hello zxy55,

I hope that you don't have anything against me writing on english

You are welcome.

I want to report a bug in latest version
Module-> Coordinate transformation
When I want to generate a report in .html i can't it retruns this error.

Thank you for reporting. I was able to reproduce the error and to fix it within the new release. Please take a look to the new version JAG3Dv20260112. Let me know if something went wrong or is unexpected when using the new release.

Also i'm wondering is it possible if I have like 20 points in source system, and 24 points in target system is it possible for Jag to automatically apply coordinate transformation parameter and calculate the missing points?

Yes, that is possible. Please add these points to the source system. CoordTrans transforms the non-homogeneous points at the end of the estimation process.

All the best
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Tags:
JAG3D, Report, CoordTrans, v20260112

Coordinate transformation issue

by zxy55, (46 days ago) @ Micha

Hi Micha,
I can confirm now the report works perfectly.
I've tried adding the points to the source system by converting points from target system ( since they are known there, and unknown in target).
I don't know the backend of the code, but i have noticed if i include these unknow points, they affect the parameters of transformation.

Coordinate transformation issue

by Micha ⌂, Bad Vilbel, (45 days ago) @ zxy55

Hello zxy55,

I can confirm now the report works perfectly.

Thank you.

I don't know the backend of the code, but i have noticed if i include these unknow points, they affect the parameters of transformation.

I cannot confirm this behavior.

Let the source system be

# J. L. Awange, Erik W. Grafarend - Solving Algebraic Computational Problems in Geodesy and Geoinformatics
# ISBN: 978-3540234258
# 3D-Helmert-Transformation 
# Startsystem

      Solitude 664789.307 4157222.543 4774952.099
    Buoch-Zeil 688836.443 4149043.336 4778632.188
  Hohenneuffen 690340.078 4172803.511 4758129.701
   Kuehlenberg 642997.635 4177148.376 4760764.800
  Ex-Mergelaec 671808.029 4137012.190 4791128.215
 Ex-Hof-Asperg 666952.887 4146292.729 4783859.856
Ex-Kaisersbach 702670.738 4138759.902 4785552.196

and the target system be

# J. L. Awange, Erik W. Grafarend - Solving Algebraic Computational Problems in Geodesy and Geoinformatics
# ISBN: 978-3540234258
# 3D-Helmert-Transformation 
# Zielsystem

      Solitude 664818.678 4157870.237 4775416.524
    Buoch-Zeil 688865.785 4149691.049 4779096.588
  Hohenneuffen 690369.375 4173451.354 4758594.075
   Kuehlenberg 643026.700 4177796.064 4761228.899
  Ex-Mergelaec 671837.337 4137659.549 4791592.531
 Ex-Hof-Asperg 666982.151 4146940.228 4784324.099
Ex-Kaisersbach 702700.227 4139407.506 4786016.645

The parameters of the spatial Helmert transformation reads

[image]


If we add some random points to the source system

         NEW-1      1.000       2.000       3.000
      Solitude 664789.307 4157222.543 4774952.099
    Buoch-Zeil 688836.443 4149043.336 4778632.188
  Hohenneuffen 690340.078 4172803.511 4758129.701
         NEW-2      4.000       5.000       6.000
   Kuehlenberg 642997.635 4177148.376 4760764.800
  Ex-Mergelaec 671808.029 4137012.190 4791128.215
 Ex-Hof-Asperg 666952.887 4146292.729 4783859.856
Ex-Kaisersbach 702670.738 4138759.902 4785552.196
         NEW-3      7.000       8.000       9.000

the solution reads

[image]

and is identical.

/Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Tags:
Transformation, Helmert, Coordinate, result

Coordinate transformation issue

by zxy55, (44 days ago) @ Micha

Hi Micha, I want to thank you for explaining and maintaining this software and providing data for testing.
You were correct, it all works as you explained.

RSS Feed of thread