// Path: neo4j-jdbc-bolt/src/main/java/org/neo4j/jdbc/utils/DataConverterUtils.java
// public static Map<String, Object> pointToMap(Point point) {
//     Map<String, Object> map = new HashMap<>();
//     map.put("srid",point.srid());
//     map.put("x", point.x());
//     map.put("y", point.y());
// 
//     switch(point.srid()){
//         case 7203:
//             map.put("crs","cartesian");
//             break;
//         case 9157:
//             map.put("crs","cartesian-3d");
//             map.put("z", point.z());
//             break;
//         case 4326:
//             map.put("crs","wgs-84");
//             map.put("longitude", point.x());
//             map.put("latitude", point.y());
//             break;
//         case 4979:
//             map.put("crs","wgs-84-3d");
//             map.put("longitude", point.x());
//             map.put("latitude", point.y());
//             map.put("height",point.z());
//             map.put("z", point.z());
//             break;
//     }
// 
//     return map;
// }


import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import org.neo4j.driver.types.Point;
import java.io.IOException;
import java.util.Map;
import static org.neo4j.jdbc.utils.DataConverterUtils.pointToMap;
package org.neo4j.jdbc.utils;




public class PointSerializer extends JsonSerializer<Point> {

    @Override
    public void serialize(Point value, JsonGenerator jsonGenerator, SerializerProvider serializers) throws IOException {
// Path: neo4j-jdbc-bolt/src/main/java/org/neo4j/jdbc/utils/DataConverterUtils.java
// public static Map<String, Object> pointToMap(Point point) {
//     Map<String, Object> map = new HashMap<>();
//     map.put("srid",point.srid());
//     map.put("x", point.x());
//     map.put("y", point.y());
// 
//     switch(point.srid()){
//         case 7203:
//             map.put("crs","cartesian");
//             break;
//         case 9157:
//             map.put("crs","cartesian-3d");
//             map.put("z", point.z());
//             break;
//         case 4326:
//             map.put("crs","wgs-84");
//             map.put("longitude", point.x());
//             map.put("latitude", point.y());
//             break;
//         case 4979:
//             map.put("crs","wgs-84-3d");
//             map.put("longitude", point.x());
//             map.put("latitude", point.y());
//             map.put("height",point.z());
//             map.put("z", point.z());
//             break;
//     }
// 
//     return map;
// }


// Path: neo4j-jdbc-bolt/src/main/java/org/neo4j/jdbc/utils/PointSerializer.java
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import org.neo4j.driver.types.Point;
import java.io.IOException;
import java.util.Map;
import static org.neo4j.jdbc.utils.DataConverterUtils.pointToMap;

package org.neo4j.jdbc.utils;




public class PointSerializer extends JsonSerializer<Point> {

    @Override
    public void serialize(Point value, JsonGenerator jsonGenerator, SerializerProvider serializers) throws IOException {
        Map<String, Object> point = pointToMap(value);