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
Jake Wasserman
3fd71dd472
Initial commit of read_postgis function
...
Wraps read_sql() and looks for the specified geometry column which gets
converted to shapely geometries. It returns a GeoDataFrame.
2013-10-05 02:33:02 -04:00
Kelsey Jordahl
fea5c40ac6
Merge pull request #33 from kjordahl/test/test-coverage
...
Improve test coverage and fix copy and to_crs methods.
2013-09-30 19:56:19 -07:00
Kelsey Jordahl
a693228fb4
BUG: GeoSeries can't use _data attribute with released pandas versions
2013-09-30 21:43:58 -05:00
Kelsey Jordahl
73527d40f3
BUG: backport _propogate_attributes method from pandas master
2013-09-30 21:26:49 -05:00
Kelsey Jordahl
266a70a610
TST: Test for transforming GeoDataFrame
2013-09-29 22:31:51 -05:00
Kelsey Jordahl
5ee9733084
BUG: Use crs of transformed series in transformed frame
2013-09-29 22:31:25 -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
01fb1e47e8
CLN: Remove unused internal function
2013-09-27 11:48:02 +02:00
Kelsey Jordahl
dbf15b21a7
Merge pull request #32 from kjordahl/feature/travis-pandas-versions
...
Run Travis CI tests on multiple pandas versions
2013-09-17 20:44:08 -07:00
Kelsey Jordahl
c0565df397
BUG: Use generic **kwargs to catch changes in pandas method APIs
2013-09-17 23:22:17 -04:00
Kelsey Jordahl
5017ab4ff7
TST: Try direct install of pandas in .travis.yml
2013-09-17 22:10:21 -04:00
Kelsey Jordahl
d32ade8d58
TST: Add Cython to requirements (needed to build pandas)
2013-09-17 22:01:31 -04:00
Kelsey Jordahl
8cc0036309
TST: Environment variable in .travis.yml needs to be preceeded by dollar sign
2013-09-17 22:01:31 -04:00
Kelsey Jordahl
1545e7ca55
TST: Run Travis CI tests on both release and master versions of pandas
2013-09-17 22:01:31 -04:00
Kelsey Jordahl
2be7de81d2
Merge pull request #31 from kjordahl/cleanup/imports
...
Clean up imports
2013-09-14 09:53:09 -07:00
Kelsey Jordahl
8caaadc423
Revert "TST: Run Travis CI tests on 2.6 as well"
...
This reverts commit dbbc9faefc .
2013-09-14 12:39:51 -04:00
Kelsey Jordahl
dbbc9faefc
TST: Run Travis CI tests on 2.6 as well
2013-09-14 12:26:35 -04:00
Kelsey Jordahl
bdab37dc15
TST: Remove matplotlib and descartes from requirements.txt (at least until there are plotting tests)
2013-09-14 12:25:50 -04:00
Kelsey Jordahl
eec469dcce
CLN: Lazy imports of matplotlib and descartes
2013-09-14 12:23:17 -04:00
Kelsey Jordahl
db675c18ea
CLN: Clean up imports. Use absolute imports.
2013-09-14 12:23:11 -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
1c6f8a3fc6
Merge pull request #28 from kjordahl/bug/series_unary_op
...
BUG: _series_unary_op should return a series
2013-09-06 15:42:29 -07: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
17c7cf0121
BUG: _series_unary_op() should return a Series, not a GeoSeries
2013-09-06 18:27:53 -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
Kelsey Jordahl
74b2666efd
Merge pull request #23 from jwass/fix_bool_index
...
Fix boolean indexing on GeoDataFrame
2013-08-22 20:44:26 -07:00
Jake Wasserman
983c3ad798
Fix comment on GeoDataFrame.__getitem__
2013-08-22 23:01:18 -04: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
Kelsey Jordahl
3eeb17a0fe
BUG: crs was not being set in GeoDataFrame.__init__()
2013-08-22 22:36:11 -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
Jake Wasserman
df00e62d46
Ensure that key is a string before compare
...
Fixes boolean indexing on GeoDataFrame
2013-08-22 13:32:45 -04:00
Kelsey Jordahl
3ebcae071d
Merge pull request #22 from kjordahl/pandas-methods
...
Fix slicing and implement some pandas methods
2013-08-20 16:24:11 -07:00
Kelsey Jordahl
8ca8a85e5b
TST: Skip tests for methods not yet implemented in GeoPandas
2013-08-20 19:08:34 -04:00
Kelsey Jordahl
c37fe11e1f
BUG: Wrap a few more pandas methods that were not returning correct type
2013-08-20 17:55:31 -04:00
Kelsey Jordahl
6c1b24b783
ENH: Generalize wrapped pandas methods
2013-08-20 17:53:28 -04:00
Kelsey Jordahl
a2fccff7cb
BUG: set GeoSeries type in __getitem__ and __getslice__
2013-08-20 17:53:28 -04:00
Kelsey Jordahl
7cec9abf78
TST: Some tests for pandas methods returning GeoSeries type
2013-08-20 17:53:28 -04:00
Kelsey Jordahl
c4dcd95d61
DOC: Minor updates to README
2013-08-20 17:52:56 -04:00
Kelsey Jordahl
1bde7cb82a
Merge pull request #21 from kjordahl/feature-travis-ci
...
Travis CI integration
2013-08-19 21:37:12 -07:00