Commit Graph
223 Commits
Author SHA1 Message Date
Joris Van den Bossche a4dfda959a TST: Add tests for plotting points 2015-10-30 11:26:01 +01:00
Jacob Wasserman 48ec5b80c7 Skip test_merge_geo due to unhashable geometries
Reenable once geometry hashing is sorted out.
2015-09-09 21:01:14 -04:00
Kelsey Jordahl f5b1b95f82 Merge pull request #218 from jorisvandenbossche/rtree
Make rtree an optional dependency
2015-09-09 17:12:05 -07:00
Joris Van den Bossche 7a1d16648b Make rtree an optional dependency 2015-09-02 16:17:18 +02:00
Joris Van den Bossche 3b395d474a Add test for legend with PySAL choropleth plots 2015-08-23 12:09:04 +02:00
Maximilian Albert 51e11fcfc4 Import unittest from util.py (which imports unittest2 under the hood for Python 2.6) to make skipIf work for all Python versions. 2015-08-14 00:26:47 +01:00
Maximilian Albert 74b5896dab Skip test on Travis (as it fails even though it passes locally and it's not clear why). 2015-08-13 23:43:34 +01:00
Maximilian Albert 6e9772b292 Add test which plots a simple GeoDataFrame using various extra keyword arguments, to see if they are honoured. 2015-08-11 18:33:45 +01:00
Kelsey Jordahl a71516a034 TST: Test pickling/unpickling CRS 2015-07-12 15:33:02 -05:00
Kelsey Jordahl 3d3f8a096c CLN: space around operator 2015-07-11 12:30:45 -05:00
Kelsey Jordahl 091f960c8f TST: Add name attribute to test series 2015-07-11 12:30:02 -05:00
Kelsey Jordahl 4b1bd28541 CLN: Remove unused import 2015-07-11 12:11:53 -05:00
Kelsey Jordahl 91dc4dd363 CLN: Remove extra line 2015-07-11 12:11:39 -05:00
Kelsey Jordahl 45748f60f6 Merge pull request #193 from IamJeffG/139-missing-geoms
Handle missing geoms
2015-04-30 08:23:02 -07:00
Kelsey Jordahl a1988eb153 BUG: Fix index on the left side too 2015-04-28 11:56:48 -07:00
Kelsey Jordahl e22d654ba9 TST: Test for sjoin index bug (GH#190) 2015-04-27 23:03:49 -07:00
Jeffrey Gerard a877938e2c Merge branch 'master' into lucasnad27_null
Conflicts:
	geopandas/geodataframe.py
	tests/test_geodataframe.py

I resolved conflicts and ensured existing tests pass.

I did not check for consistency with any discussions that may have been
made in the interim, around how missing geoms ought to be treated.
2015-04-23 21:47:09 -07:00
Kelsey Jordahl 74fe12a339 Merge pull request #178 from geopandas/write_schema
ENH: Allow schema input in to_file()
2015-04-12 23:23:35 -07:00
Matthew Bartos 54fc5b43f4 Removed convert_crs. Added lsuffix and rsuffix to docstring. Compliance with PEP8 and contribution guidelines. Changed default join type to inner. 2015-04-09 23:25:26 -07:00
mdbartos dbe054ab07 Maintained compatibility with old tests. Edited sjoin to maintain python
3 compatibility.
2015-04-04 17:38:26 -07:00
mdbartos 17c67d13a2 Marked test file for sources of error 2015-04-04 05:15:28 -07:00
Jacob Wasserman 72a00fd1a9 Add iterfeatures on GeoDataFrame. Use in to_file.
Add iterfeatures() method to iterate over rows as feature
dictionaries. Removes some duplicate functionality that was
also bug-prone.

Remove dependency on fiona internals from previous commit.
2014-12-10 08:14:27 -05:00
Jacob Wasserman 98d7ad5cfe Use fiona.odict.OrderedDict instead of collections
OrderedDict was introduced in Python 2.7. Fiona uses the
ordereddict module for versions < 2.7. Use fiona.odict rather
than duplicating its effort
2014-12-02 08:45:53 -05:00
Jacob Wasserman ec53ec77ce ENH: Allow schema input in to_file()
Add a schema argument in GeoDataFrame.to_file to pass in to Fiona.
Allows for finer control over how the data gets written.

Refactor to_file into geopandas.io.file.
2014-12-01 19:05:20 -05:00
Jacob Wasserman be618726af BUG: Fix unary_union for GeoDataFrame 2014-10-13 10:02:53 +01:00
Jacob Wasserman 301a26cf1c TST: Assign and index using .loc
Fix the tests to assign using the loc indexer instead of assigning
to the resulting view. Fixes some pandas warnings.
2014-10-13 09:57:46 +01:00
Kelsey Jordahl 35c2f5b74c Merge pull request #159 from jwass/mock_geocode_tests
Mock geocoding network calls.
2014-09-07 22:33:34 -07:00
Jacob Wasserman e6f512517b Mock geocoding network calls. 2014-08-17 21:12:34 -04:00
Jacob Wasserman 02a05376a1 Rename sindex caching method/members
_reset_sindex() -> _invalidate_sindex()
_sindex_built -> _sindex_valid
2014-08-17 12:22:25 -04:00
Jacob Wasserman c111f84af0 ENH: Lazily build the spatial index
Add a new property 'sindex' to GeoSeries and GeoDataFrame. External
functions should use the property to access the spatial index. The
rtree will not be built until the 'sindex' property is accessed.

A member '_sindex_built' is used to indicate if the rtree has been
built or needs to be.
2014-08-17 00:00:48 -04:00
Jacob Wasserman 1e0c2ed582 BUG/TST: Fix tests - don't do math on Index
Treat Index objects as set-like. Convert to Series before doing
arithmetic. This broke when Pandas Index no longer subclassed from
NDArray.
2014-08-16 12:54:21 -04:00
Luke 34631d26b2 Added support for null geometries for to_file and from_file functions
- Closes-Bug: #138
2014-08-12 11:15:13 -07:00
Luke c4ed014e5a PEP8 formatting cleanup 2014-08-11 22:19:05 -07:00
Luke ce56406e82 Added test_distance which checks a GeoSeries vs a single point and a GeoSeries
vs a Geoseries.
2014-08-11 15:19:06 -07:00
Luke f39b8fb309 Added null geometry test to test_length 2014-08-07 15:31:51 -07:00
Luke 9c6b257562 Added back original test data to test_area along with new null geometry test. 2014-08-07 12:06:26 -07:00
Luke 2de825f79d Null geometries return nan area 2014-08-07 10:39:26 -07:00
Jacob Wasserman fb57a6c15a Add tests for collect() 2014-07-29 16:46:27 -04:00
Jacob Wasserman dc05edb4d7 Add explode() and collect() functions
explode() expands multi-part geometries into multiple rows, and into
their single part geometries.

collect() and take multiple single geometries and combine them into their
Multi* counterparts.
2014-07-29 16:46:27 -04:00
Jacob Wasserman e453940b3f Remove unused imports. 2014-07-27 21:19:54 -04:00
Jacob Wasserman 93e66eeaef Move geocode.py to tools/geocoding.py
Move geocoding capability into the tools module.
2014-07-24 10:51:17 -04:00
Matthew Perry c4d9aa15f0 spatial joins 2014-07-22 10:31:51 -07:00
Kelsey Jordahl 42b14545e8 Merge pull request #142 from geopandas/overlay
spatial overlays
2014-07-22 10:24:37 -07:00
Matthew Perry 99e44fc0b4 No need to use a geoseries 2014-07-21 09:30:30 -07:00
Kelsey Jordahl df6ba0afa7 Merge pull request #137 from geopandas/geojson_bbox
optionally include bbox in geojson, fixes #131
2014-07-20 22:28:42 -07:00
Matthew Perry 3384c82f80 first cut at implementing spatial overlays (polygon only) 2014-07-20 13:23:07 -07:00
Sean Gillies 19ad364926 Towards #140.
An R-tree for series and frames, with tests.
2014-07-16 23:32:01 -06:00
Matthew Perry 66ac9b973d optionally include bbox in geojson, fixes #131 2014-07-15 11:13:15 -07:00
Kelsey Jordahl f42d049ae9 Merge pull request #121 from jwass/reverse_geocode
Add reverse() method to geocode module
2014-07-15 09:38:42 -07:00
Jacob Wasserman 4b7cedf565 Rename geocode to reverse_geocode
Following discussion in #121.
2014-07-15 11:07:40 -04:00