com.groupbyinc.flux.common.geo.builders.CircleBuilder.class Maven / Gradle / Ivy
???? 4 5com/groupbyinc/flux/common/geo/builders/CircleBuilder ?Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; 4com/groupbyinc/flux/common/geo/builders/ShapeBuilder CircleBuilder.java 5com/groupbyinc/flux/common/unit/DistanceUnit$Distance ,com/groupbyinc/flux/common/unit/DistanceUnit Distance 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params FIELD_RADIUS 'Lcom/groupbyinc/flux/common/ParseField; TYPE -Lcom/groupbyinc/flux/common/geo/GeoShapeType; unit .Lcom/groupbyinc/flux/common/unit/DistanceUnit; radius D center &Lorg/locationtech/jts/geom/Coordinate; ()V
DEFAULT
" ZERO_ZERO $ % ' this 7Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException , readFromStream Z(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lorg/locationtech/jts/geom/Coordinate; . /
0 _(Lorg/locationtech/jts/geom/Coordinate;)Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder; 2
3 0com/groupbyinc/flux/common/io/stream/StreamInput 5
readDouble ()D 7 8
6 9 b(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/unit/DistanceUnit; . ;
< h(DLcom/groupbyinc/flux/common/unit/DistanceUnit;)Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder; >
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V writeCoordinateTo \(Lorg/locationtech/jts/geom/Coordinate;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V E F
G I 1com/groupbyinc/flux/common/io/stream/StreamOutput K writeDouble (D)V M N
L O C D
Q out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; ;(DD)Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder; $org/locationtech/jts/geom/Coordinate V (DD)V X
W Y lon lat (()Lorg/locationtech/jts/geom/Coordinate; K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder;
parseDistance K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance; _ `
a p(Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance;)Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder; c
d Ljava/lang/String; value g h " 7Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance; L(DLjava/lang/String;)Lcom/groupbyinc/flux/common/geo/builders/CircleBuilder;
fromString B(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/DistanceUnit; m n
o 0()Lcom/groupbyinc/flux/common/unit/DistanceUnit;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder t startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; v w
u x 2com/groupbyinc/flux/common/geo/parsers/ShapeParser z
FIELD_TYPE | { } %com/groupbyinc/flux/common/ParseField getPreferredName ()Ljava/lang/String; ? ?
? ? ? +com/groupbyinc/flux/common/geo/GeoShapeType ? shapeName ? ?
? ? field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
u ? ? toString (D)Ljava/lang/String; ? ?
? FIELD_COORDINATES ? { ? I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
u ? ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lorg/locationtech/jts/geom/Coordinate;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; r ?
? endObject ? w
u ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; build +()Lorg/locationtech/spatial4j/shape/Circle; SPATIAL_CONTEXT :Lorg/locationtech/spatial4j/context/jts/JtsSpatialContext; ? ? ? x ? W ? y ? W ?@v? getEarthCircumference ? 8
? 8org/locationtech/spatial4j/context/jts/JtsSpatialContext ?
makeCircle .(DDD)Lorg/locationtech/spatial4j/shape/Circle; ? ?
? ? type /()Lcom/groupbyinc/flux/common/geo/GeoShapeType; toWKT 'java/lang/UnsupportedOperationException ? -The WKT spec does not support CIRCLE geometry ? (Ljava/lang/String;)V ?
? ?
numDimensions ()I z ? W ? java/lang/Double ? isNaN (D)Z ? ?
? ? hashCode java/lang/Object ? valueOf (D)Ljava/lang/Double; ? ?
? ? ordinal ? ?
? java/lang/Integer ? (I)Ljava/lang/Integer; ? ?
? ? java/util/Objects ? hash ([Ljava/lang/Object;)I ? ?
? ? equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class; ? ?
? ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? obj Ljava/lang/Object; other *()Lorg/locationtech/spatial4j/shape/Shape; ? ?
? java/lang/String ? ((Ljava/lang/String;[Ljava/lang/String;)V ?
? ? CIRCLE ? ? ? Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable Signature
SourceFile InnerClasses ! I *? *? !? #*? &? (? ) * 2 * 3 4 + f "*? *? !? #*+? 1? 4W*+? :+? =? @W? " ) * " A B 9 * : ; ! < - C D Y *? (+? H+*? J? P*? #+? R? ) * S T @ A B C - 2 ? *+? (*? ) *
L M U L *? WY')? Z? 4? ) * [ \ W ] / *? (? ) * ^ ^ = *+? b? e? ) * f g c A
*+? i+? j? @?
) *
k p l H
*'-? p? @?
) *
f z > R *-? #*'? J*? ) * ? ?
? 8 / *? J? ) * ? q / *? #? ) * ? r s ? E+? yW+? ~? ?? ?? ?? ?W+? ?? ?*? #*? J? ?? ?W+? ?? ?? ?W+*? (? ?W+? ?? E ) * E ? ? E ? ? ? ? ? , ? 7 ? @ ? - ? ? O %? ?*? (? ?*? (? ? ?*? Jk*? #? ?o? ?? % ) * ? ? ? . ? ?? ) * ? ? ? 4
? ?Y÷ ƿ
) * ? ? ? H *? (? ˸ љ ? ? ) * ? @ ? ? P &? ?Y*? (SY*? J? ?SY*? #? ۸ ?S? ? &