diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF index cdaf6fc763..544046a417 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF @@ -13,7 +13,7 @@ Require-Bundle: com.raytheon.uf.common.dataplugin;bundle-version="1.12.1174", com.raytheon.uf.common.dataplugin.satellite;bundle-version="1.0.0", com.raytheon.uf.common.serialization;bundle-version="1.12.1174", com.raytheon.uf.common.serialization.comm;bundle-version="1.12.1174", - com.raytheon.uf.common.geospatial;bundle-version="1.14.0", + com.raytheon.uf.common.geospatial;bundle-version="1.14.1", com.raytheon.uf.common.dataquery;bundle-version="1.0.0", com.raytheon.uf.common.datastorage;bundle-version="1.12.1174", com.raytheon.uf.common.localization;bundle-version="1.12.1174", diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java index 525fff7d4e..00201fa149 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java @@ -43,6 +43,8 @@ import com.vividsolutions.jts.geom.Envelope; * Sep 30, 2013 2333 mschenke Refactored to store points in crs space * Apr 15, 2014 3017 bsteffen Add new getCoverage methods to support * either one corner + dx/dy or two corners. + * Jun 05, 2014 3243 bsteffen Remove deprecated lambert conformal call. + * * * */ @@ -327,7 +329,7 @@ public class SatSpatialFactory { private static ProjectedCRS createLambertCrs(double latin, double lov) { return MapUtil.constructLambertConformal(MapUtil.AWIPS_EARTH_RADIUS, - MapUtil.AWIPS_EARTH_RADIUS, latin, latin, lov); + MapUtil.AWIPS_EARTH_RADIUS, latin, latin, lov, latin); } private static ProjectedCRS createEqCylCrs(double latin, double lov) { diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java index a6c6f9de10..8074193b16 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java @@ -46,12 +46,14 @@ import com.vividsolutions.jts.geom.Coordinate; * * SOFTWARE HISTORY * - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * May 18, 2011 mnash Initial creation - * Sep 10, 2012 15337 kshresth Changed sector on OCONUS:Products under - * Derived Products Imagery Display - * Nov 01, 2012 15346 kshresth Added Satellite Products for OCONUS + * Date Ticket# Engineer Description + * ------------- -------- ----------- -------------------------- + * May 18, 2011 mnash Initial creation + * Sep 10, 2012 15337 kshresth Changed sector on OCONUS:Products under + * Derived Products Imagery Display + * Nov 01, 2012 15346 kshresth Added Satellite Products for OCONUS + * Jun 05, 2014 3243 bsteffen Remove deprecated lambert conformal call. + * * * * @@ -65,7 +67,7 @@ public class SatelliteMenuUtil extends AbstractMenuUtil { private static final CoordinateReferenceSystem conusCRS = MapUtil .constructLambertConformal(MapUtil.AWIPS_EARTH_RADIUS, - MapUtil.AWIPS_EARTH_RADIUS, 25, 25, -95); + MapUtil.AWIPS_EARTH_RADIUS, 25, 25, -95, 25); // The western edge of the west conus satellite image in conusCRS private static final double westConusWestEdge = -4226066.525608903; diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/META-INF/MANIFEST.MF index dd537b6ce7..d328d2ad2c 100644 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/META-INF/MANIFEST.MF +++ b/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/META-INF/MANIFEST.MF @@ -18,7 +18,7 @@ Require-Bundle: org.geotools, com.raytheon.uf.common.dataaccess;bundle-version="1.0.0", com.raytheon.uf.common.dataquery;bundle-version="1.0.0", com.raytheon.uf.common.datastorage;bundle-version="1.12.1174", - com.raytheon.uf.common.geospatial;bundle-version="1.14.0", + com.raytheon.uf.common.geospatial;bundle-version="1.14.1", com.raytheon.uf.common.numeric;bundle-version="1.14.0" Export-Package: com.raytheon.uf.common.dataplugin.gfe, com.raytheon.uf.common.dataplugin.gfe.config, diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/src/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.java b/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/src/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.java index 3f727c93b3..474d15bfdd 100644 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/src/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.java +++ b/edexOsgi/com.raytheon.uf.common.dataplugin.gfe/src/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.java @@ -61,6 +61,8 @@ import com.vividsolutions.jts.geom.Coordinate; * 05/14/2014 #3069 randerso Changed to store math transforms and CRS instead of * GridGeometry2D since GeoTools now changes the supplied * math transform when creating GridGeometry2D + * 06/05/2014 #3243 bsteffen Remove deprecated lambert conformal call. + * * * * @@ -93,7 +95,7 @@ public class ProjectionData { /** Lat/Lon (implemented as Equidistant Cylindrical) map projection */ LATLON - }; + } @Column(length = 32, nullable = false) @DynamicSerializeElement @@ -311,7 +313,7 @@ public class ProjectionData { crs = MapUtil.constructLambertConformal( MapUtil.AWIPS_EARTH_RADIUS, MapUtil.AWIPS_EARTH_RADIUS, this.stdParallelOne, this.stdParallelTwo, - this.latLonOrigin.x); + this.latLonOrigin.x, this.latLonOrigin.y); break; case MERCATOR: diff --git a/edexOsgi/com.raytheon.uf.common.gridcoverage/src/com/raytheon/uf/common/gridcoverage/LambertConformalGridCoverage.java b/edexOsgi/com.raytheon.uf.common.gridcoverage/src/com/raytheon/uf/common/gridcoverage/LambertConformalGridCoverage.java index f547efa10f..3bafad0035 100644 --- a/edexOsgi/com.raytheon.uf.common.gridcoverage/src/com/raytheon/uf/common/gridcoverage/LambertConformalGridCoverage.java +++ b/edexOsgi/com.raytheon.uf.common.gridcoverage/src/com/raytheon/uf/common/gridcoverage/LambertConformalGridCoverage.java @@ -52,11 +52,13 @@ import com.raytheon.uf.common.status.UFStatus.Priority; * * SOFTWARE HISTORY * - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * 4/7/09 1994 bphillip Initial Creation - * 09/10/2012 DR 15270 D. Friedman Fix subgrid model name handling. - * Jan 17, 2014 2125 rjpeter Removed invalid @Table annotation. + * Date Ticket# Engineer Description + * ------------- -------- ----------- -------------------------- + * Apr 07, 2009 1994 bphillip Initial Creation + * Sep 10, 2012 15270 D. Friedman Fix subgrid model name handling. + * Jan 17, 2014 2125 rjpeter Removed invalid @Table annotation. + * Jun 05, 2014 3243 bsteffen Remove deprecated lambert conformal call. + * * * * @author bphillip @@ -121,7 +123,7 @@ public class LambertConformalGridCoverage extends GridCoverage { @Override public void initialize() throws GridCoverageException { crs = MapUtil.constructLambertConformal(majorAxis, minorAxis, latin1, - latin2, lov); + latin2, lov, latin1); crsWKT = crs.toWKT(); generateGeometry(); } diff --git a/ncep/gov.noaa.nws.ncep.common.dataplugin.mcidas/src/gov/noaa/nws/ncep/common/dataplugin/mcidas/McidasSpatialFactory.java b/ncep/gov.noaa.nws.ncep.common.dataplugin.mcidas/src/gov/noaa/nws/ncep/common/dataplugin/mcidas/McidasSpatialFactory.java index d42fb5e748..7fd8e74a16 100644 --- a/ncep/gov.noaa.nws.ncep.common.dataplugin.mcidas/src/gov/noaa/nws/ncep/common/dataplugin/mcidas/McidasSpatialFactory.java +++ b/ncep/gov.noaa.nws.ncep.common.dataplugin.mcidas/src/gov/noaa/nws/ncep/common/dataplugin/mcidas/McidasSpatialFactory.java @@ -11,6 +11,7 @@ * 12/2009 144 T. Lee Migrated to TO11D6 * 11/2013 1066 G. Hull constructCRSfromWKT (from McidasMapCoverage) * 03/2014 TTR957 B. Yin Moved constructCRSfromWKT to McidasCRSBuilder + * 06/2014 3243 bsteffen Remove deprecated lambert conformal call. * * * @@ -174,7 +175,7 @@ public class McidasSpatialFactory { clon); } else if (mapProjection == 3) { crs = MapUtil.constructLambertConformal(earthRadius, earthRadius, - stdlat1, stdlat2, clon); + stdlat1, stdlat2, clon, stdlat1); } else { if (stdlat1 >= 0.) crs = MapUtil.constructNorthPolarStereo(earthRadius, @@ -342,7 +343,6 @@ public class McidasSpatialFactory { // Check the database to see if a coverage already exists mapCoverage = satDao.getSatCoverage(iproj, nx, ny, upperLeftElement, upperLeftLine, xres, yres, encodedNav); - // TODO // If the database does not contain an existing sat map coverage for // the given values, create one diff --git a/ncep/gov.noaa.nws.ncep.viz.common/src/gov/noaa/nws/ncep/viz/common/area/StationDbAreaProviderFactory.java b/ncep/gov.noaa.nws.ncep.viz.common/src/gov/noaa/nws/ncep/viz/common/area/StationDbAreaProviderFactory.java index 99fcd0cebe..af5ddb1352 100644 --- a/ncep/gov.noaa.nws.ncep.viz.common/src/gov/noaa/nws/ncep/viz/common/area/StationDbAreaProviderFactory.java +++ b/ncep/gov.noaa.nws.ncep.viz.common/src/gov/noaa/nws/ncep/viz/common/area/StationDbAreaProviderFactory.java @@ -9,13 +9,9 @@ import java.util.List; import java.util.Map; import org.geotools.coverage.grid.GeneralGridGeometry; -import org.geotools.referencing.operation.DefaultMathTransformFactory; -import org.opengis.parameter.ParameterValueGroup; import org.opengis.referencing.crs.CoordinateReferenceSystem; -import org.opengis.referencing.crs.ProjectedCRS; import com.raytheon.uf.common.geospatial.MapUtil; -import com.raytheon.uf.common.status.UFStatus.Priority; import com.raytheon.uf.viz.core.catalog.DirectDbQuery; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.map.MapDescriptor; @@ -25,20 +21,22 @@ import com.vividsolutions.jts.io.ParseException; import com.vividsolutions.jts.io.WKBReader; /** - * generate a PredefinedArea (IGridGeometryProvider) from a station in common_obs_spatial. - * - * TODO : allow user to set/override the projection and/or the extents. - * + * generate a PredefinedArea (IGridGeometryProvider) from a station in + * common_obs_spatial. + * + * TODO : allow user to set/override the projection and/or the extents. + * *
* * SOFTWARE HISTORY * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * 05/20/14 #862 Greg Hull Created. + * 06/06/14 #3243 bsteffen Remove deprecated lambert conformal call. * ** - * @author + * @author * @version 1 */ public class StationDbAreaProviderFactory implements INcAreaProviderFactory { @@ -274,7 +272,7 @@ public class StationDbAreaProviderFactory implements INcAreaProviderFactory { else if( proj.equals( "Lambert_Conformal_Conic_1SP" ) ) { return MapUtil.constructLambertConformal( MapUtil.AWIPS_EARTH_RADIUS, MapUtil.AWIPS_EARTH_RADIUS, - loc.y, loc.y, loc.x ); + loc.y, loc.y, loc.x, loc.y); } else { return null; diff --git a/ncep/gov.noaa.nws.ncep.viz.gempak/src/gov/noaa/nws/ncep/viz/gempak/util/GempakGrid.java b/ncep/gov.noaa.nws.ncep.viz.gempak/src/gov/noaa/nws/ncep/viz/gempak/util/GempakGrid.java index c91e890381..598efc5277 100644 --- a/ncep/gov.noaa.nws.ncep.viz.gempak/src/gov/noaa/nws/ncep/viz/gempak/util/GempakGrid.java +++ b/ncep/gov.noaa.nws.ncep.viz.gempak/src/gov/noaa/nws/ncep/viz/gempak/util/GempakGrid.java @@ -1,10 +1,5 @@ package gov.noaa.nws.ncep.viz.gempak.util; -import java.util.ArrayList; - -import com.raytheon.uf.common.gridcoverage.LambertConformalGridCoverage; -import com.raytheon.uf.common.gridcoverage.LatLonGridCoverage; -import com.raytheon.uf.common.gridcoverage.PolarStereoGridCoverage; import gov.noaa.nws.ncep.viz.gempak.grid.jna.GridDiag; import javax.measure.converter.UnitConverter; @@ -18,7 +13,9 @@ import org.opengis.referencing.crs.CoordinateReferenceSystem; import com.raytheon.uf.common.geospatial.ISpatialObject; import com.raytheon.uf.common.geospatial.MapUtil; -import com.raytheon.uf.viz.core.comm.Connector; +import com.raytheon.uf.common.gridcoverage.LambertConformalGridCoverage; +import com.raytheon.uf.common.gridcoverage.LatLonGridCoverage; +import com.raytheon.uf.common.gridcoverage.PolarStereoGridCoverage; import com.raytheon.uf.viz.core.exception.VizException; import com.sun.jna.Native; import com.sun.jna.ptr.IntByReference; @@ -269,8 +266,7 @@ public class GempakGrid { CharSequence spacingUnit = "km"; double dx = 12.191; double dy = 12.191; - crs = MapUtil.constructLambertConformal(majorAxis, minorAxis, latin1, - latin2, lov); + crs = MapUtil.constructLambertConformal(majorAxis, minorAxis, latin1, latin2, lov, latin1); crsWKT = crs.toWKT(); try { Unit> spacingUnitObj = Unit.valueOf(spacingUnit); diff --git a/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/src/gov/noaa/nws/ncep/viz/rsc/ncgrid/customCoverage/CustomLambertConformalCoverage.java b/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/src/gov/noaa/nws/ncep/viz/rsc/ncgrid/customCoverage/CustomLambertConformalCoverage.java index 748b994c8b..cefe3aef6a 100644 --- a/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/src/gov/noaa/nws/ncep/viz/rsc/ncgrid/customCoverage/CustomLambertConformalCoverage.java +++ b/ncep/gov.noaa.nws.ncep.viz.rsc.ncgrid/src/gov/noaa/nws/ncep/viz/rsc/ncgrid/customCoverage/CustomLambertConformalCoverage.java @@ -51,7 +51,7 @@ public class CustomLambertConformalCoverage extends CustomCoverage { public boolean build() { crs = MapUtil.constructLambertConformal(majorAxis, minorAxis, latin1, - latin2, lov); + latin2, lov, latin1); try { Unit> spacingUnitObj = Unit.valueOf(spacingUnit); if (spacingUnitObj.isCompatible(SI.METRE)) {