类 ProtoFeature.Polygon

  • 所有已实现的接口:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, ProtoFeature.PolygonOrBuilder
    封闭类:
    ProtoFeature

    public static final class ProtoFeature.Polygon
    extends com.google.protobuf.GeneratedMessageV3
    implements ProtoFeature.PolygonOrBuilder
     Polygon 包含多边形上各个点的x y z坐标,z可选。
     separators用于将坐标串分割为环 例如,xs ys zs 形成了坐标串[p0,p1,p2,p3,p4,p5,p6,p7,p8,p9],
     则separators=[3,7]将坐标串分割为多边形Polygon((p0 p1 p2),(p3 p4 p5 p6),(p7 p8 p9))。
     即separators[i]的意义为第i个环的终点(从0开始计数);最后一个环的终点显然是数组的最后一位,故将其省略。
     注意,由于环的最后一个坐标必然和第一个坐标相等,故将环的最后一个坐标省略,仅在转换为jts等对象时将其补全。
     
    Protobuf type pojo.Polygon
    另请参阅:
    序列化表格
    • 字段详细资料

      • XS_FIELD_NUMBER

        public static final int XS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • YS_FIELD_NUMBER

        public static final int YS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • ZS_FIELD_NUMBER

        public static final int ZS_FIELD_NUMBER
        另请参阅:
        常量字段值
      • SEPARATORS_FIELD_NUMBER

        public static final int SEPARATORS_FIELD_NUMBER
        另请参阅:
        常量字段值
    • 方法详细资料

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        覆盖:
        newInstance 在类中 com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        指定者:
        getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
      • getXs

        public double getXs​(int index)
        repeated double xs = 1;
        指定者:
        getXs 在接口中 ProtoFeature.PolygonOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The xs at the given index.
      • getYs

        public double getYs​(int index)
        repeated double ys = 2;
        指定者:
        getYs 在接口中 ProtoFeature.PolygonOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The ys at the given index.
      • getZs

        public double getZs​(int index)
        repeated double zs = 3;
        指定者:
        getZs 在接口中 ProtoFeature.PolygonOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The zs at the given index.
      • getSeparators

        public int getSeparators​(int index)
        repeated int32 separators = 4;
        指定者:
        getSeparators 在接口中 ProtoFeature.PolygonOrBuilder
        参数:
        index - The index of the element to return.
        返回:
        The separators at the given index.
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        指定者:
        writeTo 在接口中 com.google.protobuf.MessageLite
        覆盖:
        writeTo 在类中 com.google.protobuf.GeneratedMessageV3
        抛出:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        指定者:
        getSerializedSize 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        指定者:
        equals 在接口中 com.google.protobuf.Message
        覆盖:
        equals 在类中 com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        指定者:
        hashCode 在接口中 com.google.protobuf.Message
        覆盖:
        hashCode 在类中 com.google.protobuf.AbstractMessage
      • parseFrom

        public static ProtoFeature.Polygon parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Polygon parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Polygon parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Polygon parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Polygon parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProtoFeature.Polygon parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        抛出:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public ProtoFeature.Polygon.Builder newBuilderForType()
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.Message
        指定者:
        newBuilderForType 在接口中 com.google.protobuf.MessageLite
      • toBuilder

        public ProtoFeature.Polygon.Builder toBuilder()
        指定者:
        toBuilder 在接口中 com.google.protobuf.Message
        指定者:
        toBuilder 在接口中 com.google.protobuf.MessageLite
      • newBuilderForType

        protected ProtoFeature.Polygon.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        指定者:
        newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ProtoFeature.Polygon> getParserForType()
        指定者:
        getParserForType 在接口中 com.google.protobuf.Message
        指定者:
        getParserForType 在接口中 com.google.protobuf.MessageLite
        覆盖:
        getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ProtoFeature.Polygon getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder