com.groupbyinc.flux.common.apache.lucene.geo.Polygon.class Maven / Gradle / Ivy
???? 4 ? 4com/groupbyinc/flux/common/apache/lucene/geo/Polygon java/lang/Object Polygon.java polyLats [D polyLons holes 7[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; minLat D maxLat minLon maxLon >([D[D[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon;)V ()V
"java/lang/IllegalArgumentException polyLats must not be null (Ljava/lang/String;)V
polyLons must not be null holes must not be null *polyLats and polyLons must be equal length " "at least 4 polygon points required $ java/lang/StringBuilder &
' Zfirst and last points of the polygon must be the same (it must close itself): polyLats[0]= ) append -(Ljava/lang/String;)Ljava/lang/StringBuilder; + ,
' - (D)Ljava/lang/StringBuilder; + /
' 0
polyLats[ 2 (I)Ljava/lang/StringBuilder; + 4
' 5 ]= 7 toString ()Ljava/lang/String; 9 :
' ; Zfirst and last points of the polygon must be the same (it must close itself): polyLons[0]= =
polyLons[ ? 5com/groupbyinc/flux/common/apache/lucene/geo/GeoUtils A
checkLatitude (D)V C D
B E checkLongitude G D
B H
J 3holes may not contain holes: polygons may not nest. L clone ()Ljava/lang/Object; N O
P R T
P? ?? java/lang/Math [ min (DD)D ] ^
\ _ max a ^
\ b d
f h j i I inner 6Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; this getPolyLats ()[D getPolyLons getHoles 9()[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; hashCode ()I java/util/Arrays x ([Ljava/lang/Object;)I v z
y { ([D)I v }
y ~ prime result equals (Ljava/lang/Object;)Z getClass ()Ljava/lang/Class; ? ?
? )([Ljava/lang/Object;[Ljava/lang/Object;)Z ? ?
y ? ([D[D)Z ? ?
y ? obj Ljava/lang/Object; other [ ? , ? ] ? , holes= ? '([Ljava/lang/Object;)Ljava/lang/String; 9 ?
y ? sb Ljava/lang/StringBuilder; fromGeoJSON K(Ljava/lang/String;)[Lcom/groupbyinc/flux/common/apache/lucene/geo/Polygon; java/text/ParseException ? Gcom/groupbyinc/flux/common/apache/lucene/geo/SimpleGeoJSONPolygonParser ?
? parse ? u
? ? geojson Ljava/lang/String; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile 1
? ? M
?*? +?
? Y? ?,?
? Y? ?-?
? Y!? ?+?,??
? Y#? ?+?,??
? Y#? ?+??
? Y%? ?+1++?d1?? :? Y? 'Y? (*? .+1? 13? .+?d? 68? .++?d1? 1?