Commit Graph
1222 Commits
Author SHA1 Message Date
Martin Fleischmann caefd7562a ENH: pass list-like as categories to plot (#1173) 2020-06-22 22:00:41 +02:00
Martin Fleischmann bbf06a753c ENH: scaling y-axis for plots in geographic CRS (#1290) 2020-06-22 21:18:08 +02:00
Joris Van den Bossche b78ef4eecc BUG: astype('string') (#1476) 2020-06-19 12:32:16 +01:00
abonte ccdce24097 DOC: add docstring example for is_empty (#1474) 2020-06-18 21:55:39 +01:00
Martin Fleischmann 9f4c995497 ENH: Warn about geographic projection in distance-based methods (#1378)
* ENH: Warn about geographic projection in distance-based methods

* use repr in warning, add stacklevel

* change message, add area, length, supress warnings

* dont raise for buffer(0)

* use function to clean up, add test

* fix double space

* inlcude check for centroid
2020-06-16 20:49:44 +01:00
Martin Fleischmann 07d44e5e3e suffixes as tuple (#1471) 2020-06-16 10:04:51 -07:00
Joris Van den Bossche 3c5c569c94 BUG: fix astype('string') (#1469) 2020-06-13 18:36:11 +02:00
Joris Van den Bossche 72c57c0e55 CLN: clean-up warning from sjoin and in tests (#1467) 2020-06-12 17:15:57 +02:00
rwijtvliet 41119edd90 BUG: Pass style_kwds to parts of multipart geometry (#1385) 2020-06-12 15:22:33 +02:00
Adrian Garcia Badaracco 3868b44e1a ENH: use query_bulk in sjoin (#1421) 2020-06-12 11:37:04 +02:00
Bhavika Tekwani 18dca3ffcf ENH: add covered_by() method for GeoSeries (#1462) 2020-06-09 08:26:12 +02:00
Adrian Garcia Badaracco 9125d5fea4 DEP: Warn about deprecation of sindex.intersection objects parameter (#1440)
* warn about deprecation of objects parameter

* add warning check

* PR feedback

* fix tests warning match
2020-06-07 20:47:54 +01:00
Bhavika Tekwani e9cc2588fc ENH: Add covers() method to GeoSeries (#1460) 2020-06-03 10:51:15 +02:00
Joris Van den Bossche 07a8f4cc7e BUG: override the .equals() method from pandas to correct isinstance (#1451) 2020-05-31 17:01:39 +02:00
abonteandMartin Fleischmann 8f4889affd DOC: Add example in GeoDataFrame docstring (#1456)
* add example in GeoDataFrame docstring

* Update GeoDataFrame docstring

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-05-31 10:16:38 +01:00
Martin Jul c5d48ecf5d DOC: Link to the canonical geopandas/contextily repo (#1453) 2020-05-28 09:20:00 +01:00
harryposnerandJoris Van den Bossche ed612f4400 ENH: Setting the CRS of naive geometries (#747)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-05-27 21:28:37 +02:00
Joris Van den Bossche 7e9868860f ENH: add Feather IO support (#1435) 2020-05-27 19:45:44 +02:00
Joris Van den Bossche 8be1fd8b2a DOC: correct Examples rubric titles (#1450) 2020-05-27 13:31:29 +02:00
Martin Fleischmann 4ff0fc6ca3 BUG: explode() fails if 'level_1' is in columns (#1445) 2020-05-27 09:19:36 +02:00
Martin Fleischmann 19b699789e ENH: consistent CRS mismatch check (#1446) 2020-05-26 22:03:43 +02:00
Martin Fleischmann cfbf5d6536 ENH: support pd.NA value as missing value (#1448)
* support pd.NA

* skip tests

* doctsring, check
2020-05-25 19:48:39 +01:00
Martin Fleischmann 25f60648ab BUG: Fix a typo in a CRS mismatch warning (#1447) 2020-05-24 18:24:48 +01:00
Joris Van den Bossche 6f86fcde3c CI: remove skip for Parquet tests on AppVeyor (#1443) 2020-05-23 10:17:49 +02:00
0beb61ca3d ENH: Read from postgis in chunks (#1123)
Co-authored-by: Oliver Schillinger <oliver.schillinger@innogy.com>
Co-authored-by: James McBride <jdmcbr@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-05-23 09:33:24 +02:00
Christopher Yeh 3cba9b720e DOC: Fix typos in mergingdata.rst (#1441) 2020-05-22 08:57:29 +01:00
Adrian Garcia Badaracco 8deb781f4a MAINT: Unify spatial index error and empty handling (#1438) 2020-05-21 09:47:55 +02:00
Adrian Garcia Badaracco 985c6e70b7 ENH: Implement sindex.query_bulk in overlay (#1428)
* fix test

* pre-index geometries

* more vec

* minimal diff

* remove pygeos import

* simplify
2020-05-20 09:34:27 +01:00
d19afa4ece ENH: Add parquet IO support (#1180)
* WIP: initial migration of geofeather into geopandas

* WIP: initial implementation of parquet support for geometries

* Refactored approach to retain same geometry column names

* fix CI errors

* Fix CI errors, improve test coverage

* Py2.7 CI fix for decoding binary strings

* Remove feather support (for now) and address PR comments

* Make primary geometry column more clear

* Address PR comments, allow parameter overrides

* Refactor to_paquet(), read_parquet() per PR feedback

* Migrate to column-level CRS metadata

* Refactored parqut I/O to align with latest parquet metadata spec

* Use GeometryArray in read_parquet to set crs directly

* Updated parquet I/O per PR feedback

* Update parquet I/O per PR feedback

* Fix fstrings in compat

* Undo whitespace autoformatting in .travis.yml

* Add stability warning for parquet metadata spec

* Revert pyarrow version for travis

* Add classmethod from_parquet and fix skips for pyarrow

* TEMP: add test for pandas parquet I/O for appveyor

* Add test for parquet columns parameter repeated column names

* try to fix appveyor

* add to reference

* add pyarrow to show_versins

* skip parquet tests on windows

* try again to skip parquet tests on windows

* remove from_parquet classmethod

* undo space

* Updates per metadata spec PR feedback

* Update parquet metadata to match spec, make io methods private

* Add warning for initial parquet implementation

* Add basic read / write benchmarks for parquet

* Add whitespace to make CI happy

* Ignore parquet warnings in tests except where testing the warnings

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-05-20 09:23:26 +01:00
Adrian Garcia Badaracco aa1abd6817 BUG: Fix PyGEOSSTRTreeIndex indexing with scattered empty geometries. (#1430)
* BUG: Fix PyGEOSSTRTreeIndex indexing with scattered empty geometries.

* undo rename

* adjust size calc for rtree

* test fix for segfault

* revert changes to size property

* revert name change

* Revert "revert name change"

This reverts commit 163d31603567ae1dac1aefeb7014736e9fd43a63.

* add note

* clarify failure

* rename test
2020-05-20 09:21:17 +01:00
Martin Fleischmann aae1ec3ac9 TST: GroupBy change on pandas master (#1429) 2020-05-18 08:48:33 +02:00
8339c1ceb0 ENH: Better error for rtree dependency in sjoin (#1425)
* Add rtree>=0.8 as a dependency to setup.py

* Undo rtree dependency

* Require rtree to be installed in sjoin

* Remove comma from dependencies in setup.py

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>

* Replace importlib.util.findspec with HAS_RTREE

findspec was used to check if rtree was installed
HAS_RTREE in geopandas._compat already does this
so can import it in geopandas.tools.sjoin instead

* Remove f-string from rtree dependency check

* Test raises error if rtree not installed

* Remove whitespace below TestSpatialJoin

* Replace HAS_RTREE with fixture

* Replace fixture with if statement in test_sjoin

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>

* Reformat with black & delete HAS_RTREE fixture

* (Actually) remove HAS_RTREE fixture

* fix test

Co-authored-by: = <user.email>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-05-16 10:41:55 +01:00
Adrian Garcia Badaracco e0eaf813e7 ENH: Implement sindex query in clip (#1427)
* Implement query in clip

* cleanup

* add benchmarks
2020-05-15 18:52:05 +01:00
Joris Van den Bossche e1eb476495 CI: add a build without optional dependencies (#1426) 2020-05-14 15:53:20 -07:00
raphacosta27 43523217a3 DOC: Adding geopandas.Series overlaps method in documentation (#1423) 2020-05-14 13:40:27 +01:00
Adrian Garcia Badaracco 2c22a26bd4 ENH: Add query and query_bulk to sindex (#1401) 2020-05-13 10:27:11 +02:00
Martin Fleischmann c5e2122dca TST: fix test_series_constructor_scalar_with_index (#1413) 2020-05-13 10:03:27 +02:00
Martin Fleischmann 10d10a2994 STYLE: fix flake8 issues (#1419) 2020-05-12 22:45:01 +01:00
Martin Fleischmann 1fede1cb37 COMPAT: GeometryArray.equals -> geom_equals (#1411) 2020-05-11 11:27:21 +02:00
Henrikki Tenkanen f2c599683f FIX: Ensure writing to PostGIS table works when "appending" and table does not exist yet (#1415) 2020-05-11 10:31:36 +02:00
Martin Fleischmann 8fd5550430 TST: skip test_value_counts_with_normalize (#1412) 2020-05-11 08:31:18 +02:00
Martin Fleischmann 535dcad5ad API: privacy of geopandas.io (#1407)
* private write_postgis

* private to_file

* test deprecation warning

* read_* private

* tests

* fix remaining cases
2020-05-09 23:02:09 +01:00
Joris Van den Bossche 5a2bafbe0a DOC: add read_postgis/to_postgis to reference docs (#1406) 2020-05-05 12:51:39 +02:00
433c39bab7 ENH: Add method to write GeoDataFrame to PostGIS (#1248)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-05-05 12:06:14 +02:00
Mike Taves 9b179753d1 DOC: corrections / updates (#1402)
* Binary wheels for shapely have been available since version 1.7.0
* Correction to sjoin default for op
2020-04-29 11:11:11 +02:00
Adrian Garcia Badaracco 084d5848e4 ENH: Add pygeos based spatial index (#1343) 2020-04-27 20:30:39 +02:00
Alan D. Snow 8811a175b1 TST: add test_from_features_geom_interface_feature, modify variable names used in from_features 2020-04-25 17:55:52 +01:00
Alan D. Snow 8d78e771d3 ENH: Support ignore_geometry option with read_file, test ignore_fields (#1383)
* ENH: Add option to read subset of columns in read_file

* Add support for ignore_geometry & for geometries with __geo_interface__

* ensure duplicate columns are duplicated

* update code to only fix ignore_geometry load

* added test_read_file__ignore_all_fields

* ignore column order in test_from_features_geom_interface_feature

* add skip for FIona < 1.8 for ignore_fields/geometry

* Add ignore_geometry example

* not isinstance GeoDataFrame

* limit changes for ignore geometry

* modify from_features to require geometry; update docstring in read_file about optionally returning pandas.Dataframe & make docstring numpydoc compliant

* Add note in example about returning pandas dataframe

* revert from_features changes
2020-04-25 17:51:01 +01:00
Joris Van den Bossche 55c372e978 CI: set up postgresql/postgis on Travis (#1391) 2020-04-23 21:00:32 +02:00
James McBrideandMartin Fleischmann 878a770ea9 Add pre-commit and black to dev requirements (#1210)
* Add pre-commit and black to dev requirements

Also added notes on which packages are needed for which parts of
geopandas functionality outside of the core requirements.

* Add environment.yml, remove requirements.txt

* Update reqs per Joris's comments

* pyproj 2.2.0

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-04-21 09:38:27 +01:00