gpp-jts-awt


License

License

GroupId

GroupId

edu.gemini
ArtifactId

ArtifactId

gpp-jts-awt_2.13
Last Version

Last Version

0.0.9
Release Date

Release Date

Type

Type

jar
Description

Description

gpp-jts-awt
gpp-jts-awt
Project URL

Project URL

https://github.com/gemini-hlsw/gpp-jts
Project Organization

Project Organization

Association of Universities for Research in Astronomy, Inc. (AURA)
Source Code Management

Source Code Management

https://github.com/gemini-hlsw/gpp-jts

Download gpp-jts-awt_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/edu.gemini/gpp-jts-awt_2.13/ -->
<dependency>
    <groupId>edu.gemini</groupId>
    <artifactId>gpp-jts-awt_2.13</artifactId>
    <version>0.0.9</version>
</dependency>
// https://jarcasting.com/artifacts/edu.gemini/gpp-jts-awt_2.13/
implementation 'edu.gemini:gpp-jts-awt_2.13:0.0.9'
// https://jarcasting.com/artifacts/edu.gemini/gpp-jts-awt_2.13/
implementation ("edu.gemini:gpp-jts-awt_2.13:0.0.9")
'edu.gemini:gpp-jts-awt_2.13:jar:0.0.9'
<dependency org="edu.gemini" name="gpp-jts-awt_2.13" rev="0.0.9">
  <artifact name="gpp-jts-awt_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='edu.gemini', module='gpp-jts-awt_2.13', version='0.0.9')
)
libraryDependencies += "edu.gemini" % "gpp-jts-awt_2.13" % "0.0.9"
[edu.gemini/gpp-jts-awt_2.13 "0.0.9"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.2
edu.gemini : gpp-jts_2.13 jar 0.0.9

Project Modules

There are no modules declared in this project.

gpp-jts

This projects contains a port of JTS to scala. The rationale is the need to use it in both scala and scala.js.

The conversion was done using IntelliJ but the conversion is far from perfect and manual tweaking is required. For the same reasons bugs are expected. Ideally more tests should be included

Note: Only the minimal amount of code to use JTS in gsp-math was ported, about 150 classes

Potential issues on the conversion to scala

  • Lots of code use non generic java util collections. They need to be adjusted manually
  • Ports of for loops can be messy, especially if they include break/continue
  • Field initialization can be messy, in some cases fields are read before they are initialized
  • Some classes use TreeMap which is not supported in scala.js. Those need to be converted to scala.TreeMap

Tests

Only one test has been included to fix a bug. Ideally more should be converted. They don't need to run on java but may need to be adjusted to work with the scala code

AWT

A small awt package is also included but that is just a copy of the awt package as in the original java code It is only meant to be used on the JVM obviously

edu.gemini

Gemini High-Level Software Group

Versions

Version
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5