Running oreczml tutorials

Hey. I was trying to run one of the oreczml-tutorial files. I managed to build and run oreczml-core and I also managed to successfully hook up the tutorials to the compiled oreczml-core.jar library, because the code runs until the very end where it’s writing out the .czml file, but at that point I have an issue where the oreczml-core package can’t find the satellite.png image file that it uses to generate the images.

Exception in thread "main" java.lang.RuntimeException: java.nio.file.NoSuchFileException: /home/baubin/Projects/Code/01-Orekit/oreczml/oreczml-tutorials/file:/home/baubin/.m2/repository/org/orekit/czml/1.0/czml-1.0.jar!/satellite.png
        at org.orekit.czml.object.primary.Satellite.writeCzmlBlock(Satellite.java:294)
        at org.orekit.czml.file.CzmlFile.write(CzmlFile.java:173)
        at org.orekit.czml.file.CzmlFile.write(CzmlFile.java:131)
        at org.orekit.czml.fieldofviewtuto.YawCompensationExample.main(YawCompensationExample.java:258)
Caused by: java.nio.file.NoSuchFileException: /home/baubin/Projects/Code/01-Orekit/oreczml/oreczml-tutorials/file:/home/baubin/.m2/repository/org/orekit/czml/1.0/czml-1.0.jar!/satellite.png

Also, here is the pom.xml file with my modifications to include the cesiumlangaugewriter and czml (oreczml-core) libraries

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.orekit</groupId>
        <artifactId>oreczml-parent</artifactId>
        <version>1.0</version>
    </parent>

    <artifactId>oreczml-tutorials</artifactId>
    <packaging>jar</packaging>

    <name>oreczml-tutorials</name>
    <url>https://gitlab.orekit.org/Zudo/oreczml</url>
    <description>OreCzml core module</description>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <oreczml.hipparchus.version>3.1</oreczml.hipparchus.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.orekit</groupId>
            <artifactId>orekit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.orekit</groupId>
            <artifactId>czml</artifactId>
            <version>${project.parent.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
	    <groupId>com.agi</groupId>
	    <artifactId>czml-writer</artifactId>
	    <version>3.0.0</version>
	</dependency>
        <dependency>
            <groupId>org.hipparchus</groupId>
            <artifactId>hipparchus-geometry</artifactId>
            <version>${oreczml.hipparchus.version}</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>

</project>

Thanks in advance for your help.

Hello @baubin,

This is indeed an issue in the code. You can use any picture you want as a workaround but the tutorial shall indeed work as is. I’m opening an issue on the gitlab.

I have also noticed this problem in the pom and it has been fixed on the develop branch.

UPDATE: Issue opened here YawCompensationExample needs a Satellite.png to work (#59) · Issues · Orekit / OreCZML · GitLab

Cheers,
Vincent

@Vincent Thanks for the update. Handling coding environments isn’t my best skill so I tend to assume that if something new that I set up fails to run, it’s because I messed it up somehow.

Yup the library is still very new so there is room for improvements and issues are to be expected.

To anyone reading this and using OreCZML : Feel free to ask questions on the forum and to raise issues so that we can fix them !

Cheers,
Vincent