Commit Graph
236 Commits
Author SHA1 Message Date
Kelsey Jordahl 7b9c8a76ca Merge pull request #39 from jwass/geocode
Initial commit of geocoding functionality
2013-10-21 19:47:01 -07:00
Jacob Wasserman e3f9943887 Add some more documentation about geopy 2013-10-20 20:47:28 -04:00
Jacob Wasserman 2b02fc3dff Catch geocoding erros and fill with empty rows
Catch GeocoderResultError and ValueError. Fill the resulting GeoDataFrame
with an empty row.
2013-10-20 20:47:22 -04:00
Jacob Wasserman 01cea97dad Change assertIn to assert_ for python 2.6 support 2013-10-20 19:27:50 -04:00
Jacob Wasserman 7c389a625f Initial commit of geocoding functionality
Geocode a Series or list of strings and get back a GeoDataFrame with the
Point objects and a full geocoded address.
2013-10-16 00:31:03 -04:00
Kelsey Jordahl 189a35c9e7 Merge pull request #35 from jwass/io
Io
2013-10-15 16:50:43 -07:00
Jacob Wasserman ee02c69420 Rename ogr.py to file.py. Remove unused import 2013-10-14 22:14:20 -04:00
Jacob Wasserman 4df3679546 Add tests for io functions.
Adds tests for the read_postgis methods. A tests/util.py is introduced
containing some of the common code for downloading the NYC boroughs file,
managing the existence of psycopg2, and connecting to a database.
2013-10-12 12:14:59 -04:00
Jacob Wasserman 600da94498 Move core IO functions top-level geopandas
Moves the core functionality of GeoDataFrame.from_file and
GeoDataFrame.from_postgis to a separate io subpackage. The corresponding
functions in io are called read_file and read_postgis.
2013-10-11 23:21:34 -04:00
Kelsey Jordahl abb4137e87 Merge pull request #25 from jwass/postgis
Initial commit of read_postgis function
2013-10-09 13:55:12 -07:00
Jacob Wasserman c404f83d14 Rename read_postgis() to from_postgis() 2013-10-08 20:38:21 -04:00
Jacob Wasserman 97947b8957 Add documentation to explain database creation 2013-10-08 20:35:40 -04:00
Jacob Wasserman 11b46b15bc Open database connection within a context manager 2013-10-08 20:35:27 -04:00
Jacob Wasserman 5740137dda Add documentation for read_postgis() 2013-10-08 20:15:33 -04:00
Jacob Wasserman 82232ac07b Create the NYC borough database in setUp()
Also removes the nybb table creation in the travis script
2013-10-05 18:55:34 -04:00
Jacob Wasserman bae2914136 Skip database tests if psycopg2 or db missing
Check if psycopg2 is installed. In setUp() check to see if we can connect
to the test_geopandas database. Skip the read_postgis tests if either
fails.
2013-10-05 16:34:07 -04:00
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