本文整理了Java中gov.nasa.worldwind.geom.Angle.fromDegreesLongitude()
方法的一些代码示例,展示了Angle.fromDegreesLongitude()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Angle.fromDegreesLongitude()
方法的具体详情如下:
包路径:gov.nasa.worldwind.geom.Angle
类名称:Angle
方法名:fromDegreesLongitude
暂无
代码示例来源:origin: Berico-Technologies/Geo-Coordinate-Conversion-Java
/**
* Create an arbitrary set of UTM coordinates with the given values.
*
* @param latitude the latitude <code>Angle</code>.
* @param longitude the longitude <code>Angle</code>.
* @param zone the UTM zone - 1 to 60.
* @param hemisphere the hemisphere, either {@link gov.nasa.worldwind.avlist.AVKey#NORTH} or {@link
* gov.nasa.worldwind.avlist.AVKey#SOUTH}.
* @param easting the easting distance in meters
* @param northing the northing distance in meters.
*
* @throws IllegalArgumentException if <code>latitude</code> or <code>longitude</code> is null.
*/
public UTMCoord(Angle latitude, Angle longitude, int zone, String hemisphere, double easting, double northing)
{
this(latitude, longitude, zone, hemisphere, easting, northing, Angle.fromDegreesLongitude(0.0));
}
代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider
/*******************************************************************************************************************
*
*
******************************************************************************************************************/
@Nonnull
private static Position toPosition (final @Nonnull Coordinate coordinate)
{
return new Position(Angle.fromDegreesLatitude(coordinate.getLatitude()),
Angle.fromDegreesLongitude(coordinate.getLongitude()),
coordinate.getAltitude()); // FIXME: meters/feet?
}
}
代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider
@Override
@Nonnull
public LatLon next()
{
final Coordinate coordinate = featureManagerSpi.findCoordinate(iterator.next());
return new LatLon(Angle.fromDegreesLatitude(coordinate.getLatitude()),
Angle.fromDegreesLongitude(coordinate.getLongitude()));
}
代码示例来源:origin: senbox-org/snap-desktop
Angle.fromDegreesLongitude(floats[0]), 0.0);
positions.add(firstPosition);
centreLat += floats[1];
it.currentSegment(floats);
positions.add(new Position(Angle.fromDegreesLatitude(floats[1]),
Angle.fromDegreesLongitude(floats[0]), 0.0));
Position centrePos = new Position(Angle.fromDegreesLatitude(centreLat), Angle.fromDegreesLongitude(centreLon), 0.0);
代码示例来源:origin: senbox-org/s1tbx
double vignette_half_side_deg = (180 / Math.PI) * 10000 / GLOBE_RADIUS;
polygonPositions.add(new Position(Angle.fromDegreesLatitude(latValues[ind] - vignette_half_side_deg), Angle.fromDegreesLongitude(lonValues[ind] - vignette_half_side_deg), 10.0));
polygonPositions.add(new Position(Angle.fromDegreesLatitude(latValues[ind] - vignette_half_side_deg), Angle.fromDegreesLongitude(lonValues[ind] + vignette_half_side_deg), 10.0));
polygonPositions.add(new Position(Angle.fromDegreesLatitude(latValues[ind] + vignette_half_side_deg), Angle.fromDegreesLongitude(lonValues[ind] + vignette_half_side_deg), 10.0));
polygonPositions.add(new Position(Angle.fromDegreesLatitude(latValues[ind] + vignette_half_side_deg), Angle.fromDegreesLongitude(lonValues[ind] - vignette_half_side_deg), 10.0));
polygonPositions.add(new Position(Angle.fromDegreesLatitude(latValues[ind] - vignette_half_side_deg), Angle.fromDegreesLongitude(lonValues[ind] - vignette_half_side_deg), 10.0));
代码示例来源:origin: senbox-org/s1tbx
final Position startPos = new Position(Angle.fromDegreesLatitude(latValues[ind]), Angle.fromDegreesLongitude(lonValues[ind]), 10.0);
final Position endPos = new Position(LatLon.greatCircleEndPosition(startPos, Angle.fromDegrees(waveDirValues[ind]), Angle.fromDegrees(arrowLength_deg)), 10.0);
代码示例来源:origin: senbox-org/snap-desktop
positions.add(new Position(Angle.fromDegreesLatitude(corner1.lat), Angle.fromDegreesLongitude(corner1.lon), 0.0));
positions.add(new Position(Angle.fromDegreesLatitude(corner2.lat), Angle.fromDegreesLongitude(corner2.lon), 0.0));
positions.add(new Position(Angle.fromDegreesLatitude(corner4.lat), Angle.fromDegreesLongitude(corner4.lon), 0.0));
positions.add(new Position(Angle.fromDegreesLatitude(corner3.lat), Angle.fromDegreesLongitude(corner3.lon), 0.0));
positions.add(new Position(Angle.fromDegreesLatitude(corner1.lat), Angle.fromDegreesLongitude(corner1.lon), 0.0));
Position centrePos = new Position(Angle.fromDegreesLatitude(centreLat), Angle.fromDegreesLongitude(centreLon), 0.0);
代码示例来源:origin: senbox-org/s1tbx
final Position startPos = new Position(Angle.fromDegreesLatitude(avgLat), Angle.fromDegreesLongitude(avgLon), 10.0);
final Position endPos = new Position(LatLon.greatCircleEndPosition(startPos, Angle.fromDegrees(avgWindDir), Angle.fromDegrees(arrowLength_deg)), 10.0);
double cumAvgWindSpeed = 0;
double cumAvgWindDir = 0;
Position cumStartPos = new Position(Angle.fromDegreesLatitude(0.0), Angle.fromDegreesLongitude(0.0), 10.0);
Position cumEndPos = new Position(Angle.fromDegreesLatitude(0.0), Angle.fromDegreesLongitude(0.0), 10.0);
double cumStartPosLat_deg = 0;
double cumStartPosLon_deg = 0;
Position bigCellStartPos = new Position(Angle.fromDegreesLatitude(cumStartPosLat_deg), Angle.fromDegreesLongitude(cumStartPosLon_deg), 10.0);
Position bigCellEndPos = new Position(LatLon.greatCircleEndPosition(bigCellStartPos, Angle.fromDegrees(cumAvgWindDir), Angle.fromDegrees(bigCellArrowLength_deg)), 10.0);
代码示例来源:origin: it.tidalwave.geo/it-tidalwave-geo-viewer-spi-worldwindprovider
Angle.fromDegreesLongitude(yyy.coordinates.getLongitude()),
hhh);
gl.glBegin(GL.GL_POINTS);
代码示例来源:origin: senbox-org/snap-desktop
@Override
protected SurfaceImage doInBackground() throws Exception {
try {
final Product newProduct = createSubsampledProduct(product);
final Band band = newProduct.getBandAt(0);
final BufferedImage image = ProductUtils.createRgbImage(new RasterDataNode[]{band},
band.getImageInfo(com.bc.ceres.core.ProgressMonitor.NULL),
com.bc.ceres.core.ProgressMonitor.NULL);
final GeoPos geoPos1 = product.getSceneGeoCoding().getGeoPos(new PixelPos(0, 0), null);
final GeoPos geoPos2 = product.getSceneGeoCoding().getGeoPos(new PixelPos(product.getSceneRasterWidth() - 1,
product.getSceneRasterHeight() - 1),
null
);
final Sector sector = new Sector(Angle.fromDegreesLatitude(geoPos1.getLat()),
Angle.fromDegreesLatitude(geoPos2.getLat()),
Angle.fromDegreesLongitude(geoPos1.getLon()),
Angle.fromDegreesLongitude(geoPos2.getLon()));
final SurfaceImage si = new SurfaceImage(image, sector);
si.setOpacity(getOpacity());
return si;
} catch (Exception e) {
//e.printStackTrace();
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!