Use the JTS utility class for this:

```scala
JTS.toGeometry(env)
```