Codota Logo
DirectPositionType.setDimension
Code IndexAdd Codota to your IDE (free)

How to use
setDimension
method
in
net.opengis.gml.DirectPositionType

Best Java code snippets using net.opengis.gml.DirectPositionType.setDimension (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: geotools/geotools

/**
 *
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated modifiable
 */
public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
  SpatialSubsetType spatialSubset = Wcs10Factory.eINSTANCE.createSpatialSubsetType();
  List<Node> envelopes = node.getChildren("Envelope");
  for (Node envelopeNode : envelopes) {
    ReferencedEnvelope envelope = (ReferencedEnvelope) envelopeNode.getValue();
    EnvelopeType env = Gml4wcsFactory.eINSTANCE.createEnvelopeType();
    env.setSrsName(CRS.lookupIdentifier(envelope.getCoordinateReferenceSystem(), true));
    DirectPositionType pos1 = Gml4wcsFactory.eINSTANCE.createDirectPositionType();
    DirectPositionType pos2 = Gml4wcsFactory.eINSTANCE.createDirectPositionType();
    pos1.setDimension(BigInteger.valueOf(2));
    pos2.setDimension(BigInteger.valueOf(2));
    pos1.setValue(Arrays.asList(envelope.getMinX(), envelope.getMinY()));
    pos2.setValue(Arrays.asList(envelope.getMaxX(), envelope.getMaxY()));
    env.getPos().add(pos1);
    env.getPos().add(pos2);
    spatialSubset.getEnvelope().add(envelope);
  }
  List<Node> gridsNode = node.getChildren("Grid");
  for (Node grid : gridsNode) spatialSubset.getGrid().add(grid.getValue());
  return spatialSubset;
}
origin: org.geoserver/gs-wcs1_0

dp.setDimension(grid.getDimension());
dp.setValue(Arrays.asList(origX, origY));
grid.setOrigin(origin);
net.opengis.gmlDirectPositionTypesetDimension

Javadoc

Sets the value of the ' net.opengis.gml.DirectPositionType#getDimension' attribute.

Popular methods of DirectPositionType

  • getSrsName
    Gets the "srsName" attribute
  • getStringValue
  • getValue
    Returns the value of the 'Value' attribute. If the meaning of the 'Value' attribute isn't clear, the
  • setSrsName
    Sets the "srsName" attribute
  • setStringValue
  • setValue
    Sets the value of the ' net.opengis.gml.DirectPositionType#getValue' attribute.
  • set
  • <init>
  • getAxisLabels
    Gets the "axisLabels" attribute
  • getDomNode
  • getListValue
  • getSrsDimension
    Gets the "srsDimension" attribute
  • getListValue,
  • getSrsDimension,
  • getUomLabels,
  • isSetAxisLabels,
  • isSetSrsDimension,
  • isSetSrsName,
  • isSetUomLabels,
  • isSetValue,
  • setAxisLabels

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getSystemService (Context)
  • Menu (java.awt)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JComboBox (javax.swing)
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