0a7eebf6d1
API: expose sjoin_nearest, clip and overlay as methods ( #2150 )
...
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-10-03 19:45:07 +02:00
087858c12a
EHN: expose sjoin as a GeoDataFrame method ( #1984 )
...
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-10-02 08:43:34 +02:00
f5543f55a8
Combine sindex.nearest/nearest_all in single method ( #2147 )
...
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
2021-10-01 18:17:43 +02:00
06fb2b9272
ENH: GeoSeries.from_xy reuse index from input Series if identical ( #1853 contd.) ( #2149 )
...
Co-authored-by: Jan Šimbera <jan.simbera@vodafone.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-10-01 17:49:52 +02:00
6802f43e51
BUG: Fix multipoint clipping / PERF: query for all geometry types at once ( #2148 )
...
Co-authored-by: bstadlbauer <11799671+bstadlbauer@users.noreply.github.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-10-01 17:45:02 +02:00
c82e709f40
BUG: GeoDataFrame(gdf) constructor: preserve geometry column name ( #2138 )
...
* BUG: fix and test GH2129
* CLN: move test to where it it was tested in the past
* make crs warning tests more explicit
* add crs mismatch warning in for this case
* CLN: revise approach to fix a bunch of edge cases
* Apply suggestions from code review
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* clean up comments
* Save resetting geom col for gdf input
* Update geopandas/geodataframe.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-10-01 09:42:34 +01:00
1c7dc9b9c8
ENH: expose points_from_xy as a GeoSeries method ( #1853 ) ( #1936 )
...
Co-authored-by: Jan Šimbera <jan.simbera@vodafone.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-30 20:50:42 +02:00
Brendan Ward
4f1818e2d1
TST: Rename sjoin_nearest test cases to match implementation ( #2145 )
2021-09-30 17:58:54 +01:00
Joris Van den Bossche
a05080fa0e
ENH: support how="inner" in sjoin_nearest ( #2143 )
2021-09-30 16:08:33 +02:00
Martin Fleischmann
448334ac1f
BENCH: fix plotting fixture ( #2137 )
2021-09-30 09:58:05 +02:00
422b87d3d9
ENH: add keywords to control explode index #1751 ( #1871 )
...
Co-authored-by: ImanolUr <imanol@live-eo.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-09-30 09:03:05 +02:00
Tom Russell and Martin Fleischmann
64c5813e8b
ENH: Expose interface to sindex.nearest ( #1977 ) ( #2053 )
...
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-28 08:53:29 +02:00
Joris Van den Bossche
46f98addbf
PERF: avoid doing total_bounds calculation in sjoin ( #2135 )
2021-09-27 20:58:16 +02:00
Joris Van den Bossche
fa6954084f
BUG: fix importing of Fiona to avoid AttributeError on broken fiona install ( #2139 )
2021-09-27 20:57:55 +02:00
29adbaabb3
ENH: sjoin_nearest ( #1865 )
...
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
2021-09-27 20:30:29 +02:00
Joris Van den Bossche
39834890c4
PERF: pre-define PyGEOSSTRTreeIndex.valid_query_predicates ( #2136 )
2021-09-25 20:14:12 +01:00
9949405b83
ENH: support ~ (home dir) expansion in file paths ( #1664 ) ( #1876 )
...
Co-authored-by: ImanolUr <imanol@live-eo.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-09-25 20:32:58 +02:00
Joris Van den Bossche
3d0d7e48ff
PERF: fix performance regression in overlay keep_geometry_type=True (in checking for GeometryCollection) ( #2103 )
2021-09-25 17:19:28 +02:00
Martin Fleischmann
7b109ff10e
DOC: minimise warnings from sphinx ( #2131 )
2021-09-25 15:16:05 +02:00
Martin Fleischmann
73b3369567
BUG: preserve color map according to bins ( #2019 )
2021-09-25 13:44:24 +02:00
Joris Van den Bossche
abf51d3be6
TST/BUG: deal with various warnings from the tests (part 2) ( #2086 )
2021-09-25 12:30:27 +02:00
Alan D. Snow and Martin Fleischmann
5c0c9da1d7
ENH: Add basic driver detection for to_file ( #1609 )
...
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-25 08:47:57 +02:00
Martin Fleischmann
857e2d0758
BUG: path_effects incorrectly treated in plot ( #2127 )
2021-09-24 20:16:10 +01:00
Matt Richards
9ab69d4e0a
BUG: active geometry information lost after apply ( #1955 )
2021-09-24 20:57:02 +02:00
Alan D. Snow
c90ce13912
ENH: Update estimate_utm_crs to handle crossing the antimeridian with pyproj 3.1+ ( #2049 )
2021-09-24 20:47:52 +02:00
TLouf
fed13df9e5
PERF: MultiIndex creation in explode ( #2110 )
...
Go back to using `from_arrays `instead of `from_tuples` to create the
MultiIndex of the GeoSeries resulting from `explode`.
2021-09-24 20:35:28 +02:00
James McBride
8d4679f7ef
PERF: Add new overlay benchmarks ( #2118 )
...
Motivated by the pretty serious performance regression on overlays
I accidentally introduced in #1582 , and reported in #2089 , here's a new
benchmark for overlays that makes the regression more apparent than the
existing overlay benchmarks.
2021-09-24 16:59:28 +01:00
Martin Fleischmann
8dbfb575c2
DOC: fix RTD builds ( #2125 )
2021-09-24 08:08:22 +02:00
Tom Augspurger
32e7cf35f0
ENH: Add storage_options to read_parquet ( #2107 )
2021-09-23 20:48:30 +02:00
Martin Fleischmann and sangarshanan
b32288824f
ENH: native interactive plotting via folium as explore() method ( #1953 )
...
Co-authored-by: sangarshanan <sangarshanan1998@gmail.com >
2021-09-23 17:43:30 +02:00
Adrian Garcia Badaracco
f9866e4660
GHA: Use github.ref instead of github.ref_head in concurrency group ( #2121 )
2021-09-22 21:40:06 +01:00
Adrian Garcia Badaracco
48814c4306
GHA: cancel existing jobs when new commits are added ( #2120 )
2021-09-22 21:28:10 +01:00
Matt Richards and Martin Fleischmann
b67ba848a7
BUG: convert_dtypes() converts GeoDataFrame to DataFrame ( #2115 )
...
* TST: test documenting existing convert dtypes behaviour
* TST: fix tests, compare to proper reference case
* BUG: overload convert_dtypes to fix GH1870
* COMPAT: update tests to handle pandas 1.0 and 0.25
* DOC: update wording to suggested
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* CLN: simplify to *args and **kwargs following suggestion
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-20 09:45:38 +01:00
Andreas Eliasson
0fe01e899b
DOC: Add doc style guide ( #2114 )
2021-09-19 14:33:38 +01:00
Joris Van den Bossche
9e0770b470
BUG: fix reading Parquet file without metadata (proper error message) ( #2111 )
2021-09-17 10:39:03 +02:00
Martin Fleischmann and Joris Van den Bossche
8caa139cc1
TST: skip tests of in overlay symmetric_difference under pandas 1.3.3 ( #2101 )
...
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-09-16 10:55:38 +02:00
Alan D. Snow and Martin Fleischmann
9607d9c966
ENH: Automatically handle hex with shapely in from_wkb ( #2106 )
...
* ENH: Automatically handle hex with shapely wkb
* Update geopandas/tests/test_array.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-09 23:30:40 +01:00
Alan D. Snow
187287b2fa
DOC: Add example using Fiona to re-project ( #1596 )
2021-09-06 21:35:36 +01:00
Joris Van den Bossche
5a22e84791
Compatibility with 1.8 deprecation warnings (.coords) ( #2087 )
2021-09-03 16:52:39 +01:00
134f4e4dd4
TST: speedup hexbin plot with bigger gridsize ( #2097 )
...
* TST: speedup hexbin plot with bigger gridsize
* reduce comment size
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
Co-authored-by: TLouf <loufthomas@gmail.com >
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-09-03 11:31:26 +01:00
Adrian Garcia Badaracco and Brendan Ward
8f08539b3f
REF/MAINT: deprecate sjoin op param in favor of predicate ( #1626 )
...
* deprecate op param
* remove line
* rename op -> predicate in docs
* Test for collision and unknown kwargs
* Update geopandas/tools/sjoin.py
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
* Update geopandas/tools/sjoin.py
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
* PR feedback
* fix typo
Co-authored-by: Brendan Ward <bcward@astutespruce.com >
2021-09-02 21:27:12 +01:00
Joris Van den Bossche and Martin Fleischmann
9f5413f8e9
TST/BUG: deal with various warnings from the tests ( #2075 )
...
* TST: deal with various warnings from the tests
* Update geopandas/tests/test_plotting.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* Update geopandas/tests/test_plotting.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
* add check_less_precise=True back
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-08-25 23:14:12 +01:00
Joris Van den Bossche
0ac33b8c31
BUG: GeoSeries constructor should return Series for empty array with dtype when possible (fix GeoSeries.isna for empty Series) ( #2073 )
2021-08-24 22:42:15 +02:00
Joris Van den Bossche
bf8429af12
COMPAT: suppress numpy1.21 deprecation warnings for Shapely < 1.8 ( #2072 )
2021-08-24 21:52:17 +02:00
Adrian Garcia Badaracco and Martin Fleischmann
7f486db671
BUG: Use suffixes in sjoin's how==right branch ( #2065 )
...
* Use suffixes in how==right
* add tests
* slightly nicer formatting
* slightly nicer formatting
* add ,
* Update test_sjoin.py
* Update test_sjoin.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net >
2021-08-23 22:08:14 +01:00
Joris Van den Bossche
befb2e88da
DEPR: actually deprecate cascaded_union in favor of unary_union ( #2074 )
2021-08-23 20:41:38 +01:00
Ariel Núñez
d006fad416
DOC: postgres/postgresql protocol change in docs ( #2082 )
2021-08-23 17:36:43 +01:00
Martin Fleischmann
632149a9ad
REF: replace _mapclassify_choro with new API ( #1737 )
2021-08-23 16:41:39 +02:00
Matt Richards
82b45f033a
TST: not using appveyor, perhaps these work on GH actions ( #2078 )
2021-08-23 13:42:17 +01:00
Matt Richards and Joris Van den Bossche
83ab5c6389
ENH: support Series.value_counts for geometry dtype (add value_counts to GeometryArray) ( #2047 )
...
* TST: updated tests for value_counts
* BUG: fix GH1738
* BUG: replace fillna(None) in value counts
* update extension array tests
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com >
2021-08-23 09:17:13 +01:00