Codota Logo
FlatEarth.<init>
Code IndexAdd Codota to your IDE (free)

How to use
ucar.unidata.geoloc.projection.FlatEarth
constructor

Best Java code snippets using ucar.unidata.geoloc.projection.FlatEarth.<init> (Showing top 20 results out of 315)

  • Common ways to obtain FlatEarth
private void myMethod () {
FlatEarth f =
  • Codota Iconnew FlatEarth()
  • Codota Iconnew FlatEarth(double1, -100, double2)
  • Codota Iconnew ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rotAngle, radius)
  • Smart code suggestions by Codota
}
origin: edu.ucar/cdm

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
 FlatEarth a = new FlatEarth(90, -100, 0.0);
 ProjectionPoint p = a.latLonToProj(89, -101);
 System.out.println("proj point = " + p);
 LatLonPoint ll = a.projToLatLon(p);
 System.out.println("ll = " + ll);
}
origin: Unidata/thredds

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
 FlatEarth a = new FlatEarth(90, -100, 0.0);
 ProjectionPoint p = a.latLonToProj(89, -101);
 System.out.println("proj point = " + p);
 LatLonPoint ll = a.projToLatLon(p);
 System.out.println("ll = " + ll);
}
origin: edu.ucar/unidataCommon

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
  FlatEarth           a = new FlatEarth(90, -100, 0.0);
  ProjectionPointImpl p = a.latLonToProj(89, -101);
  System.out.println("proj point = " + p);
  LatLonPoint ll = a.projToLatLon(p);
  System.out.println("ll = " + ll);
}
origin: edu.ucar/netcdf

/**
 * Test
 *
 * @param args not used
 */
public static void main(String[] args) {
 FlatEarth a = new FlatEarth(90, -100, 0.0);
 ProjectionPointImpl p = a.latLonToProj(89, -101);
 System.out.println("proj point = " + p);
 LatLonPoint ll = a.projToLatLon(p);
 System.out.println("ll = " + ll);
}
origin: opengeospatial/geoapi

  @Override protected FlatEarth createProjection(final ParameterValueGroup p) {
    if (p == null) return new FlatEarth();
    return new FlatEarth(value(p, CF.LATITUDE_OF_PROJECTION_ORIGIN),
               value(p, CF.LONGITUDE_OF_PROJECTION_ORIGIN),
               value(p, FlatEarth.ROTATIONANGLE),
               earthRadius(p) / KILOMETRE);
  }
}
origin: edu.ucar/unidataCommon

 /** copy constructor - avoid clone !! */
public ProjectionImpl constructCopy() {
 return new FlatEarth( getOriginLat(), getOriginLon(), getRotationAngle());     
}
origin: edu.ucar/netcdf

/**
 * origin
 */
//private LatLonPointImpl origin;  // why are we keeping this?
@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle());
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: Unidata/thredds

@Test
public void testFlatEarth() {
 testProjectionProjMax(new FlatEarth(), 5000, 5000);
 FlatEarth p = new FlatEarth();
 FlatEarth p2 = (FlatEarth) p.constructCopy();
 assert p.equals(p2);
}
origin: edu.ucar/cdm

/**
 * origin
 */
//private LatLonPointImpl origin;  // why are we keeping this?
@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle());
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: Unidata/thredds

/**
 * origin
 */
//private LatLonPointImpl origin;  // why are we keeping this?
@Override
public ProjectionImpl constructCopy() {
 ProjectionImpl result = new FlatEarth(getOriginLat(), getOriginLon(), getRotationAngle());
 result.setDefaultMapArea(defaultMapArea);
 result.setName(name);
 return result;
}
origin: edu.ucar/cdm

 public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) {
  double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0);
  double earth_radius = getEarthRadiusInKm(ctv);

  ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius);
  return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
 }
}
origin: edu.ucar/netcdf

 public CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, Variable ctv) {
  double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0);
  double earth_radius = getEarthRadiusInKm(ctv);

  ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius);
  return new ProjectionCT(ctv.getShortName(), "FGDC", proj);
 }
}
origin: Unidata/thredds

 public ProjectionCT makeCoordinateTransform(AttributeContainer ctv, String geoCoordinateUnits) {
  double lon0 = readAttributeDouble( ctv, CF.LONGITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double lat0 = readAttributeDouble( ctv, CF.LATITUDE_OF_PROJECTION_ORIGIN, Double.NaN);
  double rot = readAttributeDouble( ctv, ucar.unidata.geoloc.projection.FlatEarth.ROTATIONANGLE, 0.0);
  double earth_radius = getEarthRadiusInKm(ctv);

  ucar.unidata.geoloc.projection.FlatEarth proj = new ucar.unidata.geoloc.projection.FlatEarth(lat0, lon0, rot, earth_radius);
  return new ProjectionCT(ctv.getName(), "FGDC", proj);
 }
}
origin: Unidata/thredds

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/cdm

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/netcdf

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: Unidata/thredds

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/cdm

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: edu.ucar/netcdf

ncfile.addVariable(null, yaxis);
ProjectionImpl projection = new FlatEarth(lat_min, lon_max);
origin: Unidata/thredds

switch (projType) {
 case 0: // for diagnostic runs with no georeferencing
  proj = new FlatEarth();
  projCT = new ProjectionCT("flat_earth", "FGDC", proj);
ucar.unidata.geoloc.projectionFlatEarth<init>

Javadoc

Constructor with default parameters

Popular methods of FlatEarth

  • addParameter
  • getOriginLat
    Get the origin latitude.
  • getOriginLon
    Get the origin longitude.
  • getRotationAngle
    Get the rotation angle.
  • latLonToProj
    Convert lat/lon coordinates to projection coordinates.
  • precalculate
    Precalculate some stuff
  • projToLatLon
    Convert lat/lon coordinates to projection coordinates.
  • toString
  • constructCopy
    origin
  • equals
    Check for equality with the Object in question

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now