congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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