Interface AttributeReader

All Known Implementing Classes:
DefaultKmlReader, FastKmlReader, GeoJsonInstanceConverter, GeoPackageInstanceConverter, JacksonKmlReader, ShapeInstanceConverter

public interface AttributeReader
  • Method Details

    • read

      TileTransformInfo read(File file)
    • readAll

      List<TileTransformInfo> readAll(File file)
    • readEach

      default void readEach(File file, Consumer<TileTransformInfo> consumer)
    • transformGeometry

      default org.locationtech.jts.geom.Geometry transformGeometry(org.locationtech.jts.geom.Geometry polygon, org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCRS) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.FactoryException
      org.geotools.api.referencing.operation.TransformException
    • calculatePointCount

      default int calculatePointCount(org.locationtech.jts.geom.Geometry polygon, org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCRS, double proportion, double diameter) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.FactoryException
      org.geotools.api.referencing.operation.TransformException
    • getRandomPointsWithDensity

      default List<org.locationtech.jts.geom.Point> getRandomPointsWithDensity(org.locationtech.jts.geom.Geometry polygon, int count)
    • getRandomPointsWithDensity

      default List<org.locationtech.jts.geom.Point> getRandomPointsWithDensity(org.locationtech.jts.geom.Geometry polygon, double proportion, double diameter)
    • getRandomContainsPoints

      default List<org.locationtech.jts.geom.Point> getRandomContainsPoints(org.locationtech.jts.geom.Geometry polygon, org.locationtech.jts.geom.GeometryFactory geometryFactory, int count)
    • getRandomContainsPoints2

      default List<org.locationtech.jts.geom.Point> getRandomContainsPoints2(org.locationtech.jts.geom.Geometry polygon, org.locationtech.jts.geom.GeometryFactory geometryFactory, int count)
    • extractAttributes

      default Map<String,String> extractAttributes(org.geotools.api.feature.simple.SimpleFeature feature)
    • emitTileTransformInfos

      default void emitTileTransformInfos(String name, org.locationtech.jts.geom.Geometry geometry, org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, double density, double scale, double altitude, double heading, Map<String,String> attributes, org.locationtech.proj4j.CoordinateReferenceSystem targetCrs, Consumer<TileTransformInfo> consumer)
    • emitPolygonPoints

      default void emitPolygonPoints(String name, org.locationtech.jts.geom.Polygon polygon, org.geotools.api.referencing.crs.CoordinateReferenceSystem sourceCrs, double density, double scale, double altitude, double heading, Map<String,String> attributes, org.locationtech.proj4j.CoordinateReferenceSystem targetCrs, Consumer<TileTransformInfo> consumer)
    • emitPoint

      default void emitPoint(String name, org.locationtech.jts.geom.Point point, double altitude, double heading, double scale, Map<String,String> attributes, org.locationtech.proj4j.CoordinateReferenceSystem targetCrs, Consumer<TileTransformInfo> consumer)
    • castStringFromObject

      default String castStringFromObject(Object object, String defaultValue)