Tabnine Logo
DirectPositionType.setStringValue
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.n52.sensorweb.sos/coding-sensorML-v101

/**
 * Creates a XML Point from a SOS Point.
 * 
 * @param jtsPoint
 *            SOS Point
 * @param xbPoint
 *            XML Point
 */
private void createPointFromJtsGeometry(Point jtsPoint, PointType xbPoint) throws OwsExceptionReport {
  DirectPositionType xbPos = xbPoint.addNewPos();
  xbPos.setSrsName(getSrsName(jtsPoint));
  xbPos.setStringValue(JTSHelper.getCoordinatesString(jtsPoint));
}
origin: org.n52.svalbard/svalbard-xmlbeans

/**
 * Creates a XML Point from a SOS Point.
 *
 * @param jtsPoint
 *            SOS Point
 * @param xbPoint
 *            XML Point
 */
private void createPointFromJtsGeometry(Point jtsPoint, PointType xbPoint) {
  DirectPositionType xbPos = xbPoint.addNewPos();
  xbPos.setSrsName(getSrsName(jtsPoint));
  xbPos.setStringValue(JTSHelper.getCoordinatesString(jtsPoint));
}
origin: org.n52.svalbard/svalbard-xmlbeans

private XmlObject createEnvelope(ReferencedEnvelope sosEnvelope) {
  EnvelopeType envelopeType = EnvelopeType.Factory.newInstance(getXmlOptions());
  MinMax<String> minmax = sosEnvelope.getMinMaxFromEnvelope();
  envelopeType.addNewLowerCorner().setStringValue(minmax.getMinimum());
  envelopeType.addNewUpperCorner().setStringValue(minmax.getMaximum());
  envelopeType.setSrsName(srsNamePrefix + sosEnvelope.getSrid());
  return envelopeType;
}
origin: org.n52.sensorweb.sos/coding-sensorML-v101

private XmlObject createEnvelope(SosEnvelope sosEnvelope) {
  EnvelopeType envelopeType = EnvelopeType.Factory.newInstance(XmlOptionsHelper.getInstance().getXmlOptions());
  MinMax<String> minmax = SosHelper.getMinMaxFromEnvelope(sosEnvelope);
  if (minmax.getMinimum() != null && !minmax.getMinimum().isEmpty()) {
    envelopeType.addNewLowerCorner().setStringValue(minmax.getMinimum());
  } else {
    envelopeType.addNewLowerCorner().setNil();
  }
  if (minmax.getMaximum() != null && !minmax.getMaximum().isEmpty()) {
    envelopeType.addNewUpperCorner().setStringValue(minmax.getMaximum());
  } else {
    envelopeType.addNewUpperCorner().setNil();
  }
  if (sosEnvelope.isSetSrid()) {
    envelopeType.setSrsName(ServiceConfiguration.getInstance().getSrsNamePrefix() + sosEnvelope.getSrid());
  }
  return envelopeType;
}
origin: org.n52.sensorweb/oxf-sos-adapter

/**
 * Feature of Interest
 */
private void addFeatureOfInterest(final ObservationType obsType,
    final ParameterContainer parameters) {
  final FeaturePropertyType featureProp = obsType.addNewFeatureOfInterest();
  final SamplingPointDocument sampPointDoc =
      SamplingPointDocument.Factory.newInstance();
  final SamplingPointType sampPoint = sampPointDoc.addNewSamplingPoint();
  sampPoint.setId((String) parameters.getParameterShellWithCommonName(INSERT_OBSERVATION_FOI_ID_PARAMETER).getSpecifiedValue());
  //Code for new Features
  final ParameterShell nameObj =  parameters.getParameterShellWithCommonName(INSERT_OBSERVATION_NEW_FOI_NAME);
  if(nameObj !=null){
    final String name = (String) nameObj.getSpecifiedValue();
    sampPoint.addNewName().setStringValue(name);
    final String desc = (String) parameters.getParameterShellWithCommonName(INSERT_OBSERVATION_NEW_FOI_DESC).getSpecifiedValue();
    sampPoint.addNewDescription().setStringValue(desc);
    sampPoint.addNewSampledFeature();
    final PointType type = sampPoint.addNewPosition().addNewPoint();
    type.addNewPos().setStringValue((String) parameters.getParameterShellWithCommonName(INSERT_OBSERVATION_NEW_FOI_POSITION).getSpecifiedValue());
    final String srsName = (String) parameters.getParameterShellWithCommonName(INSERT_OBSERVATION_POSITION_SRS).getSpecifiedValue();
    if (srsName != null) {
      type.setSrsName(srsName);
    } else { //default is epsg:4326 (= WGS84)
      type.setSrsName("urn:ogc:def:crs:EPSG::4326");
    }
  }
  //End Code for new Features
  featureProp.set(sampPointDoc);
}
net.opengis.gmlDirectPositionTypesetStringValue

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

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
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