com.onthegomap.planetiler.reader.parquet.GeometryReader Maven / Gradle / Ivy
package com.onthegomap.planetiler.reader.parquet;
import com.onthegomap.planetiler.geo.GeoUtils;
import com.onthegomap.planetiler.geo.GeometryException;
import com.onthegomap.planetiler.geo.GeometryType;
import com.onthegomap.planetiler.reader.WithTags;
import com.onthegomap.planetiler.util.FunctionThatThrows;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
import org.locationtech.jts.geom.Geometry;
/**
* Decodes geometries from a parquet record based on the {@link GeoParquetMetadata} provided.
*/
class GeometryReader {
private final Map converters = new HashMap<>();
final String geometryColumn;
private record FormatHandler(
FunctionThatThrows
© 2015 - 2025 Weber Informatics LLC | Privacy Policy