object Reproject
This object contains various overloads for performing reprojections over geometries
- Alphabetic
- By Inheritance
- Reproject
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- def apply(g: Geometry, transform: Transform): Geometry
- def apply(g: Geometry, src: CRS, dest: CRS): Geometry
- def apply(gc: GeometryCollection, transform: Transform): GeometryCollection
- def apply(gc: GeometryCollection, src: CRS, dest: CRS): GeometryCollection
- def apply(mp: MultiPolygon, transform: Transform): MultiPolygon
- def apply(mp: MultiPolygon, src: CRS, dest: CRS): MultiPolygon
- def apply(ml: MultiLineString, transform: Transform): MultiLineString
- def apply(ml: MultiLineString, src: CRS, dest: CRS): MultiLineString
- def apply(mp: MultiPoint, transform: Transform): MultiPoint
- def apply(mp: MultiPoint, src: CRS, dest: CRS): MultiPoint
- def apply(extent: Extent, transform: Transform): Extent
-
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.
- def apply(p: Polygon, transform: Transform): Polygon
- def apply(p: Polygon, src: CRS, dest: CRS): Polygon
- def apply(l: LineString, transform: Transform): LineString
- def apply(l: LineString, src: CRS, dest: CRS): LineString
- def apply(p: Point, transform: Transform): Point
- def apply(p: Point, src: CRS, dest: CRS): Point
- def apply(t: (Double, Double), transform: Transform): (Double, Double)
- def apply(t: (Double, Double), src: CRS, dest: CRS): (Double, Double)
- def geometryCollectionFeature[D](gcf: GeometryCollectionFeature[D], transform: Transform): GeometryCollectionFeature[D]
- def geometryCollectionFeature[D](gcf: GeometryCollectionFeature[D], src: CRS, dest: CRS): GeometryCollectionFeature[D]
- def geometryFeature[D](f: Feature[Geometry, D], transform: Transform): Feature[Geometry, D]
- def geometryFeature[D](f: Feature[Geometry, D], src: CRS, dest: CRS): Feature[Geometry, D]
- def lineStringFeature[D](lf: LineStringFeature[D], transform: Transform): LineStringFeature[D]
- def lineStringFeature[D](lf: LineStringFeature[D], src: CRS, dest: CRS): LineStringFeature[D]
- def multiLineStringFeature[D](mlf: MultiLineStringFeature[D], transform: Transform): MultiLineStringFeature[D]
- def multiLineStringFeature[D](mlf: MultiLineStringFeature[D], src: CRS, dest: CRS): MultiLineStringFeature[D]
- def multiPointFeature[D](mpf: MultiPointFeature[D], transform: Transform): MultiPointFeature[D]
- def multiPointFeature[D](mpf: MultiPointFeature[D], src: CRS, dest: CRS): MultiPointFeature[D]
- def multiPolygonFeature[D](mpf: MultiPolygonFeature[D], transform: Transform): MultiPolygonFeature[D]
- def multiPolygonFeature[D](mpf: MultiPolygonFeature[D], src: CRS, dest: CRS): MultiPolygonFeature[D]
- def pointFeature[D](pf: PointFeature[D], transform: Transform): PointFeature[D]
- def pointFeature[D](pf: PointFeature[D], src: CRS, dest: CRS): PointFeature[D]
- def polygonFeature[D](pf: PolygonFeature[D], transform: Transform): PolygonFeature[D]
- def polygonFeature[D](pf: PolygonFeature[D], src: CRS, dest: CRS): PolygonFeature[D]
-
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