public class PbfFieldDecoder extends Object
| Constructor and Description |
|---|
PbfFieldDecoder(org.openstreetmap.osmosis.osmbinary.Osmformat.PrimitiveBlock primitiveBlock)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
decodeLatitude(long rawLatitude)
Decodes a raw latitude value into degrees.
|
double |
decodeLongitude(long rawLongitude)
Decodes a raw longitude value into degrees.
|
String |
decodeString(int rawString)
Decodes a raw string into a String.
|
Date |
decodeTimestamp(long rawTimestamp)
Decodes a raw timestamp value into a Date.
|
public PbfFieldDecoder(org.openstreetmap.osmosis.osmbinary.Osmformat.PrimitiveBlock primitiveBlock)
primitiveBlock - The primitive block containing the fields to be decoded.public double decodeLatitude(long rawLatitude)
rawLatitude - The PBF encoded value.public double decodeLongitude(long rawLongitude)
rawLongitude - The PBF encoded value.public Date decodeTimestamp(long rawTimestamp)
rawTimestamp - The PBF encoded timestamp.public String decodeString(int rawString)
rawString - The PBF encoding string.Copyright © 2012–2020. All rights reserved.