com.groupbyinc.flux.common.apache.lucene.geo.SimpleGeoJSONPolygonParser.class Maven / Gradle / Ivy
???? 4f Gcom/groupbyinc/flux/common/apache/lucene/geo/SimpleGeoJSONPolygonParser java/lang/Object SimpleGeoJSONPolygonParser.java input Ljava/lang/String; upto I polyType coordinates Ljava/util/List; $Ljava/util/List; (Ljava/lang/String;)V ()V
this ILcom/groupbyinc/flux/common/apache/lucene/geo/SimpleGeoJSONPolygonParser; parse 9()[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; java/text/ParseException parseObject
readEnd
! # #did not see any polygon coordinates % newParseException .(Ljava/lang/String;)Ljava/text/ParseException; ' (
)
+ )did not see type: Polygon or MultiPolygon - Polygon / java/lang/String 1 equals (Ljava/lang/Object;)Z 3 4
2 5 4com/groupbyinc/flux/common/apache/lucene/geo/Polygon 7 parsePolygon H(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; 9 :
; java/util/ArrayList =
> java/util/List @ size ()I B C A D get (I)Ljava/lang/Object; F G A H java/lang/StringBuilder J
K ;elements of coordinates array should be an array, but got: M append -(Ljava/lang/String;)Ljava/lang/StringBuilder; O P
K Q getClass ()Ljava/lang/Class; S T
U -(Ljava/lang/Object;)Ljava/lang/StringBuilder; O W
K X toString ()Ljava/lang/String; Z [
K \ add ^ 4 A _ toArray (([Ljava/lang/Object;)[Ljava/lang/Object; a b A c 7[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; e o Ljava/lang/Object; i polygons HLjava/util/List; scan (C)V l m
n peek ()C p q
r t expected , but got v (C)Ljava/lang/StringBuilder; O x
K y parseString { [
| crs.properties ~ href ? cannot handle linked crs ? length ? C
2 ? . ?
parseArray $(Ljava/lang/String;)Ljava/util/List; ? ?
? true ? l
? java/lang/Boolean ? TRUE Ljava/lang/Boolean; ? ? ? ? false ? FALSE ? ? ? ? null ? parseNumber ()Ljava/lang/Number; ? ?
? :expected array, object, string or literal value, but got: ? name ? 1crs.properties.name should be a string, but saw: ? urn:ogc:def:crs:OGC ?
startsWith (Ljava/lang/String;)Z ? ?
2 ? :CRS84 ? endsWith ? ?
2 ? %crs must be CRS84 from OGC, but saw: ? type ? crs ? "type should be a string, but got: ? isValidGeometryPath ? ?
? MultiPolygon ? FeatureCollection ? Feature ? features.[] ? wcan only handle type FeatureCollection (if it has a single polygon geometry), Feature, Polygon or MutiPolygon, but got ? )coordinates should be an array, but got: ? -only one Polygon or MultiPolygon is supported ? newPath ch C uptoStart key path first Z geometry ? features.[].geometry ? Vfirst element of polygon array must be an array [[lat, lon], [lat, lon] ...] but got: ? parsePoints (Ljava/util/List;)[[D ? ?
? [[D ? Uelements of coordinates array must be an array [[lat, lon], [lat, lon] ...] but got: ? >([D[D[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon;)V ?
8 ?
holePoints holes
polyPoints [D ? >elements of coordinates array must [lat, lon] array, but got: ? Relements of coordinates array must [lat, lon] array, but got wrong element count: ? java/lang/Double ? Xelements of coordinates array must [lat, lon] array, but first element is not a Double: ? Yelements of coordinates array must [lat, lon] array, but second element is not a Double: ? doubleValue ()D ? ?
? ? point pointList lats lons -expected ',' separating list items, but got ' ? ' ? hit EOF while parsing array .[] ;expected another array or number while parsing array, not ' hit EOF while reading array result java/lang/NumberFormatException
charAt (I)C
2 parseDouble (Ljava/lang/String;)D
? valueOf (D)Ljava/lang/Double;
? could not parse number as double nfe !Ljava/lang/NumberFormatException; b Ljava/lang/StringBuilder; hit EOF inside string literal substring (II)Ljava/lang/String; !
2" java/lang/Integer$ parseInt (Ljava/lang/String;I)I&'
%( (I)Ljava/lang/StringBuilder; O*
K+ %unsupported string escape character \- isJSONWhitespace (C)Z/0
1 unexpected EOF3
expected '5 ' but got '7
' but got EOF9 expected unexpected character '< ' after end of GeoJSON object>
expected "@
" but hit EOFB " but got "D "F subString java/lang/MathI min (II)IKL
JM ...O at character offset Q ; fragment leading to this:
S (Ljava/lang/String;I)V U
V fragment details end Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions \(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; )(Ljava/util/List;)[[D 8(Ljava/lang/String;)Ljava/util/List;
SourceFile
[
\ F
*? *+? ? ]
^ 9 : ; \ _ ?*? *? "*? $?
*&? *?*? ,?
*.? *?*? ,0? 6? ? 8Y**? $?