shapely 1.4.3__tar.gz → 1.4.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. {Shapely-1.4.3 → Shapely-1.4.4}/CHANGES.txt +4 -0
  2. {Shapely-1.4.3/Shapely.egg-info → Shapely-1.4.4}/PKG-INFO +6 -2
  3. {Shapely-1.4.3 → Shapely-1.4.4}/README.rst +1 -1
  4. {Shapely-1.4.3 → Shapely-1.4.4/Shapely.egg-info}/PKG-INFO +6 -2
  5. {Shapely-1.4.3 → Shapely-1.4.4}/Shapely.egg-info/SOURCES.txt +1 -1
  6. Shapely-1.4.4/VERSION.txt +1 -0
  7. Shapely-1.4.4/shapely/__init__.py +1 -0
  8. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/coords.py +6 -5
  9. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/speedups/_speedups.c +1011 -909
  10. Shapely-1.4.4/tests/test_coords.py +40 -0
  11. Shapely-1.4.3/VERSION.txt +0 -1
  12. Shapely-1.4.3/shapely/__init__.py +0 -1
  13. Shapely-1.4.3/shapely/vectorized/_vectorized.c +0 -20100
  14. {Shapely-1.4.3 → Shapely-1.4.4}/CREDITS.txt +0 -0
  15. {Shapely-1.4.3 → Shapely-1.4.4}/LICENSE.txt +0 -0
  16. {Shapely-1.4.3 → Shapely-1.4.4}/Shapely.egg-info/dependency_links.txt +0 -0
  17. {Shapely-1.4.3 → Shapely-1.4.4}/Shapely.egg-info/top_level.txt +0 -0
  18. {Shapely-1.4.3 → Shapely-1.4.4}/docs/design.rst +0 -0
  19. {Shapely-1.4.3 → Shapely-1.4.4}/docs/index.rst +0 -0
  20. {Shapely-1.4.3 → Shapely-1.4.4}/docs/manual.rst +0 -0
  21. {Shapely-1.4.3 → Shapely-1.4.4}/docs/project.rst +0 -0
  22. {Shapely-1.4.3 → Shapely-1.4.4}/setup.cfg +0 -0
  23. {Shapely-1.4.3 → Shapely-1.4.4}/setup.py +0 -0
  24. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/_geos.pxi +0 -0
  25. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/affinity.py +0 -0
  26. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/algorithms/__init__.py +0 -0
  27. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/algorithms/cga.py +0 -0
  28. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/ctypes_declarations.py +0 -0
  29. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/examples/__init__.py +0 -0
  30. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/examples/dissolve.py +0 -0
  31. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/examples/geoms.py +0 -0
  32. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/examples/intersect.py +0 -0
  33. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/ftools.py +0 -0
  34. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/__init__.py +0 -0
  35. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/base.py +0 -0
  36. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/collection.py +0 -0
  37. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/geo.py +0 -0
  38. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/linestring.py +0 -0
  39. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/multilinestring.py +0 -0
  40. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/multipoint.py +0 -0
  41. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/multipolygon.py +0 -0
  42. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/point.py +0 -0
  43. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/polygon.py +0 -0
  44. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geometry/proxy.py +0 -0
  45. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/geos.py +0 -0
  46. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/impl.py +0 -0
  47. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/iterops.py +0 -0
  48. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/linref.py +0 -0
  49. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/ops.py +0 -0
  50. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/predicates.py +0 -0
  51. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/prepared.py +0 -0
  52. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/speedups/__init__.py +0 -0
  53. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/strtree.py +0 -0
  54. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/topology.py +0 -0
  55. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/validation.py +0 -0
  56. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/vectorized/__init__.py +0 -0
  57. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/vectorized/_vectorized.pyx +0 -0
  58. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/wkb.py +0 -0
  59. {Shapely-1.4.3 → Shapely-1.4.4}/shapely/wkt.py +0 -0
  60. {Shapely-1.4.3 → Shapely-1.4.4}/tests/__init__.py +0 -0
  61. {Shapely-1.4.3 → Shapely-1.4.4}/tests/binascii_hex.txt +0 -0
  62. {Shapely-1.4.3 → Shapely-1.4.4}/tests/conftest.py +0 -0
  63. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_affinity.py +0 -0
  64. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_box.py +0 -0
  65. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_cga.py +0 -0
  66. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_collection.py +0 -0
  67. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_delaunay.py +0 -0
  68. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_delegated.py +0 -0
  69. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_dlls.py +0 -0
  70. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_doctests.py +0 -0
  71. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_emptiness.py +0 -0
  72. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_equality.py +0 -0
  73. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_geointerface.py +0 -0
  74. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_geomseq.py +0 -0
  75. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_getitem.py +0 -0
  76. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_invalid_geometries.py +0 -0
  77. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_iterops.py +0 -0
  78. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_linear_referencing.py +0 -0
  79. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_linemerge.py +0 -0
  80. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_linestring.py +0 -0
  81. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_locale.py +0 -0
  82. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_mapping.py +0 -0
  83. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_multilinestring.py +0 -0
  84. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_multipoint.py +0 -0
  85. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_multipolygon.py +0 -0
  86. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_ndarrays.py +0 -0
  87. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_nearest.py +0 -0
  88. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_operations.py +0 -0
  89. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_operators.py +0 -0
  90. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_persist.py +0 -0
  91. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_pickle.py +0 -0
  92. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_point.py +0 -0
  93. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_polygon.py +0 -0
  94. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_polygonize.py +0 -0
  95. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_predicates.py +0 -0
  96. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_prepared.py +0 -0
  97. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_products_z.py +0 -0
  98. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_singularity.py +0 -0
  99. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_strtree.py +0 -0
  100. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_styles.py +0 -0
  101. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_transform.py +0 -0
  102. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_union.py +0 -0
  103. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_validation.py +0 -0
  104. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_vectorized.py +0 -0
  105. {Shapely-1.4.3 → Shapely-1.4.4}/tests/test_xy.py +0 -0
  106. {Shapely-1.4.3 → Shapely-1.4.4}/tests/threading_test.py +0 -0
@@ -1,6 +1,10 @@
1
1
  Changes
2
2
  =======
3
3
 
4
+ 1.4.4 (2014-11-02)
5
+ ------------------
6
+ - Proper conversion of numpy float32 vals to coords (#186).
7
+
4
8
  1.4.3 (2014-10-01)
5
9
  ------------------
6
10
  - Fix for endianness bug in WKB writer (#174).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: Shapely
3
- Version: 1.4.3
3
+ Version: 1.4.4
4
4
  Summary: Geometric objects, predicates, and operations
5
5
  Home-page: https://github.com/Toblerity/Shapely
6
6
  Author: Sean Gillies
@@ -36,7 +36,7 @@ Description: =======
36
36
  Shapely 1.4 requires
37
37
 
38
38
  * Python >=2.6 (including Python 3.x)
39
- * libgeos_c >=3.1 (3.0 and below have not been tested, YMMV)
39
+ * libgeos_c >=3.3 (Shapely 1.2 requires only libgeos_c 3.1 but YMMV)
40
40
 
41
41
  Installation
42
42
  ============
@@ -229,6 +229,10 @@ Description: =======
229
229
  Changes
230
230
  =======
231
231
 
232
+ 1.4.4 (2014-11-02)
233
+ ------------------
234
+ - Proper conversion of numpy float32 vals to coords (#186).
235
+
232
236
  1.4.3 (2014-10-01)
233
237
  ------------------
234
238
  - Fix for endianness bug in WKB writer (#174).
@@ -28,7 +28,7 @@ Requirements
28
28
  Shapely 1.4 requires
29
29
 
30
30
  * Python >=2.6 (including Python 3.x)
31
- * libgeos_c >=3.1 (3.0 and below have not been tested, YMMV)
31
+ * libgeos_c >=3.3 (Shapely 1.2 requires only libgeos_c 3.1 but YMMV)
32
32
 
33
33
  Installation
34
34
  ============
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: Shapely
3
- Version: 1.4.3
3
+ Version: 1.4.4
4
4
  Summary: Geometric objects, predicates, and operations
5
5
  Home-page: https://github.com/Toblerity/Shapely
6
6
  Author: Sean Gillies
@@ -36,7 +36,7 @@ Description: =======
36
36
  Shapely 1.4 requires
37
37
 
38
38
  * Python >=2.6 (including Python 3.x)
39
- * libgeos_c >=3.1 (3.0 and below have not been tested, YMMV)
39
+ * libgeos_c >=3.3 (Shapely 1.2 requires only libgeos_c 3.1 but YMMV)
40
40
 
41
41
  Installation
42
42
  ============
@@ -229,6 +229,10 @@ Description: =======
229
229
  Changes
230
230
  =======
231
231
 
232
+ 1.4.4 (2014-11-02)
233
+ ------------------
234
+ - Proper conversion of numpy float32 vals to coords (#186).
235
+
232
236
  1.4.3 (2014-10-01)
233
237
  ------------------
234
238
  - Fix for endianness bug in WKB writer (#174).
@@ -50,7 +50,6 @@ shapely/geometry/proxy.py
50
50
  shapely/speedups/__init__.py
51
51
  shapely/speedups/_speedups.c
52
52
  shapely/vectorized/__init__.py
53
- shapely/vectorized/_vectorized.c
54
53
  shapely/vectorized/_vectorized.pyx
55
54
  tests/__init__.py
56
55
  tests/binascii_hex.txt
@@ -59,6 +58,7 @@ tests/test_affinity.py
59
58
  tests/test_box.py
60
59
  tests/test_cga.py
61
60
  tests/test_collection.py
61
+ tests/test_coords.py
62
62
  tests/test_delaunay.py
63
63
  tests/test_delegated.py
64
64
  tests/test_dlls.py
@@ -0,0 +1 @@
1
+ 1.4.4
@@ -0,0 +1 @@
1
+ __version__ = "1.4.4"
@@ -21,13 +21,14 @@ def required(ob):
21
21
  """Return an object that meets Shapely requirements for self-owned
22
22
  C-continguous data, copying if necessary, or just return the original
23
23
  object."""
24
- if (hasattr(ob, '__array_interface__')
25
- and ob.__array_interface__.get('strides')):
26
- if has_numpy:
27
- return numpy.require(ob, numpy.float64, ["C", "OWNDATA"])
28
- else:
24
+ if hasattr(ob, '__array_interface__'):
25
+ if ob.__array_interface__.get('strides') and not has_numpy:
29
26
  # raise an error if strided. See issue #52.
30
27
  raise ValueError("C-contiguous data is required")
28
+ else:
29
+ # numpy.require will just return (ob) if it is already
30
+ # float64 and well-behaved.
31
+ return numpy.require(ob, numpy.float64, ["C", "OWNDATA"])
31
32
  else:
32
33
  return ob
33
34