Packages

object Reproject

This object contains various overloads for performing reprojections over geometries

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reproject
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(g: Geometry, transform: Transform): Geometry
  2. def apply(g: Geometry, src: CRS, dest: CRS): Geometry
  3. def apply(gc: GeometryCollection, transform: Transform): GeometryCollection
  4. def apply(gc: GeometryCollection, src: CRS, dest: CRS): GeometryCollection
  5. def apply(mp: MultiPolygon, transform: Transform): MultiPolygon
  6. def apply(mp: MultiPolygon, src: CRS, dest: CRS): MultiPolygon
  7. def apply(ml: MultiLineString, transform: Transform): MultiLineString
  8. def apply(ml: MultiLineString, src: CRS, dest: CRS): MultiLineString
  9. def apply(mp: MultiPoint, transform: Transform): MultiPoint
  10. def apply(mp: MultiPoint, src: CRS, dest: CRS): MultiPoint
  11. def apply(extent: Extent, transform: Transform): Extent
  12. def apply(extent: Extent, src: CRS, dest: CRS): Extent

    Naively reproject an extent

    Naively reproject an extent

    Note

    This method is unsafe when attempting to reproject a gridded space (as is the case when dealing with rasters) and should not be used. Instead, reproject a RasterExtent to ensure that underlying cells are fully and accurately captured by reprojection.

  13. def apply(p: Polygon, transform: Transform): Polygon
  14. def apply(p: Polygon, src: CRS, dest: CRS): Polygon
  15. def apply(l: LineString, transform: Transform): LineString
  16. def apply(l: LineString, src: CRS, dest: CRS): LineString
  17. def apply(p: Point, transform: Transform): Point
  18. def apply(p: Point, src: CRS, dest: CRS): Point
  19. def apply(t: (Double, Double), transform: Transform): (Double, Double)
  20. def apply(t: (Double, Double), src: CRS, dest: CRS): (Double, Double)
  21. def geometryCollectionFeature[D](gcf: GeometryCollectionFeature[D], transform: Transform): GeometryCollectionFeature[D]
  22. def geometryCollectionFeature[D](gcf: GeometryCollectionFeature[D], src: CRS, dest: CRS): GeometryCollectionFeature[D]
  23. def geometryFeature[D](f: Feature[Geometry, D], transform: Transform): Feature[Geometry, D]
  24. def geometryFeature[D](f: Feature[Geometry, D], src: CRS, dest: CRS): Feature[Geometry, D]
  25. def lineStringFeature[D](lf: LineStringFeature[D], transform: Transform): LineStringFeature[D]
  26. def lineStringFeature[D](lf: LineStringFeature[D], src: CRS, dest: CRS): LineStringFeature[D]
  27. def multiLineStringFeature[D](mlf: MultiLineStringFeature[D], transform: Transform): MultiLineStringFeature[D]
  28. def multiLineStringFeature[D](mlf: MultiLineStringFeature[D], src: CRS, dest: CRS): MultiLineStringFeature[D]
  29. def multiPointFeature[D](mpf: MultiPointFeature[D], transform: Transform): MultiPointFeature[D]
  30. def multiPointFeature[D](mpf: MultiPointFeature[D], src: CRS, dest: CRS): MultiPointFeature[D]
  31. def multiPolygonFeature[D](mpf: MultiPolygonFeature[D], transform: Transform): MultiPolygonFeature[D]
  32. def multiPolygonFeature[D](mpf: MultiPolygonFeature[D], src: CRS, dest: CRS): MultiPolygonFeature[D]
  33. def pointFeature[D](pf: PointFeature[D], transform: Transform): PointFeature[D]
  34. def pointFeature[D](pf: PointFeature[D], src: CRS, dest: CRS): PointFeature[D]
  35. def polygonFeature[D](pf: PolygonFeature[D], transform: Transform): PolygonFeature[D]
  36. def polygonFeature[D](pf: PolygonFeature[D], src: CRS, dest: CRS): PolygonFeature[D]
  37. def reprojectExtentAsPolygon(extent: Extent, transform: Transform, relError: Double): Polygon

    Performs adaptive refinement to produce a Polygon representation of the projected region.

    Performs adaptive refinement to produce a Polygon representation of the projected region.

    Generally, rectangular regions become curvilinear regions after geodetic projection. This function creates a polygon giving an accurate representation of the post-projection region. This function does its work by recursively splitting extent edges, until a relative error criterion is met. That is,for an edge in the source CRS, endpoints, a and b, generate the midpoint, m. These are mapped to the destination CRS as a', b', and c'. If the distance from m' to the line a'-b' is greater than relErr * distance(a', b'), then m' is included in the refined polygon. The process recurses on (a, m) and (m, b) until termination.

    relError

    A tolerance value telling how much deflection is allowed in terms of distance from the original line to the new point