Skip to content

Agisoft Metashape(c) Wrapper Java 1.8.4

Latest
Compare
Choose a tag to compare
@jseinturier jseinturier released this 28 Jul 13:14

The Agisoft Metashape(c) 1.8.4 Java wrapper.

Agisoft Metashape(c) wrapper jar can be integrated to Maven projects or can be used as standalone jar.

Integration

Maven

To import the library just add the following dependency to your maven project:

<!-- JOrigin repository -->          
<repository>
  <id>jorigin</id>
  <name>jorigin-maven</name>
  <url>https://maven.jorigin.org</url>
</repository>

<!-- The Agisoft Metashape Java  Wrapper -->
<dependency>
  <groupId>com.agisoft</groupId>
  <artifactId>metashape</artifactId>
  <version>1.8.4</version>
</dependency>

Standalone

The library can be used as a standalone by downloading the metashape-1.8.4.jar jar and integrating it to the classpath.

Usage

Integrate the jar to your project and make a call to org.metashape.MetashapeNatives.isAvailable() to check if the Agisoft Metashape(c) native wrapping is enabled.

If you are experiencing a No license for product (-1) error, it is recommended to define an agisoft_LICENSE environment variable that points to the folder where Agisoft Metashape(c) license file (default rlm_roam.lic or other .lic file) is stored. By default this folder is:

  • C:\Program Files\Agisoft\Metashape Pro on windows x64
  • C:\Program Files (x86)\Agisoft\Metashape Pro on windows x32