Package crosby.binary
Interface Osmformat.WayOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Osmformat.Way
,Osmformat.Way.Builder
- Enclosing class:
- Osmformat
public static interface Osmformat.WayOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getId()
required int64 id = 1;
Osmformat.Info
getInfo()
optional .OSMPBF.Info info = 4;
Osmformat.InfoOrBuilder
getInfoOrBuilder()
optional .OSMPBF.Info info = 4;
int
getKeys(int index)
Parallel arrays.int
getKeysCount()
Parallel arrays.java.util.List<java.lang.Integer>
getKeysList()
Parallel arrays.long
getLat(int index)
The following two fields are optional.int
getLatCount()
The following two fields are optional.java.util.List<java.lang.Long>
getLatList()
The following two fields are optional.long
getLon(int index)
DELTA coded, optionalint
getLonCount()
DELTA coded, optionaljava.util.List<java.lang.Long>
getLonList()
DELTA coded, optionallong
getRefs(int index)
DELTA codedint
getRefsCount()
DELTA codedjava.util.List<java.lang.Long>
getRefsList()
DELTA codedint
getVals(int index)
repeated uint32 vals = 3 [packed = true];
int
getValsCount()
repeated uint32 vals = 3 [packed = true];
java.util.List<java.lang.Integer>
getValsList()
repeated uint32 vals = 3 [packed = true];
boolean
hasId()
required int64 id = 1;
boolean
hasInfo()
optional .OSMPBF.Info info = 4;
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasId
boolean hasId()
required int64 id = 1;
- Returns:
- Whether the id field is set.
-
getId
long getId()
required int64 id = 1;
- Returns:
- The id.
-
getKeysList
java.util.List<java.lang.Integer> getKeysList()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Returns:
- A list containing the keys.
-
getKeysCount
int getKeysCount()
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Returns:
- The count of keys.
-
getKeys
int getKeys(int index)
Parallel arrays.
repeated uint32 keys = 2 [packed = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The keys at the given index.
-
getValsList
java.util.List<java.lang.Integer> getValsList()
repeated uint32 vals = 3 [packed = true];
- Returns:
- A list containing the vals.
-
getValsCount
int getValsCount()
repeated uint32 vals = 3 [packed = true];
- Returns:
- The count of vals.
-
getVals
int getVals(int index)
repeated uint32 vals = 3 [packed = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The vals at the given index.
-
hasInfo
boolean hasInfo()
optional .OSMPBF.Info info = 4;
- Returns:
- Whether the info field is set.
-
getInfo
Osmformat.Info getInfo()
optional .OSMPBF.Info info = 4;
- Returns:
- The info.
-
getInfoOrBuilder
Osmformat.InfoOrBuilder getInfoOrBuilder()
optional .OSMPBF.Info info = 4;
-
getRefsList
java.util.List<java.lang.Long> getRefsList()
DELTA coded
repeated sint64 refs = 8 [packed = true];
- Returns:
- A list containing the refs.
-
getRefsCount
int getRefsCount()
DELTA coded
repeated sint64 refs = 8 [packed = true];
- Returns:
- The count of refs.
-
getRefs
long getRefs(int index)
DELTA coded
repeated sint64 refs = 8 [packed = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The refs at the given index.
-
getLatList
java.util.List<java.lang.Long> getLatList()
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];
- Returns:
- A list containing the lat.
-
getLatCount
int getLatCount()
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];
- Returns:
- The count of lat.
-
getLat
long getLat(int index)
The following two fields are optional. They are only used in a special format where node locations are also added to the ways. This makes the files larger, but allows creating way geometries directly. If this is used, you MUST set the optional_features tag "LocationsOnWays" and the number of values in refs, lat, and lon MUST be the same.
repeated sint64 lat = 9 [packed = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The lat at the given index.
-
getLonList
java.util.List<java.lang.Long> getLonList()
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];
- Returns:
- A list containing the lon.
-
getLonCount
int getLonCount()
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];
- Returns:
- The count of lon.
-
getLon
long getLon(int index)
DELTA coded, optional
repeated sint64 lon = 10 [packed = true];
- Parameters:
index
- The index of the element to return.- Returns:
- The lon at the given index.
-
-