Tabnine Logo
OsmEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
OsmEntity
in
de.topobyte.osm4j.core.model.iface

Best Java code snippets using de.topobyte.osm4j.core.model.iface.OsmEntity (Showing top 3 results out of 315)

origin: gegy1000/Terrarium

public static boolean hasTag(OsmEntity entity, String key, String value) {
  for (int i = 0; i < entity.getNumberOfTags(); i++) {
    OsmTag tag = entity.getTag(i);
    if (tag.getKey().equals(key) && tag.getValue().equals(value)) {
      return true;
    }
  }
  return false;
}
origin: mojodna/osm2orc

OsmMetadata metadata = entity.getMetadata();
id.vector[row] = entity.getId();
changeset.vector[row] = metadata.getChangeset();
  tags.lengths[row] = entity.getNumberOfTags(); // number of key/value pairings
  tags.childCount += tags.lengths[row];
  tags.keys.ensureSize(tags.childCount, tags.offsets[row] != 0);
origin: FutureCitiesCatapult/TomboloDigitalConnector

private void persistEntity(OsmEntity entity, Geometry geometry, Map<String, String> tags) {
    log.warn("Could not build {}: {} (geometry not valid or empty): {}", entity.getClass(), entity.getId(),
        geometry);
    return;
    if (chosenGeo.isEmpty()) {
      log.warn("Could not build {}: {} (geometry collection contains only empty geometries): {}",
          entity.getClass(), entity.getId(), geometry);
      return;
      "osm" + entity.getId(),
      tags.get("name"),
      geometry
de.topobyte.osm4j.core.model.ifaceOsmEntity

Most used methods

  • getId
  • getNumberOfTags
  • getMetadata
  • getTag

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Best IntelliJ 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