Package org.openstreetmap.osmosis.hstore

Examples of org.openstreetmap.osmosis.hstore.PGHStore.entrySet()


  public static Map<String, String> getMap(ResultSet rs, String columnName) throws SQLException {
    Map<String, String> tags = Maps.newHashMap();

    PGHStore dbTags = (PGHStore) rs.getObject(columnName);
    if(dbTags != null) {
      for(Map.Entry<String, String> tagEntry : dbTags.entrySet()) {
        tags.put(tagEntry.getKey(), tagEntry.getValue());
      }
    }

    return tags;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.