Codota Logo
FeatureInfoParser
Code IndexAdd Codota to your IDE (free)

How to use
FeatureInfoParser
in
org.deegree.featureinfo.parsing

Best Java code snippets using org.deegree.featureinfo.parsing.FeatureInfoParser (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

    return readESRICollection( xmlReader, csvLayerNames );
    return readMyWMSCollection( xmlReader );
    return readUMNCollection( xmlReader );
  return readGml2FeatureCollection( xmlReader );
} catch ( Exception e ) {
  String msg = "Unable to parse WMS GetFeatureInfo response as feature collection: " + e.getMessage();
origin: deegree/deegree3

public FeatureCollection getFeatures()
            throws OWSException, OWSExceptionReport {
  try {
    return FeatureInfoParser.parseAsFeatureCollection( rawResponse.getAsXMLStream(), request.getLayer() );
  } catch ( XMLStreamException e ) {
    throw new OWSException( "Remote WMTS response was not recognized as feature collection: "
                + e.getLocalizedMessage(), e, OWSException.NO_APPLICABLE_CODE );
  }
}
origin: deegree/deegree3

/**
 * Performs a <code>GetFeatureInfo</code> request and returns the response as a {@link FeatureCollection}.
 * 
 * @param request
 *            request parameter, must not be <code>null</code>
 * @param hardParams
 *            raw parameters for augmenting overriding KVPs, must not be <code>null</code>
 * @return response parsed as feature collection, never <code>null</code>
 * @throws IOException
 * @throws OWSExceptionReport
 * @throws XMLStreamException
 */
public FeatureCollection doGetFeatureInfo( GetFeatureInfo request, Map<String, String> hardParams )
            throws IOException, OWSExceptionReport, XMLStreamException {
  Map<String, String> params = buildGetFeatureInfoParamMap( request, hardParams );
  overrideHardParams( params, hardParams );
  OwsHttpResponse response = null;
  try {
    URL url = getGetUrl( GetFeatureInfo.name() );
    response = httpClient.doGet( url, params, null );
    response.assertHttpStatus200();
    XMLStreamReader reader = response.getAsXMLStream();
    String csvLayerNames = join( ",", request.getQueryLayers() );
    return FeatureInfoParser.parseAsFeatureCollection( reader, csvLayerNames );
  } finally {
    closeQuietly( response );
  }
}
org.deegree.featureinfo.parsingFeatureInfoParser

Javadoc

Responsible for parsing 'feature collections', even if they are broken (eg. ESRI or UMN mapserver feature info responses). Used by the WMS and WMTS clients. Currently, ESRI, UMN mapserver, mywms and normal GML2 feature collections are supported.

Most used methods

  • parseAsFeatureCollection
  • readESRICollection
  • readGml2FeatureCollection
  • readMyWMSCollection
  • readUMNCollection

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
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