assassinlike commited on
Commit
2765f6d
·
verified ·
1 Parent(s): b8ba3ec

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Extend/__pycache__/LayerManager.cpython-311.pyc +0 -0
  2. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Extend/__pycache__/TopologyUtils.cpython-311.pyc +0 -0
  3. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/__init__.cpython-311.pyc +0 -0
  4. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_coverage.cpython-311.pyc +0 -0
  5. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_enum.cpython-311.pyc +0 -0
  6. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_geometry.cpython-311.pyc +0 -0
  7. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_ragged_array.cpython-311.pyc +0 -0
  8. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_version.cpython-311.pyc +0 -0
  9. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/affinity.cpython-311.pyc +0 -0
  10. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/conftest.cpython-311.pyc +0 -0
  11. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/constructive.cpython-311.pyc +0 -0
  12. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/coordinates.cpython-311.pyc +0 -0
  13. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/coords.cpython-311.pyc +0 -0
  14. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/creation.cpython-311.pyc +0 -0
  15. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/decorators.cpython-311.pyc +0 -0
  16. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/errors.cpython-311.pyc +0 -0
  17. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/geos.cpython-311.pyc +0 -0
  18. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/io.cpython-311.pyc +0 -0
  19. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/linear.cpython-311.pyc +0 -0
  20. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/measurement.cpython-311.pyc +0 -0
  21. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/ops.cpython-311.pyc +0 -0
  22. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/plotting.cpython-311.pyc +0 -0
  23. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/predicates.cpython-311.pyc +0 -0
  24. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/prepared.cpython-311.pyc +0 -0
  25. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/set_operations.cpython-311.pyc +0 -0
  26. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/speedups.cpython-311.pyc +0 -0
  27. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/strtree.cpython-311.pyc +0 -0
  28. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/testing.cpython-311.pyc +0 -0
  29. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/validation.cpython-311.pyc +0 -0
  30. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/wkb.cpython-311.pyc +0 -0
  31. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/wkt.cpython-311.pyc +0 -0
  32. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__init__.py +1 -0
  33. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/__init__.cpython-311.pyc +0 -0
  34. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/_oriented_envelope.cpython-311.pyc +0 -0
  35. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/cga.cpython-311.pyc +0 -0
  36. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/polylabel.cpython-311.pyc +0 -0
  37. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/_oriented_envelope.py +56 -0
  38. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/cga.py +50 -0
  39. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/polylabel.py +43 -0
  40. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__init__.py +27 -0
  41. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/__init__.cpython-311.pyc +0 -0
  42. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/base.cpython-311.pyc +0 -0
  43. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/collection.cpython-311.pyc +0 -0
  44. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/geo.cpython-311.pyc +0 -0
  45. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/linestring.cpython-311.pyc +0 -0
  46. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/multilinestring.cpython-311.pyc +0 -0
  47. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/multipoint.cpython-311.pyc +0 -0
  48. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/multipolygon.cpython-311.pyc +0 -0
  49. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/point.cpython-311.pyc +0 -0
  50. data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/polygon.cpython-311.pyc +0 -0
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Extend/__pycache__/LayerManager.cpython-311.pyc ADDED
Binary file (8.99 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Extend/__pycache__/TopologyUtils.cpython-311.pyc ADDED
Binary file (52.4 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (1.59 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_coverage.cpython-311.pyc ADDED
Binary file (6.65 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_enum.cpython-311.pyc ADDED
Binary file (1.55 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_geometry.cpython-311.pyc ADDED
Binary file (32 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_ragged_array.cpython-311.pyc ADDED
Binary file (19.8 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/_version.cpython-311.pyc ADDED
Binary file (603 Bytes). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/affinity.cpython-311.pyc ADDED
Binary file (9.56 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/conftest.cpython-311.pyc ADDED
Binary file (2.61 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/constructive.cpython-311.pyc ADDED
Binary file (59.2 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/coordinates.cpython-311.pyc ADDED
Binary file (12.7 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/coords.cpython-311.pyc ADDED
Binary file (5.05 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/creation.cpython-311.pyc ADDED
Binary file (30 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/decorators.cpython-311.pyc ADDED
Binary file (10.3 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/errors.cpython-311.pyc ADDED
Binary file (3.98 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/geos.cpython-311.pyc ADDED
Binary file (801 Bytes). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/io.cpython-311.pyc ADDED
Binary file (16.4 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/linear.cpython-311.pyc ADDED
Binary file (8.77 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/measurement.cpython-311.pyc ADDED
Binary file (12.1 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/ops.cpython-311.pyc ADDED
Binary file (31 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/plotting.cpython-311.pyc ADDED
Binary file (8.73 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/predicates.cpython-311.pyc ADDED
Binary file (43.5 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/prepared.cpython-311.pyc ADDED
Binary file (4.2 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/set_operations.cpython-311.pyc ADDED
Binary file (26.4 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/speedups.cpython-311.pyc ADDED
Binary file (1.31 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/strtree.cpython-311.pyc ADDED
Binary file (22.3 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/testing.cpython-311.pyc ADDED
Binary file (8.23 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/validation.cpython-311.pyc ADDED
Binary file (1.88 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/wkb.cpython-311.pyc ADDED
Binary file (2.65 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/__pycache__/wkt.cpython-311.pyc ADDED
Binary file (2.5 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Algorithms implemented in Shapely."""
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (257 Bytes). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/_oriented_envelope.cpython-311.pyc ADDED
Binary file (2.7 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/cga.cpython-311.pyc ADDED
Binary file (3.03 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/__pycache__/polylabel.cpython-311.pyc ADDED
Binary file (1.76 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/_oriented_envelope.py ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import math
2
+ from itertools import islice
3
+
4
+ import numpy as np
5
+
6
+ import shapely
7
+ from shapely.affinity import affine_transform
8
+
9
+
10
+ def _oriented_envelope_min_area(geometry, **kwargs):
11
+ """Compute the oriented envelope (minimum rotated rectangle).
12
+
13
+ This is a fallback implementation for GEOS < 3.12 to have the correct
14
+ minimum area behaviour.
15
+ """
16
+ if geometry is None:
17
+ return None
18
+ if geometry.is_empty:
19
+ return shapely.from_wkt("POLYGON EMPTY")
20
+
21
+ # first compute the convex hull
22
+ hull = geometry.convex_hull
23
+ try:
24
+ coords = hull.exterior.coords
25
+ except AttributeError: # may be a Point or a LineString
26
+ return hull
27
+ # generate the edge vectors between the convex hull's coords
28
+ edges = (
29
+ (pt2[0] - pt1[0], pt2[1] - pt1[1])
30
+ for pt1, pt2 in zip(coords, islice(coords, 1, None))
31
+ )
32
+
33
+ def _transformed_rects():
34
+ for dx, dy in edges:
35
+ # compute the normalized direction vector of the edge
36
+ # vector.
37
+ length = math.sqrt(dx**2 + dy**2)
38
+ ux, uy = dx / length, dy / length
39
+ # compute the normalized perpendicular vector
40
+ vx, vy = -uy, ux
41
+ # transform hull from the original coordinate system to
42
+ # the coordinate system defined by the edge and compute
43
+ # the axes-parallel bounding rectangle.
44
+ transf_rect = affine_transform(hull, (ux, uy, vx, vy, 0, 0)).envelope
45
+ # yield the transformed rectangle and a matrix to
46
+ # transform it back to the original coordinate system.
47
+ yield (transf_rect, (ux, vx, uy, vy, 0, 0))
48
+
49
+ # check for the minimum area rectangle and return it
50
+ transf_rect, inv_matrix = min(_transformed_rects(), key=lambda r: r[0].area)
51
+ return affine_transform(transf_rect, inv_matrix)
52
+
53
+
54
+ _oriented_envelope_min_area_vectorized = np.frompyfunc(
55
+ _oriented_envelope_min_area, 1, 1
56
+ )
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/cga.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Shapely CGA algorithms."""
2
+
3
+ import numpy as np
4
+
5
+ import shapely
6
+
7
+
8
+ def signed_area(ring):
9
+ """Return the signed area enclosed by a ring in linear time.
10
+
11
+ Algorithm used: https://web.archive.org/web/20080209143651/http://cgafaq.info:80/wiki/Polygon_Area
12
+ """
13
+ coords = np.array(ring.coords)[:, :2]
14
+ xs, ys = np.vstack([coords, coords[1]]).T
15
+ return np.sum(xs[1:-1] * (ys[2:] - ys[:-2])) / 2.0
16
+
17
+
18
+ def _reverse_conditioned(rings, condition):
19
+ """Return a copy of the rings potentially reversed depending on `condition`."""
20
+ condition = np.asarray(condition)
21
+ if np.all(condition):
22
+ rings = shapely.reverse(rings)
23
+ elif np.any(condition):
24
+ rings = np.array(rings)
25
+ rings[condition] = shapely.reverse(rings[condition])
26
+ return rings
27
+
28
+
29
+ def _orient_polygon(geometry, exterior_cw=False):
30
+ if geometry is None:
31
+ return None
32
+ if geometry.geom_type in ["MultiPolygon", "GeometryCollection"]:
33
+ return geometry.__class__(
34
+ [_orient_polygon(geom, exterior_cw) for geom in geometry.geoms]
35
+ )
36
+ # elif geometry.geom_type in ["LinearRing"]:
37
+ # return reverse_conditioned(geometry, is_ccw(geometry) != ccw)
38
+ elif geometry.geom_type == "Polygon":
39
+ rings = np.array([geometry.exterior, *geometry.interiors])
40
+ reverse_condition = shapely.is_ccw(rings)
41
+ reverse_condition[0] = not reverse_condition[0]
42
+ if exterior_cw:
43
+ reverse_condition = np.logical_not(reverse_condition)
44
+ if np.any(reverse_condition):
45
+ rings = _reverse_conditioned(rings, reverse_condition)
46
+ return geometry.__class__(rings[0], rings[1:])
47
+ return geometry
48
+
49
+
50
+ _orient_polygons_vectorized = np.frompyfunc(_orient_polygon, nin=2, nout=1)
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/algorithms/polylabel.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Provides functions for finding the pole of inaccessibility for a given polygon."""
2
+
3
+ from shapely._geometry import get_point
4
+ from shapely.constructive import maximum_inscribed_circle
5
+
6
+
7
+ def polylabel(polygon, tolerance=1.0):
8
+ """Find pole of inaccessibility for a given polygon.
9
+
10
+ Based on Vladimir Agafonkin's https://github.com/mapbox/polylabel
11
+
12
+ Parameters
13
+ ----------
14
+ polygon : shapely.geometry.Polygon
15
+ Polygon for which to find the pole of inaccessibility.
16
+ tolerance : int or float, optional
17
+ `tolerance` represents the highest resolution in units of the
18
+ input geometry that will be considered for a solution. (default
19
+ value is 1.0).
20
+
21
+ Returns
22
+ -------
23
+ shapely.geometry.Point
24
+ A point representing the pole of inaccessibility for the given input
25
+ polygon.
26
+
27
+ Raises
28
+ ------
29
+ shapely.errors.TopologicalError
30
+ If the input polygon is not a valid geometry.
31
+
32
+ Examples
33
+ --------
34
+ >>> from shapely.ops import polylabel
35
+ >>> from shapely import LineString
36
+ >>> polygon = LineString([(0, 0), (50, 200), (100, 100), (20, 50),
37
+ ... (-100, -20), (-150, -200)]).buffer(100)
38
+ >>> polylabel(polygon, tolerance=0.001)
39
+ <POINT (59.733 111.33)>
40
+
41
+ """
42
+ line = maximum_inscribed_circle(polygon, tolerance)
43
+ return get_point(line, 0)
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__init__.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Geometry classes and factories."""
2
+
3
+ from shapely.geometry.base import CAP_STYLE, JOIN_STYLE
4
+ from shapely.geometry.collection import GeometryCollection
5
+ from shapely.geometry.geo import box, mapping, shape
6
+ from shapely.geometry.linestring import LineString
7
+ from shapely.geometry.multilinestring import MultiLineString
8
+ from shapely.geometry.multipoint import MultiPoint
9
+ from shapely.geometry.multipolygon import MultiPolygon
10
+ from shapely.geometry.point import Point
11
+ from shapely.geometry.polygon import LinearRing, Polygon
12
+
13
+ __all__ = [
14
+ "CAP_STYLE",
15
+ "JOIN_STYLE",
16
+ "GeometryCollection",
17
+ "LineString",
18
+ "LinearRing",
19
+ "MultiLineString",
20
+ "MultiPoint",
21
+ "MultiPolygon",
22
+ "Point",
23
+ "Polygon",
24
+ "box",
25
+ "mapping",
26
+ "shape",
27
+ ]
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (1.14 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/base.cpython-311.pyc ADDED
Binary file (49.2 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/collection.cpython-311.pyc ADDED
Binary file (2.46 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/geo.cpython-311.pyc ADDED
Binary file (6.18 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/linestring.cpython-311.pyc ADDED
Binary file (8.79 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/multilinestring.cpython-311.pyc ADDED
Binary file (4.62 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/multipoint.cpython-311.pyc ADDED
Binary file (4.86 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/multipolygon.cpython-311.pyc ADDED
Binary file (5.61 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/point.cpython-311.pyc ADDED
Binary file (6.99 kB). View file
 
data/miniconda3/envs/catiagent/lib/python3.11/site-packages/shapely/geometry/__pycache__/polygon.cpython-311.pyc ADDED
Binary file (16.3 kB). View file