Omaha #3403 Changed BoundingBoxUtil to accomodate CSW updates for PDA
Change-Id: Ia26235017d4f6c860a49e40eae210a94e9385c97 Former-commit-id: b91bc9cebc631ab14d13e3ae98a98ef51448ab7e
This commit is contained in:
parent
b229adbf38
commit
312246f60a
4 changed files with 52 additions and 20 deletions
|
@ -28,7 +28,7 @@
|
|||
<includes
|
||||
id="com.raytheon.uf.viz.common.core.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.localization.perspective.feature"
|
||||
version="0.0.0"/>
|
||||
|
@ -36,7 +36,7 @@
|
|||
<includes
|
||||
id="com.raytheon.uf.viz.core.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.core.maps.feature"
|
||||
version="0.0.0"/>
|
||||
|
@ -88,19 +88,19 @@
|
|||
<includes
|
||||
id="com.raytheon.uf.viz.ncep.core.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.ncep.dataplugins.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.viz.hydro.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.d2d.xy.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.ncep.displays.feature"
|
||||
version="0.0.0"/>
|
||||
|
@ -108,31 +108,31 @@
|
|||
<includes
|
||||
id="com.raytheon.uf.viz.ncep.nsharp.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.d2d.nsharp.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.archive.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.ncep.perspective.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.nwsauth.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.thinclient.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.useradmin.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.kml.export.feature"
|
||||
version="0.0.0"/>
|
||||
|
@ -140,7 +140,7 @@
|
|||
<includes
|
||||
id="com.raytheon.uf.viz.npp.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.d2d.skewt.feature"
|
||||
version="0.0.0"/>
|
||||
|
@ -148,11 +148,11 @@
|
|||
<includes
|
||||
id="com.raytheon.viz.volumebrowser.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.acarssounding.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.viz.avnfps.feature"
|
||||
version="0.0.0"/>
|
||||
|
@ -176,10 +176,14 @@
|
|||
<includes
|
||||
id="com.raytheon.uf.viz.d2d.ui.awips.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.registry.feature"
|
||||
version="0.0.0"/>
|
||||
version="0.0.0"/>
|
||||
|
||||
<includes
|
||||
id="com.raytheon.uf.viz.datadelivery.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
<requires>
|
||||
<import feature="com.raytheon.uf.viz.application.feature" version="1.0.0.qualifier"/>
|
||||
|
|
|
@ -162,4 +162,10 @@
|
|||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
<plugin
|
||||
id="org.apache.commons.net"
|
||||
download-size="0"
|
||||
install-size="0"
|
||||
version="0.0.0"/>
|
||||
|
||||
</feature>
|
||||
|
|
|
@ -417,7 +417,7 @@ public class BoundingBoxUtil {
|
|||
* @return
|
||||
* @throws OgcException
|
||||
*/
|
||||
public static ReferencedEnvelope convert2D(BoundingBoxType bbox2d)
|
||||
public static ReferencedEnvelope convert2D(net.opengis.ows.v_1_1_0.BoundingBoxType bbox2d)
|
||||
throws OgcException {
|
||||
List<Double> lc = bbox2d.getLowerCorner();
|
||||
List<Double> uc = bbox2d.getUpperCorner();
|
||||
|
@ -433,6 +433,27 @@ public class BoundingBoxUtil {
|
|||
DirectPosition max = convert(uc);
|
||||
return convert2D(min, max, bbox2d.getCrs());
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert 2d jaxb bounding box to JTS envelope
|
||||
*
|
||||
* @param bbox2d
|
||||
* @return
|
||||
* @throws OgcException
|
||||
*/
|
||||
public static ReferencedEnvelope convert2D(net.opengis.ows.v_1_0_0.BoundingBoxType bbox2d)
|
||||
throws OgcException {
|
||||
List<Double> lc = bbox2d.getLowerCorner();
|
||||
List<Double> uc = bbox2d.getUpperCorner();
|
||||
if (lc.size() != 2 || uc.size() != 2) {
|
||||
throw new OgcException(Code.InvalidParameterValue,
|
||||
"2D bounding box must have 2 dimensions");
|
||||
}
|
||||
DirectPosition min = convert(lc);
|
||||
DirectPosition max = convert(uc);
|
||||
return convert2D(min, max, bbox2d.getCrs());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Determine altitude reference of vertical axis
|
||||
|
|
|
@ -37,7 +37,8 @@ Require-Bundle: com.raytheon.uf.common.registry.schemas.ebxml;bundle-version="1.
|
|||
com.raytheon.uf.edex.security;bundle-version="1.14.0",
|
||||
org.opensaml;bundle-version="1.0.0",
|
||||
com.raytheon.uf.common.security;bundle-version="1.14.0",
|
||||
org.joda.time;bundle-version="1.6.2"
|
||||
org.joda.time;bundle-version="1.6.2",
|
||||
com.raytheon.uf.common.geospatial;bundle-version="1.14.2"
|
||||
Export-Package: com.raytheon.uf.edex.registry.ebxml,
|
||||
com.raytheon.uf.edex.registry.ebxml.acp,
|
||||
com.raytheon.uf.edex.registry.ebxml.dao,
|
||||
|
|
Loading…
Add table
Reference in a new issue