Commit Graph
51 Commits
Author SHA1 Message Date
Jacob Wasserman 0a7508f111 Add testing for read_postgis function
It also installs postgis and creates a simple database filled with the borough
data. A new requirements.test.txt file is created so that not everybody
installing geopandas is required to install the packages for testing, psycopg2
in this case.
2013-10-05 02:39:33 -04:00
Kelsey Jordahl 266a70a610 TST: Test for transforming GeoDataFrame 2013-09-29 22:31:51 -05:00
Kelsey Jordahl e92ce6d183 BUG: Fix copy method for GeoSeries and GeoDataFrame 2013-09-29 22:06:43 -05:00
Kelsey Jordahl 268fd2a974 TST: Check that we are prevented from writing mixed types to file 2013-09-29 21:27:18 -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 7fd9d756ac CLN: Remove useless test 2013-09-27 13:45:40 +02: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 c770a5cc42 Merge pull request #24 from kjordahl/bug/df-init-crs
BUG: crs was ignored in creation of GeoDataFrame
2013-08-22 20:44:44 -07:00
Jake Wasserman f544fd846f Add type tests for slicing/fancy indexing.
Add one check to output type of fancy index test
2013-08-22 22:57:27 -04:00
Kelsey Jordahl 019029c60f TST: Add test for GeoDataFrame.__init__() 2013-08-22 22:36:46 -04:00
Jake Wasserman 2d4128ad6f Return proper type for GeoDataFrame.__getitem__
Introduce type testing for GeoDataFrame.
Add tests for boolean index.

GeoDataFrame.__getitem__(key) returns the Geo* equivalent class when a
'geometry' column is present.

The following are True when df is a GeoDataFrame:
type(df['geometry']) is GeoSeries
type(df['column']) is Series
type(df[['column1', 'column2', 'geometry']]) is GeoDataFrame
type(df[['column1', 'column2']]) is DataFrame
2013-08-22 20:20:03 -04:00
Kelsey Jordahl 8ca8a85e5b TST: Skip tests for methods not yet implemented in GeoPandas 2013-08-20 19:08:34 -04:00
Kelsey Jordahl 7cec9abf78 TST: Some tests for pandas methods returning GeoSeries type 2013-08-20 17:53:28 -04:00
Kelsey Jordahl de3bbb6924 TST: Fetch test NYC file if it doesn't exist 2013-08-20 00:06:08 -04:00
Kelsey Jordahl 0757777eef Add test for GeoSeries.fillna() method. 2013-08-18 21:23:25 -04:00
Kelsey Jordahl 0856a8e9e2 Re-use array of borough names 2013-08-07 18:52:08 -04:00
Kelsey Jordahl 3875baec21 Use temp directory for test_to_file 2013-08-07 18:50:11 -04:00
Carson Farmer 1a376d64de add initial support for writing to geospatial data formats via fiona 2013-07-21 16:36:38 -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 4733055d8e Add test for values of text columns in GeoDataFrame from file 2013-07-15 11:45:18 +05:30
Kelsey Jordahl 36332c5caa Actually use unittest assert methods 2013-07-15 11:40:46 +05:30
Kelsey Jordahl e1f0d9a5af GeoDataFrame test to unittest framework 2013-07-15 11:28:59 +05:30
sgillies fd18fe30a1 to_json returns a GeoJSON representation of a GeoDataFrame. 2013-07-08 17:35:41 -06:00
sgillies 7782f6a00f Add kwargs to from_file that turn on extra fiona features.
Also try to import setup from setuptools to get the 'develop'
feature.
2013-07-07 22:00:22 -06:00
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
Kelsey Jordahl f61d71c1ef Update tests 2013-06-27 09:37:50 -05:00
Kelsey Jordahl 4785c2cdbc Add __init__.py files 2013-06-27 00:21:08 -05:00