presto-geospatial-toolkit/src/main/java/io/prestosql/geospatial/serde/JtsGeometrySerde.java/JtsGeometrySerde/writeCoordinate
class JtsGeometrySerde:    private static void writeCoordinate(Coordinate coordinate, SliceOutput output)
    {
        output.writeDouble(translateToAVNaN(coordinate.x));
        output.writeDouble(translateToAVNaN(coordinate.y));
    }