Skip to content

Commit

Permalink
Fix default trueScaleLatitude value for cea projection
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Oct 4, 2017
1 parent d341ed1 commit bbdb6fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public class CylindricalEqualAreaProjection extends Projection {

private double qp;
private double[] apa;
private double trueScaleLatitude;

public CylindricalEqualAreaProjection() {
this(0.0, 0.0, 0.0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import geotrellis.raster.testkit._
import geotrellis.proj4._
import geotrellis.raster.io.geotiff._
import geotrellis.raster.io.geotiff.reader._

import org.scalatest._
import spire.syntax.cfor._

Expand Down Expand Up @@ -286,10 +285,10 @@ class ReprojectSpec extends FunSpec

it ("should reproject cea projection into WebMercator correctly") {
val geoTiff = SinglebandGeoTiff(geoTiffPath("reproject/cea.tif"))
// should throw no exceptions
geoTiff.raster.reproject(geoTiff.crs, WebMercator)
val raster = geoTiff.raster.reproject(geoTiff.crs, WebMercator)

geoTiff.crs.toProj4String should be ("+proj=cea +lat_ts=33.75 +lon_0=-117.333333333333 +x_0=0.0 +y_0=0.0 +datum=NAD27 +units=m ")
raster.extent should be (Extent(-1.3095719172012957E7, 3983866.9277966353, -1.305868719072902E7, 4021260.5495227976))
}
}
}

0 comments on commit bbdb6fa

Please sign in to comment.