Commit Graph
947 Commits
Author SHA1 Message Date
YuichiNotoya 8aae84e2c7 ENH: Implementation of relate method (#853) 2018-12-09 09:28:28 +01:00
YuichiNotoyaandJoris Van den Bossche 4f933d38f1 PERF: Improve iterfeatures performance (#864)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2018-12-09 09:13:20 +01:00
Brett Naul 6e9b82b855 Default to 'Unknown' geometry schema (#827)
* Default to `'Unknown'` geometry schema

* Add GeoJSON to_file test

* Add comment to test
2018-12-08 21:47:46 -08:00
Martin Fleischmann f4fa69eae0 Use mapclassify instead of PySAL due to change of PySAL structure. (#872) 2018-12-08 22:36:45 +01:00
Joris Van den Bossche bf7ba2f6a2 DOC: continue doc build on warnings/errors in examples (#873) 2018-12-08 21:15:13 +01:00
Dmitry Nikolaev 483f29ca88 DOC: fix param name for GeoDataFrame.set_geometry (#871) 2018-12-06 10:48:51 +01:00
lmmarsano 201ae9cd93 BUG: fix from_postgis to accept nullable geometry (#856)
* TST: test read_postgis with NULL geometry

Though GIS databases permit NULL values in the geometry field, read_postgis throws exceptions when it encounters them.
test_read_postgis_null_geom defines this test case with sqlite3 database, and support functions are revised to support it.
create_sqlite is revised to loosen data type restrictions and follow [recommendations from the python manual](https://docs.python.org/3/library/sqlite3.html)
- connection parameter instead of filename to allow for in-memory database
- 'with' statement for transaction management
- parameter substitution instead of string operations
validate_boro_df strips NULL values before checking geometry type.

* TST: replace sqlite test with spatialite test

The original SQLite test reflected unlikely usage for geospatial analysis.
In parity with PostGIS, the new test runs against SQLite with SpatiaLite enabled.
For coverage, test geometries read as text and binary.

* TST: add libspatialite as a test dependency

* TST: add conda-forge testing environment for Python 2.7

add this environment to continuous integration
conda-forge Python 2.7 enables loadable SQLite extensions with conda-forge/python-feedstock#227
adding this environment enables SpatiaLite tests

* BUG: fix read_postgis & GeoDataFrame to accept NULL geometry values

read_postgis failed to load nullable binary geometry data while GeoDataFrame raised exceptions on NULL in the geometry field.
This fixes both issues.
It moreover adds logic to detect python version & load geometries from
python 2 buffers as necessary.

* ENH DOC: drop hex_encoded parameter from read_postgis & from_postgis

drop hex_encoded, since sqlite3 represents binary & text as distinct Python data types
adjust names to clarify this distinction
adjust documentation to clarify geometry is expected in WKB representation (which was implicit)
add example SpatiaLite usage reflecting this expectation
2018-11-29 21:05:08 -08:00
Joris Van den Bossche 9e584ccdd6 Use fiona.Env() for new versions to avoid warning (#854) 2018-11-17 09:56:02 +01:00
Leah Wasser 1eba57a71b Contributing file updates python 2.7 instead of 2.6 + a few other syntax consistency edits (#851)
* Fixing minor misspelling in Contributing.md file

* Updating CONTRIBUTING file to reflect python 3.x

* Support for Python v 2.7 edits

* Consistent capitalization  of Python

* Adjust python support version
2018-11-07 20:51:02 -08:00
Joris Van den Bossche 556e29ed83 Test fiona 1.8b1 (#844) 2018-10-27 15:22:39 +02:00
Dr Martin Black 0033c0d16d Raise exception from sjoin if inputs are not GeoDataFrames (#842) 2018-10-26 15:34:21 +02:00
Joris Van den Bossche 3f1f39595d CLN: clean-up base.py (#847) 2018-10-26 11:19:00 +02:00
Leah Wasser 19aba860fb Fixing minor misspelling in Contributing.md file (#849)
Closes #848
2018-10-23 19:48:19 -07:00
Joris Van den Bossche 1faf62b7b6 TST/CI: refactor travis using fixed environment files (#843) 2018-10-17 00:18:06 +02:00
Benjamin Goldenberg 521da88a9b Fix assert_geodataframe_equal to correctly compare left and right (#810) 2018-10-07 20:46:07 +02:00
Joris Van den Bossche 9e5fa98d27 BUG/TST: fix align to preserve metadata + more tests (#829) 2018-09-27 09:28:49 +02:00
Joris Van den Bossche db0bdee002 TST: handle missing values in testing functionality (#828) 2018-09-19 19:55:58 +02:00
Levi John Wolf 6f1d4bcb9a VIS: remove marker edge from legend 2018-09-01 16:51:49 +02:00
Geir Arne Hjelle 85778d14a0 DOC: Remove warnings when building docs (#814) 2018-09-01 16:33:55 +02:00
Geir Arne Hjelle 07e9668ec4 List available datasets if dataset is not found (#815) 2018-09-01 16:21:27 +02:00
Geir Arne HjelleandJoris Van den Bossche bf6c5a4e46 TST: Clean output from tests by removing warnings (#813)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2018-09-01 13:22:33 +02:00
Ömer Özak 69186cf7c8 BUG: Correct overlay empty intersection (#800) 2018-08-24 17:43:06 +02:00
Joris Van den Bossche 026ed93db8 TST: fix duplicate test name 2018-08-22 10:46:32 +02:00
Matthieu Viry df649dafed ENH: allow to specify varying distances for buffer and interpolate (#781)
* Allow to specify varying distances for buffer and interpolate

* Minor fixes in interpolate method and its test

* Verify geoseries and distance indexes are the same

* Comparison of GeoSerie and distance indexes
2018-08-21 21:57:10 -07:00
Leah Wasser b2dd9f28e9 DOC updating spatial merge docs with argument details (#733) 2018-08-16 15:37:45 +02:00
Joris Van den Bossche a2198fb171 CI: fix usage of conda-forge in travis.yml (#796)
Now we explicitly run some builds with conda-forge channel added, and the others without conda-forge
2018-08-14 12:06:26 +02:00
Filipe 9fa6bffede Ensure to package license file (#795) 2018-08-14 09:52:57 +02:00
Pulkit Maloo 48653f3e94 PERF: added check for multi-geometries (#785)
This PR is related to Issue #698.

Added check in `_flatten_multi_geoms` to see if there are multi-geometries and whether the flattening is needed.
2018-07-26 22:57:24 -07:00
Pulkit Maloo f89a6e34de Update CONTRIBUTING.md (#784) 2018-07-25 10:27:48 -07:00
Simon Andersson e69e1e12c6 DOC: Corrected Mapping Tools scheme options (#783) 2018-07-24 15:17:09 +02:00
Simon Andersson c45893f720 DOC: Correcting the changelog date for Release 0.4.0 from 2017 to 2018 (#782) 2018-07-24 15:15:50 +02:00
Pratap Vardhan 1a7b9583b4 CLN: Use generators inplace of lists (#780) 2018-07-20 07:36:21 -05:00
James McBride 394c06a56c DOC: update copyright date range 2018-07-15 21:50:33 -07:00
Joris Van den Bossche 33c7a7cc57 RLS: v0.4.0 2018-07-15 22:17:24 -05:00
Joris Van den Bossche 1e109ee7fd Update changelog for release 2018-07-15 22:17:11 -05:00
Joris Van den Bossche 3a46346909 DOC: update install instructions (#778) 2018-07-15 22:12:21 -05:00
Joris Van den Bossche fbe743f313 DOC: change imports to use geopandas (#774) 2018-07-15 18:18:55 -05:00
James McBride adf13cf697 BUG: Remove read_sql alias (#777)
After further investigation, it seems like the current `read_postgis`
command would not support a spatialite database in the wild (as compared
to the one I'd created using ogr2ogr that had made me optimistic that we
had spatialite read capabilities in place). So long as it is not likely
to work for more use cases, let's leave it as `read_postgis`, since that
is all we think it is likely able to do.
2018-07-15 18:08:16 -05:00
Joris Van den Bossche 73d8bf6124 DOC: update doc sidebar + remove about (#773) 2018-07-15 18:07:19 -05:00
Joris Van den Bossche 2d41edb271 Fix warnings with overlay and pandas >= 0.23 (#772) 2018-07-15 16:28:05 -05:00
Joris Van den Bossche 292a38d191 DOC: add geoplot to doc environment (#775) 2018-07-15 15:30:17 -05:00
Joris Van den Bossche 2b8682ba8c DOC: update changelog (#771) 2018-07-15 14:50:40 -05:00
Ömer Özak 7d50380229 PERF/ENH: new overlay implementation (#429) 2018-07-15 14:45:44 -05:00
James McBride 5996d8f8a7 Update CHANGELOG.md
Incorporate notable updates for merged PRs since last update
2018-07-15 11:46:16 -07:00
pinto531 abbb38ebff ENH: pass array/series of values to column argument in plot (#770) 2018-07-15 12:18:26 -05:00
Joris Van den Bossche 780a649d4f CI: use conda for travis (#769) 2018-07-15 12:16:33 -05:00
Aleksey Bilogur deaf37560e DOC: Mix geoplot into the geopandas docs (#719) 2018-07-14 11:22:33 -05:00
James McBride 38580566ec Add error message if descartes import missing (#765) 2018-07-14 10:09:28 -05:00
Levi John Wolf 88ea62868b BUG: fix empty sjoin (#762) 2018-07-14 00:31:03 -05:00
Levi John Wolf 09a579a584 Plotting: always set equal aspect on active axis (#718) 2018-07-07 16:47:29 -05:00