Class ShapefileUtils


  • public class ShapefileUtils
    extends Object
    The Class ShapefileUtils.
    • Constructor Detail

      • ShapefileUtils

        public ShapefileUtils()
    • Method Detail

      • getPointBuffer

        public static org.locationtech.jts.geom.Geometry getPointBuffer​(double longitude,
                                                                        double latitude,
                                                                        double distanceMeters)
                                                                 throws org.opengis.geometry.MismatchedDimensionException,
                                                                        org.opengis.referencing.operation.TransformException,
                                                                        org.opengis.referencing.FactoryException
        Uses ideas from https://geoaware.wordpress.com/2013/10/16/geodetic-buffers-with-geotools/
        Parameters:
        longitude - the longitude
        latitude - the latitude
        distanceMeters - the distance meters
        Returns:
        the point buffer
        Throws:
        org.opengis.geometry.MismatchedDimensionException - the mismatched dimension exception
        org.opengis.referencing.operation.TransformException - the transform exception
        org.opengis.referencing.FactoryException - the factory exception