congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DirectPositionType.setValue
Code IndexAdd Tabnine to your IDE (free)

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

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

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: citygml4j/citygml4j

public DirectPositionType marshalDirectPosition(DirectPosition src) {
  DirectPositionType dest = gml.createDirectPositionType();
  if (src.isSetValue())
    dest.setValue(src.getValue());
  if (src.isSetSrsName())
    dest.setSrsName(src.getSrsName());
  if (src.isSetSrsDimension())
    dest.setSrsDimension(BigInteger.valueOf(src.getSrsDimension()));
  if (src.isSetAxisLabels())
    dest.setAxisLabels(src.getAxisLabels());
  if (src.isSetUomLabels())
    dest.setUomLabels(src.getUomLabels());
  return dest;
}
origin: org.geoserver/gs-wcs1_0

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

Javadoc

Sets the value of the ' net.opengis.gml.DirectPositionType#getValue' 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
  • set
  • setDimension
    Sets the value of the ' net.opengis.gml.DirectPositionType#getDimension' attribute.
  • <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

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Menu (java.awt)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now