Codota Logo
OsmEntity
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Notification (javax.management)
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