All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.geo.builders.PolygonBuilder.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?6com/groupbyinc/flux/common/geo/builders/PolygonBuilder?Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder;4com/groupbyinc/flux/common/geo/builders/ShapeBuilderPolygonBuilder.java@com/groupbyinc/flux/common/geo/builders/ShapeBuilder$OrientationOrientation9com/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge
Edge5com/groupbyinc/flux/common/xcontent/ToXContent$Params
.com/groupbyinc/flux/common/xcontent/ToXContentParamsFcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$IntersectionOrderIntersectionOrderTYPE-Lcom/groupbyinc/flux/common/geo/GeoShapeType;EMPTY([[Lorg/locationtech/jts/geom/Coordinate;orientationBLcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation;shell;Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;holesLjava/util/List;MLjava/util/List;$assertionsDisabledZ?(Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation;Z)V()V"$
%RIGHT'	(	*java/util/ArrayList,
-%	/9com/groupbyinc/flux/common/geo/builders/LineStringBuilder1close=()Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;34
25validateLinearRing>(Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;)V78
9	;this8Lcom/groupbyinc/flux/common/geo/builders/PolygonBuilder;
lineStringcoerce?(Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation;)V"#
B?(Lcom/groupbyinc/flux/common/geo/builders/CoordinatesBuilder;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation;)V?(Lcom/groupbyinc/flux/common/geo/builders/CoordinatesBuilder;)V"E
2Fcoordinates= 4)?toString()Ljava/lang/String;??
??(Ljava/lang/String;)V"?
??get(I)Ljava/lang/Object;??i?$org/locationtech/jts/geom/Coordinate?equals??
??5invalid LinearRing found (coordinates are not closed)?points8Ljava/util/List;validateHoley(Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;)V(com/groupbyinc/flux/common/util/set/Sets?
newHashSet)(Ljava/lang/Iterable;)Ljava/util/HashSet;??
??java/util/HashSet?	retainAll(Ljava/util/Collection;)Z??
??
?k:org/locationtech/spatial4j/exception/InvalidShapeException?LInvalid polygon, interior cannot share more than one point with the exterior?
??exterior;Ljava/util/HashSet;Ljava/util/HashSet;interior+()[[[Lorg/locationtech/jts/geom/Coordinate;??
?)java/util/concurrent/atomic/AtomicBoolean?(Z)V"?
??createEdges$(ILcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Orientation;Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;Lcom/groupbyinc/flux/common/geo/builders/LineStringBuilder;[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;ILjava/util/concurrent/atomic/AtomicBoolean;)I??
?<[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;?@f?
intersections@(D[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;)I??
?merge~([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;II[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;I)I??
??f?compose?([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;I)[[[Lorg/locationtech/jts/geom/Coordinate;??
?lengthnumEdgesedgesholeComponents
translated+Ljava/util/concurrent/atomic/AtomicBoolean;offsetnumHolesbuild4()Lorg/locationtech/spatial4j/shape/jts/JtsGeometry;FACTORY+Lorg/locationtech/jts/geom/GeometryFactory;??	?wrapdateline?!	?
buildGeometryR(Lorg/locationtech/jts/geom/GeometryFactory;Z)Lorg/locationtech/jts/geom/Geometry;??
?jtsGeometryX(Lorg/locationtech/jts/geom/Geometry;)Lorg/locationtech/spatial4j/shape/jts/JtsGeometry;??
coordinatesArray?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;coordinatesToXcontentm(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
2builder5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;params7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;
toXContent3com/groupbyinc/flux/common/xcontent/XContentBuilder
startObject7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
2com/groupbyinc/flux/common/geo/parsers/ShapeParser
FIELD_TYPE'Lcom/groupbyinc/flux/common/ParseField;	%com/groupbyinc/flux/common/ParseFieldgetPreferredName?
	+com/groupbyinc/flux/common/geo/GeoShapeType 	shapeName"?
!#field[(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;%&
'FIELD_ORIENTATION)	*name,?
-java/util/Locale/ROOTLjava/util/Locale;12	03java/lang/String5toLowerCase&(Ljava/util/Locale;)Ljava/lang/String;78
69FIELD_COORDINATES;	<
startArrayI(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;>?
@
BendArrayD
E	endObjectG
HH?
Jpolygonx(Lorg/locationtech/jts/geom/GeometryFactory;[[Lorg/locationtech/jts/geom/Coordinate;)Lorg/locationtech/jts/geom/Polygon;LM
N)[[[Lorg/locationtech/jts/geom/Coordinate;Pmultipolygon~(Lorg/locationtech/jts/geom/GeometryFactory;[[[Lorg/locationtech/jts/geom/Coordinate;)Lorg/locationtech/jts/geom/MultiPolygon;RS
T"org/locationtech/jts/geom/GeometryV	toPolygonP(Lorg/locationtech/jts/geom/GeometryFactory;)Lorg/locationtech/jts/geom/Polygon;XY
ZpolygonsfactoryfixDateline%()Lorg/locationtech/jts/geom/Polygon;
linearRingc(Lorg/locationtech/jts/geom/GeometryFactory;Ljava/util/List;)Lorg/locationtech/jts/geom/LinearRing;`a
b$org/locationtech/jts/geom/LinearRingd)org/locationtech/jts/geom/GeometryFactoryf'[Lorg/locationtech/jts/geom/LinearRing;h
createPolygonr(Lorg/locationtech/jts/geom/LinearRing;[Lorg/locationtech/jts/geom/LinearRing;)Lorg/locationtech/jts/geom/Polygon;jk
gl&Lorg/locationtech/jts/geom/LinearRing;QLjava/util/Iterator;Ljava/util/Iterator;toArray(([Ljava/lang/Object;)[Ljava/lang/Object;qris'[Lorg/locationtech/jts/geom/Coordinate;ucreateLinearRingO([Lorg/locationtech/jts/geom/Coordinate;)Lorg/locationtech/jts/geom/LinearRing;wx
gytype/()Lcom/groupbyinc/flux/common/geo/GeoShapeType;
numDimensionsjava/lang/IllegalStateException~Hunable to get number of dimensions, Polygon has not yet been initialized?
?}X
2?!org/locationtech/jts/geom/Polygon?$[Lorg/locationtech/jts/geom/Polygon;?createMultiPolygonN([Lorg/locationtech/jts/geom/Polygon;)Lorg/locationtech/jts/geom/MultiPolygon;??
g?
polygonSet	componentT(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;ILjava/util/ArrayList;)I
coordinate&Lorg/locationtech/jts/geom/Coordinate;??	?xD??	??;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;}?	?debugEnabled?z
?LOGGER!Lorg/apache/logging/log4j/Logger;??	?shift: [{}]?java/lang/Double?valueOf(D)Ljava/lang/Double;??
??org/apache/logging/log4j/Logger?debug'(Ljava/lang/String;Ljava/lang/Object;)V????java/util/HashMap?
?%shiftO(Lorg/locationtech/jts/geom/Coordinate;D)Lorg/locationtech/jts/geom/Coordinate;??
??`	?containsKey??
??)Shape contains more than one shared point?&(Ljava/lang/Object;)Ljava/lang/Object;??
??(com/groupbyinc/flux/common/collect/Tuple?v2?~
??v1?~
??'(Ljava/lang/Object;Ljava/lang/Object;)V"?
??put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??
??
-?visitIDfirstAppearancetempedgeidRLjava/util/ArrayList;Ljava/util/ArrayList;anyshiftOffsetconnectedComponents
splitIndexcurrentprevvisitedEdge?Ljava/util/HashMap;>;Ljava/util/HashMap;?(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;[Lorg/locationtech/jts/geom/Coordinate;)[Lorg/locationtech/jts/geom/Coordinate;buildCoordinates;(Ljava/util/List;)[[[Lorg/locationtech/jts/geom/Coordinate;Component [{}]:?java/lang/Integer?(I)Ljava/lang/Integer;??
??	{}?java/util/Arrays?'([Ljava/lang/Object;)Ljava/lang/String;??
??9Ljava/util/List<[Lorg/locationtech/jts/geom/Coordinate;>;j
componentsKLjava/util/List;>;resultg([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;I)[[Lorg/locationtech/jts/geom/Coordinate;	???
?H?
??([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;ILjava/util/List;)[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;"p
-
-k
-s	mainEdges?
??
assign?([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;[[Lorg/locationtech/jts/geom/Coordinate;I[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;Ljava/util/List;)V	

??

	Holes: {}d(Lorg/locationtech/jts/geom/Coordinate;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;)V"
	intersect?	)Invalid shape: Hole is not within polygonINTERSECTION_ORDERHLcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$IntersectionOrder;	binarySearch@([Ljava/lang/Object;IILjava/lang/Object;Ljava/util/Comparator;)I
?	compareTo(Ljava/lang/Object;)I!"
?#	position ({}) of edge {}: {}%K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V?'?(	Component: {}*	Hole intersections ({}): {},9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V?.?/indexpossharedVertexMAX_COORDINATE4?	5equals3D)(Lorg/locationtech/jts/geom/Coordinate;)Z78
?9java/lang/Math;abs(D)D=>
<?connecty(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;)VAB
Ce1e2 !	Gjava/lang/AssertionErrorI
J%?(Lorg/locationtech/jts/geom/Coordinate;Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;Lorg/locationtech/jts/geom/Coordinate;)V"L
M*(Z)[Lorg/locationtech/jts/geom/Coordinate;HO
2PLEFTR	Sring?(IZZ[Lorg/locationtech/jts/geom/Coordinate;I[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;IILjava/util/concurrent/atomic/AtomicBoolean;)[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;UV
W	directiontop,([Lorg/locationtech/jts/geom/Coordinate;II)IZ[
\range-([Lorg/locationtech/jts/geom/Coordinate;II)[D^_
`[Db@v??z
?f	translate*([Lorg/locationtech/jts/geom/Coordinate;)Vhi
jsetl?
?mconcat?(IZ[Lorg/locationtech/jts/geom/Coordinate;I[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;II)[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;op
q
handednesstoffsetrngincorrectOrientationyw?	?xminXmaxXminYmaxY9Provided shape has duplicate consecutive coordinates at: ~-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??setNext>(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;)V??
?pointOffset
edgeOffsetccontentToWKT()Ljava/lang/StringBuilder;(C)Ljava/lang/StringBuilder;??
??coordinateListToWKT+(Ljava/util/List;)Ljava/lang/StringBuilder;??
?3(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;??
??, ?sbLjava/lang/StringBuilder;hashCodejava/lang/Object?java/util/Objects?hash([Ljava/lang/Object;)I??
??getClass()Ljava/lang/Class;??
??'(Ljava/lang/Object;Ljava/lang/Object;)Z??
??objLjava/lang/Object;other*()Lorg/locationtech/spatial4j/shape/Shape;??
?java/lang/Class?desiredAssertionStatus?z
??POLYGON?	!?	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
ExceptionsO()Ljava/util/List;LocalVariableTypeTable?(Lorg/locationtech/jts/geom/GeometryFactory;Ljava/util/List;)Lorg/locationtech/jts/geom/LinearRing;?(Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;ILjava/util/ArrayList;)Iv(Ljava/util/List;>;)[[[Lorg/locationtech/jts/geom/Coordinate;?([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;ILjava/util/List;>;)[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;?([Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;[[Lorg/locationtech/jts/geom/Coordinate;I[Lcom/groupbyinc/flux/common/geo/builders/ShapeBuilder$Edge;Ljava/util/List;>;)V
SourceFileInnerClasses!? !."#??.*?&*?)?+*?-Y?.?0*,?+?+?6W+?:*+?.?..@!?&	D<BEFG$I(J-K??$2"A?J*+,?C?? =>??
NO"D?Q*?2Y+?G,?C?? =>HI?
RS"E?A	*+?)?K??	=>	HI?
VW"L??J*?&*?)?+*?-Y?.?0*?2Y+?P?<*+?T?++?Z=>?*?2Y+?P?^W?????*1_`J=>Jab/`?*
\<B]"^*_/`6aC`Ic??1V??Ncd??C*?<+?f*?++?g+*?0?l?r*?0?vM,?|?,???2N-+?f???? :[C=>C???ghij:k?lBm??'x??N??/*?+??=>?p[\?;*+????=>[?y[??q?+?6W+?:*?0+??W*?? =>[@!???	?
???	??/*?0??=>????4?/*???3??8
*??
??
78??]*??L+?l?(??Y??Y?????+?l??????????+????++?ld?????
??Y??????]?X??X?????? ?4?R?\??	?4i'????++????N,????:-??W-???
??Yŷƿ??4+=>++[#?????#????????? ?*???*??H????*???`X???e???o????x?`?*?`?J???8?M?S?X?e?o????????????????????#??A?1????F???:**??*???????=>????5*?<+?W*?0?vN-?|?-???2:+?W???+??*([5=>5	5
??
?(?0?3???x??N??L+?W+????$?(W+?+?*?+?.?4?:?(W+?=??AW*+,?CW+?FW+?IW+?? L=>L	L
?"???.?9?@?E?J??N????%?*?KN-??
+-2?O?+-?U?*+?[??*	\P%=>%]?%^!???	?????QDW?X_?2*???[??=>?XY??S+*?'%_`S=>S]?Gn:h$/sp?$/so?
$1FL??'geix?$`a?]*++?l???t?v?z??]?H?H????{|?.???=>?}X?U*?? #?LM??@*+2?zM+??,+?d?eN6-??-*+`2?zS????N*,-?m??>_`!h@]?@L8n9h?"'*+, -.,7092??ei???iRS??$+???M>,??,*+2?OS????*,????*_`$]?$\P???@ABAD????
???v*N-????ٗ?-????㗚-??YN*??ݧ-????ٗ?	٧-????㘜	?9??????????666*:	*:
??Y??:		??????	??,??	???????	??*???Y??ƿt6	?????¶??:

??:
	????	??	??
??
?????¶??:
?	??
??????Ԅ?	????Y
	?˶?W,	??W	:
??	??Y:	*??"?d?????f?`?Q??
?J??v??v?`v??t??V ??o?`r?`u?`x???	{???
?????v????????$RST(U+YVZ\[larduexf{h?j?k?m?o?p?q?w?x?{?|?}?~?????*?-?0?F?M?Q?T?e??D?@??-?>?7?4

A??
H??u=+??+*??YK??S????+?? _`??Hu??????	??
???H?*?l??L=+??)*???iN+--?l?v?t??S???׸??C=+??;??????>+2?????+22??????????+??>?,_`W!?`@>_`??
v?P???????6
?
???2?8?>?F?U?_?r?x?~???Q?+??? ???
???9?????vM>?&*2`t??6,*2`????S????,??4!?`(_`9?9?`
,??"???
??!?1?7??
???'
???1p?-Y*??N6*??P*2???@*2,?l``t-??6?-Y?.:*2`??????W,??W????--????ذ?H3(?`<?
T_`p??p?`p?
f?? <??p??
f??&	?
???3?<?R?[?a???
-?M???
?????-Y?.N++?*-?-?-???*????`????????
	
??)?????*???6?
?Y*2??*2???:???????-??6???Y?ƿ6	-?? Y6?+-2????$??Y6	???Y?ƿ	?	6
??	6
?
`t6
-
2??tdd6???C??&
??-
2?)??+?????-??????-??0???i+2??W???????1`
?1`
5???M??`o?2``?3!	?j1`
?\?`_`)?)?)?`)??)??)???f????5???M?R?]?`?~????????????"?(?4??D?*@
??S????i??
???[?6??*``2:*``2:?????-??d-2S-S??6?R??6?G?????????:?*???????@ٗ??????@ٗ?
?D???l??R?E?wF??_`?????`??`????`?6
$	%&,%.(/50:?`@?A?B?$?E???6?R??
AB??#?H?*?+??JY?K??H?*+??JY?K?*?*?????v?Y*?*???M+?+?????*?Y+?+???N*?Y*?-*??N???*?Y*?+??*??N??+?Y+?,+??N???{*??+?s*??+??h?Y+?*??+??NM+?+?????*?Y+?+???N*?Y*?-*??N???*?Y*?+??*??N??+,????>eF?G`E??E??QF?#a?#???NIJ)N7QGSUUeVyW|Y?[?\?^?`?b?cegi"k?	?R??[?
???D		R??+?)???6-?-?Q?,?Q:+?T???d?XW?d??\	R?`RRR[R??R?`R??:Y!+'?u?qs+tLu?f@J?22???Dv?	22??v?	22??v
UV???-?]6		`dp`6
	`p`6-
`2??-`2?????6-?a:

1
1g9?
??6?ٗ?d???g?/?+-?k?	?n?
????6?-?r?????`?Y!?s!??u??`????t`??`???
?Z`	??`
%?}`D?!Ny^b
Ynu?j]v!?:?
??%?D?N?Y?j???????????????A@?$c@?

@
Z[??[>6?Q*`2?y*`2?y??	>?0*`2?y*`2?y??*`2??*`2????>??????4T_`[?u[?`[?`YZ`?&	??? ?&?;?P?S?Y??? ,?
^_?s?*2??J*2??9*2?y9*2?y9	6?o*`2??)??
*`2??J*`2????*`2??9*`2?y??*`2?y9*`2?y	??*`2?y9	?????Y)RYRYRY	R??R"r_`??u??`??`?z??{??|??}?	?>?????(?6?@?O?Z?i?t?????????"v?
op?6?H??`??JY?K??H?,?`??JY?K??Y,2?S6???1`?Y,`2`d2?S`2???r`d2??,`2???8`d2`?Y,`2?[S??`d2???$??Y??Y????,`2?????ƿ???U?!2`d2??2???#`d22??`d2????RC?_`6?`6Y!6?u6?`6??6?`6?`?J??0?@?J?N?m?|???????????????%?3??	?8?M ?!
hi??/*L+?=>?%+2:????Y??dc?????ܱ???/?u?(.??v ?????[??Y??L+(??W+*?S???&	

;CORY??(?x?)?X?G??Y*??????M*+??+?*??+????+?M*?<,?M??0?>?&	 "#3$A%L#?
?2@A???/*????=>?6?$?I?????H????v????68:?@???"	@	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy