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 7c45c09
Show file tree
Hide file tree
Showing 2 changed files with 3 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,7 @@ import geotrellis.raster.testkit._
import geotrellis.proj4._
import geotrellis.raster.io.geotiff._
import geotrellis.raster.io.geotiff.reader._

import geotrellis.raster.io.geotiff.writer.GeoTiffWriter
import org.scalatest._
import spire.syntax.cfor._

Expand Down Expand Up @@ -286,10 +286,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 7c45c09

Please sign in to comment.