Kelsey Jordahl
11b3ad07f0
Merge branch 'master' into feature/coordinate_index
...
Conflicts:
tests/test_geoseries.py
2014-07-13 15:54:11 -07:00
Kelsey Jordahl
9c7ff29d36
Merge branch 'master' into feature/coordinate_index
...
Conflicts:
geopandas/geoseries.py
tests/test_geoseries.py
2014-07-12 08:04:43 -05:00
Matthew Perry
3a743219db
geo interface for geoseries
2014-07-11 15:08:28 -05:00
Kelsey Jordahl
10722da48e
PY3: Use explicit relative imports in tests
2014-04-15 18:12:09 -04:00
Jacob Wasserman
0f1debae99
Rename equals methods to geom_equals
...
Renames on GeoPandasBase:
* equals() -> geom_equals()
* almost_equals() -> geom_almost_equals()
* equals_exact() -> geom_equals_exact()
2013-12-27 11:17:46 -05:00
Jacob Wasserman
1f6dfbde17
Move tests to test_geom_methods.py
...
For geometry tests, test both the GeoSeries and GeoDataFrame versions.
If the method's input is also a GeoSeries, test the input for both
GeoSeries and GeoDataFrame as well.
For example, for intersects(), test the following combination of inputs:
GeoSeries, GeoSeries,
GeoDataFrame, GeoSeries,
GeoSeries, GeoDataFrame,
GeoDataFrame, GeoDataFrame
Helper functions are provided to test all combinations
2013-12-27 11:17:46 -05:00
Kelsey Jordahl
559e5f608c
TST: Invoke unittest.main as script for test_geoseries
2013-11-18 22:45:00 -06:00
Kelsey Jordahl
40b32dbe5d
Merge pull request #70 from jwass/singlegeomfix
...
BUG: Fix GeoSeries constructor for multi geoms
2013-11-13 05:21:43 -08:00
Kelsey Jordahl
159d69e1e0
TST: Explicitly use relative imports and clean up tests
2013-11-12 22:58:31 -05:00
Kelsey Jordahl
17d933c04a
TST: Attempt to import unittest2 if running python 2.6
2013-11-12 22:56:17 -05:00
Jacob Wasserman
bb58ce7c35
TST: Test GeoSeries constructor with index
...
Make sure that when a single geometry is passed in and the index contains
multiple elements, the geometry is replicated in the GeoSeries.
As suggested by @jtratner in Issue #70 .
2013-11-12 22:17:44 -05:00
Jacob Wasserman
1cacbf5f70
BUG: Fix GeoSeries constructor for multi geoms
...
Because Multi* geometries are iterable, they get expanded when passed into
np.array(). Protect against this by passing in all base geometries as a
single element list. They will not be expanded into their individual
parts.
Switch on older versions of pandas when Series overrode __new__ instead
of __init__.
2013-11-12 22:17:33 -05:00
Kelsey Jordahl
b4f772d638
Merge pull request #58 from kjordahl/bug/cached_total_bounds
...
BUG: cached total_bounds don't reset if values are changed
2013-11-05 18:38:38 -08:00
Jeff Tratner
f96fd89557
TST: Move geom_equals and geom_almost_equals to tests/util and use them
2013-11-04 00:31:28 -05:00
Kelsey Jordahl
20b0d62056
TST: Test for total_bounds proprty if values in series change
2013-11-03 21:45:59 -05:00
Kelsey Jordahl
3062dc9638
TST: Tests for coordinate slices
2013-11-03 16:08:41 -05:00
Kelsey Jordahl
b1dd61a569
TST: Skip groupby test in pandas 0.12; add fillna test asserts
2013-11-01 08:43:57 -04:00
Kelsey Jordahl
0ff85f3f63
TST: fillna needs argument now, and takes method argument
2013-10-30 22:31:15 -04:00
Carson Farmer
4e5639f5a4
return to original bounds name and create total_bounds property
2013-10-18 16:32:52 -04:00
Carson Farmer
28b90bc6e8
changing the way 'bounds' is implemented to match shapely
2013-10-15 11:28:34 -04:00
Kelsey Jordahl
e92ce6d183
BUG: Fix copy method for GeoSeries and GeoDataFrame
2013-09-29 22:06:43 -05:00
Kelsey Jordahl
8e147af6eb
TST: Assertions for expected exceptions
2013-09-28 11:50:11 -04:00
Kelsey Jordahl
d30dd24b45
TST: Explicit skips of not yet implemented tests
2013-09-28 11:41:21 -04:00
Kelsey Jordahl
f573b541c2
TST: add missing assertions
2013-09-28 11:37:58 -04:00
Kelsey Jordahl
27d6ce4d98
TST: Use unittest assertion methods
2013-09-28 11:36:38 -04:00
Kelsey Jordahl
e47c3bd9ca
TST: Add tests for 'not in' GeoSeries
2013-09-28 11:34:06 -04:00
Kelsey Jordahl
5c51dea584
TST: Add a test for GeoSeries to/from file
2013-09-28 11:33:31 -04:00
Kelsey Jordahl
9db47e8f7a
Merge pull request #29 from cfarmer/transform
...
Adds various transformation functions - shift, rotate, scale, skew
2013-09-08 19:57:20 -07:00
Carson Farmer
fd58437ea3
adds various transformation functions - shift, rotate, scale, skew, and a few other minor adjustments/fixes
2013-09-08 21:33:25 -04:00
Kelsey Jordahl
4eccd048a3
TST: Add a type test to test_area to make sure it returns a Series.
2013-09-06 18:29:02 -04:00
Kelsey Jordahl
0757777eef
Add test for GeoSeries.fillna() method.
2013-08-18 21:23:25 -04:00
Kelsey Jordahl
df5350c90d
Test transform or points
2013-07-18 09:02:20 -04:00
Kelsey Jordahl
d085838e6f
Use numpy.testing to simplify some test assertions
...
Also fixes almost_equals test
2013-07-17 07:03:45 -04:00
Kelsey Jordahl
21a72c0d1a
Implement passing arguments to series operations
...
More docstring cleanup and additions
update tests for operations that take arguments
2013-07-17 07:03:45 -04:00
Kelsey Jordahl
5fc0f7df4e
Add crs to one of the test geometries
2013-07-17 07:03:44 -04:00
Kelsey Jordahl
36332c5caa
Actually use unittest assert methods
2013-07-15 11:40:46 +05:30
Kelsey Jordahl
299803a547
Add intersection test
2013-07-02 21:44:45 -04:00
Kelsey Jordahl
f47d13f69e
Tests for set operators
2013-07-02 21:38:25 -04:00
Kelsey Jordahl
612ad34479
Test for __contains__ method
2013-07-02 18:46:32 -04:00
Kelsey Jordahl
86aeeb6599
Alignment test
2013-07-02 17:46:25 -04:00
Kelsey Jordahl
2bbd1b378c
Alignment test
2013-07-02 17:42:33 -04:00
Kelsey Jordahl
6bb8c434b7
Add test for boundary method
2013-06-30 19:05:42 -04:00
Kelsey Jordahl
94c565b0f3
Test for representative_point
2013-06-30 18:54:32 -04:00
Kelsey Jordahl
b731f2ce94
Test for envelope method
2013-06-30 18:36:39 -04:00
Kelsey Jordahl
313f9c2450
Stubs for other binary operator tests
2013-06-29 00:50:22 -04:00
Kelsey Jordahl
6eecc38707
Tests for almost_equals and equals_exact
2013-06-29 00:47:55 -04:00
Kelsey Jordahl
17487e16c4
Test equals operator
2013-06-29 00:45:59 -04:00
Kelsey Jordahl
8e43ca9ffa
Symmetric union operation
2013-06-28 22:11:01 -04:00
Kelsey Jordahl
3483b25b73
Refactor tests and add union and difference tests
2013-06-28 19:14:30 -05:00
Kelsey Jordahl
7e96a4c856
Test driven! Tests for unary predicates
2013-06-27 09:56:42 -05:00