
com.groupbyinc.flux.common.geo.parsers.GeoJsonParser.class Maven / Gradle / Ivy
???? 4_ 4com/groupbyinc/flux/common/geo/parsers/GeoJsonParser java/lang/Object GeoJsonParser.java 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 5com/groupbyinc/flux/common/unit/DistanceUnit$Distance ,com/groupbyinc/flux/common/unit/DistanceUnit
Distance @com/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation 4com/groupbyinc/flux/common/geo/builders/ShapeBuilder Orientation Fcom/groupbyinc/flux/index/mapper/GeoShapeFieldMapper$GeoShapeFieldType 4com/groupbyinc/flux/index/mapper/GeoShapeFieldMapper GeoShapeFieldType =com/groupbyinc/flux/index/mapper/GeoShapeFieldMapper$Defaults Defaults ()V
this 6Lcom/groupbyinc/flux/common/geo/parsers/GeoJsonParser; parse ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/index/mapper/GeoShapeFieldMapper;)Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; java/io/IOException % java/lang/Exception ' RIGHT BLcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation; ) * + +com/groupbyinc/flux/common/geo/GeoShapeType - 5com/groupbyinc/flux/common/geo/parsers/CoordinateNode / Acom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder 1 fieldType J()Lcom/groupbyinc/flux/index/mapper/GeoShapeFieldMapper$GeoShapeFieldType; 3 4
5 orientation D()Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation; 7 8
9 COERCE %Lcom/groupbyinc/flux/common/Explicit; ; < = coerce '()Lcom/groupbyinc/flux/common/Explicit; ? @
A #com/groupbyinc/flux/common/Explicit C IGNORE_Z_VALUE E < F ignoreZValue H @
I java/lang/String K nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; M N O
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; Q R S
FIELD_NAME U R V currentName ()Ljava/lang/String; X Y Z 2com/groupbyinc/flux/common/geo/parsers/ShapeParser \
FIELD_TYPE 'Lcom/groupbyinc/flux/common/ParseField; ^ _ ] ` getDeprecationHandler :()Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler; b c d %com/groupbyinc/flux/common/ParseField f match M(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Z h i
g j text l Y m forName A(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/GeoShapeType; o p
. q equals (Ljava/lang/Object;)Z s t
. u java/lang/StringBuilder w
x append -(Ljava/lang/Object;)Ljava/lang/StringBuilder; z {
x | already parsed as [ ~ -(Ljava/lang/String;)Ljava/lang/StringBuilder; z ?
x ? ] cannot redefine as [ ? ] ? toString ? Y
x ? FIELD_COORDINATES ? _ ] ? value ()Ljava/lang/Object; ? ?
D ? java/lang/Boolean ? booleanValue ()Z ? ?
? ? parseCoordinates n(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Z)Lcom/groupbyinc/flux/common/geo/parsers/CoordinateNode; ? ?
?
numDimensions ()I ? ?
0 ? /com/groupbyinc/flux/ElasticsearchParseException ? @Exception parsing coordinates: number of dimensions do not match ? ((Ljava/lang/String;[Ljava/lang/Object;)V ?
? ? FIELD_GEOMETRIES ? _ ] ? GEOMETRYCOLLECTION -Lcom/groupbyinc/flux/common/geo/GeoShapeType; ? ? . ?
cannot have [ ? ] with type set to [ ? parseGeometries ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/index/mapper/GeoShapeFieldMapper;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; ? ?
? 5com/groupbyinc/flux/common/geo/builders/CircleBuilder ? FIELD_RADIUS ? _ ? ? CIRCLE ? ? . ?
parseDistance K(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance; ? ?
? FIELD_ORIENTATION ? _ ] ? POLYGON ? ? . ? MULTIPOLYGON ? ? . ?
fromString V(Ljava/lang/String;)Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation; ? ?
? skipChildren ? ? currentToken ? N ? shape type not included ? coordinates not included ? geometries not included ? %field [{}] is supported for [{}] only ? TYPE ? ? ? ? shape type [{}] not included ?
getBuilder ?(Lcom/groupbyinc/flux/common/geo/parsers/CoordinateNode;Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation;Z)Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; ? ?
. ? type tempNode 7Lcom/groupbyinc/flux/common/geo/parsers/CoordinateNode; fieldName Ljava/lang/String; token ex Ljava/lang/Exception; parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; shapeMapper 6Lcom/groupbyinc/flux/index/mapper/GeoShapeFieldMapper; shapeType radius 7Lcom/groupbyinc/flux/common/unit/DistanceUnit$Distance; coordinateNode geometryCollections CLcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder; requestedOrientation :Lcom/groupbyinc/flux/common/Explicit; malformedException START_OBJECT ? R ? *coordinates cannot be specified as objects ? START_ARRAY ? R END_ARRAY R
VALUE_NULL R parseCoordinate ](Lcom/groupbyinc/flux/common/xcontent/XContentParser;Z)Lorg/locationtech/jts/geom/Coordinate;
)(Lorg/locationtech/jts/geom/Coordinate;)V
0
"java/lang/IllegalArgumentException 'coordinates cannot contain NULL values) (Ljava/lang/String;)V
java/util/ArrayList
java/util/List isEmpty ? get (I)Ljava/lang/Object; add" t# (Ljava/util/List;)V %
0& node Z nodes ILjava/util/List; Ljava/util/List; VALUE_NUMBER- R . geo coordinates must be numbers0 doubleValue ()D23 4? 'com/groupbyinc/flux/common/geo/GeoPoint8 assertZValue (ZD)D:;
9< ;geo coordinates greater than 3 dimensions are not supported> $org/locationtech/jts/geom/Coordinate@ (DDD)V B
AC lon D lat alt .geometries must be an array of geojson objectsI
2 l(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; #L ]M shape {(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;)Lcom/groupbyinc/flux/common/geo/builders/GeometryCollectionBuilder;OP
2Q shapeBuilder 6Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder; mapper geometryCollection Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions
SourceFile InnerClasses W / *? ? X ! " Y * # $ W ?
/MN::+? ? ,?
+? 6? ::+? ? >? +? B:+? ? G? +? J:: *? P Y:
? T?
? W???*? [ :? a*? e ? k? U*? P W*? n ? r:,? 9,? v? 0? xY? y? a? }? ?,? }?? ?? }?? ?? ?: ? M??? ?*? e ? k? B*? P W*? ?? ?? ?? ?:? ? ?? ?? ? ?Y?? ? ??:?:? ?*? e ? k? N,?
? ?M? 2,? ?? v? (? xY? y?? ?? ?? }?? ?,? }?? ?? ?: *? P W*+? ?:? ?*? e ? k? U,?
? ?M? 6,? 2,? ?? v? (? xY? y?? ?? ?? }?? ?,? }?? ?? ?: *? P W*? n ? ?N? {? ?*? e ? k? ],? D,? ƶ v?
,? ɶ v? ? ? (? xY? y?? ?? ö }?? ?,? }?? ?? ?: *? P W*? n ? ?:? *? P W*? ? ???? -:*? ? ? T? *? ? ? *? P W*? ? ???? ? ? ?Y ? ? ??,? ? ?Y?? ? ??? ? ?,? ? ?Y?? ? ??? ? ?,? ? ?Y?? ? ??-? $? ?,? ? ?Y?? Y? ?SY? ?S? ??,? ? ?Y?? Y,S? ??,? ?? v? ?,-? ?? ?? ?? ? @LO ( X ? ? = ? ? ? $ ? ? _? ? ? I ? R
Q ( ? ? / ? ? / ? ? - ? ? + ? ? ( ? ?
% ? ? ? * - ? <