Commit Graph
1351 Commits
Author SHA1 Message Date
bretttully 9ae42ff0da ENH: Add back make_valid to overlay and use to skip the buffer(0) calls (#1802) 2021-02-28 10:29:03 +01:00
Giacomo Caria 919a8f26b5 BUG: Create unintialized GeoSeries (#1798) 2021-02-27 22:26:07 +01:00
Brendan Ward 14e16c17aa TST: Fix sindex query predicates used in benchmarks (#1801) 2021-02-27 15:52:23 +01:00
Martin Fleischmann 369445456b DOC: document sindex API (#1749) 2021-02-27 09:53:37 +01:00
sangarshanan f780228ca3 BUG: Add quotes to tablename in COPY (#1825) 2021-02-27 09:48:09 +01:00
Flavin 14155eef80 BUG: Override shift in GeometryArray to preserve CRS (#1744) 2021-02-27 09:45:09 +01:00
e0981ab14e ENH: Add GeoPlot accessor (#1465)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-02-27 09:34:34 +01:00
6e8f6f91cb TST: expand assert messages in assert_geoseries_equal (#1808)
* expanded assert messages. Refactor of duplicated code

* black formatted

* fix forgotten if

* fix forgotten ifs

* reformat code, add indeces to error and full first geometries

* fix typo

* expand tests and check for error message

* truncate string

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-02-25 22:51:52 +00:00
Flavin f7d8bd13e7 REF: Implement to_crs and estimate_utm_crs in GeometryArray (#1785) 2021-02-25 23:04:27 +01:00
Joris Van den Bossche d8dfa01cfc Add pygeos to geopandas.show_versions() (#1843) 2021-02-23 11:59:27 +00:00
donloandMartin Fleischmann 4444f1adb6 ENH: add option to remove bracket from mapclassify legend (#1605)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-02-21 17:42:03 +01:00
Martin Fleischmann ed68a95033 DOC: debug readthedocs and nbsphinx (#1838)
* don't execute

* list examples

* try with executed notebooks

* build intro, add pygeos

* auto build

* build the same as currently

* remove kernel name

* add few more

* revert choro

* add rest

* remove kernelspec

* clear choropleths

* build choropleths, clear choro_legends

* clear introduction

* remove kernelspec

* clean meta

* execute choro_legends

* always execute + exceptions

* fix cartopy plot
2021-02-19 23:44:26 +00:00
56fd62f010 ENH: Make the id property in to_json optional (#1637)
* Make the id property in to_json optional

As discussed in #390, the id property in geojson generated with to_json
may not be all that meaningful (frequently just an arbitrary row number
in a dataframe). The option to disable writing ids without meaning is
given here with a new argument `drop_id`, set to `False` by default.

* Add to_json tests when only geometry column

* Fix linting error

* Improved docstring on drop_id option

* Fix merge conflict leftover

* Set id key first in iterfeatures

* Update geopandas/geodataframe.py

* Update geopandas/geodataframe.py

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-02-19 09:13:33 +00:00
Martin Fleischmann 8bc5c30afd DOC: pin doc environment for RTD (#1837) 2021-02-18 22:56:46 +01:00
Martin Fleischmann 53e06302cb ENH: add a keyword to control alignment in binary operations and predicates (#1668)
* align keyword

* tests

* first set of docstrings

* docstrings

* docs

* shapely test

* fix condition

* fix project test

* docstring changes per review
2021-02-18 21:51:48 +00:00
Martin Fleischmann 0ae468fcad DOC: fix links in readme (#1836) 2021-02-18 21:51:05 +00:00
Martin Fleischmann 01365433f8 TST: fix path to remote gejson (#1834) 2021-02-18 21:50:41 +00:00
Martin Fleischmann cb49d088f9 DOC: use Jupyter examples via nbsphinx gallery (#1731) 2021-02-18 21:51:28 +01:00
4a650af202 ENH: Add warning if keep_geom_type drops geometries during overlay (#1554)
* Add warning if keep_geom_type drops geometries during overlay

* Expand keep_geom_type warning message

* Add test for keep_geom_type dropping geoms

* Set keep_geom_type=None by default

With True, no warning raised. With None, will drop geoms of other types,
but warn the user.

* Update geopandas/tests/test_overlay.py

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

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-02-18 20:36:56 +00:00
Martin Fleischmann 01943827b0 DOC: first pass on the Introduction to GeoPandas (#1757) 2021-02-18 21:33:20 +01:00
Martin Fleischmann 3ba3c7599e REGR: ignore empty geometries in plot (#1828) 2021-02-18 20:44:05 +01:00
vangoradeandMartin Fleischmann 49c7d2884e ENH: add GeoSeries.z attribute (#1773)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-02-18 20:16:50 +01:00
Joris Van den Bossche 8940d185a8 Compatibility with Shapely 1.8 deprecation warnings (__len__) (#1819) 2021-02-17 22:14:55 +01:00
Martin Fleischmann d6e1a34263 DOC: documentation pages, ecosystem (#1759) 2021-02-17 21:46:09 +01:00
Joris Van den Bossche 1548cbacbc TST: add normalize option to assert methods + fix tests for GEOS 3.9 (#1826) 2021-02-17 15:03:49 +01:00
Joris Van den Bossche efea225166 TST: fix tests with matplotlib master (#1817)
* TST: fix tests with matplotlib master

* also fix legend height test + more robust method to get specific axes object

* fix robust helper method for old matplotlib

* typo
2021-02-08 10:57:50 +00:00
Martin Fleischmann 622fd9cb2b TST: check exact warning (#1811) 2021-02-06 19:13:16 +01:00
Joris Van den Bossche e2d5615882 CI: force fiona version to 1.8.13 for minimal build (#1815) 2021-02-06 19:12:45 +01:00
Joris Van den Bossche 5119410b3b Only use pygeos is a recent version is installed (#1792) 2021-01-30 18:17:39 +01:00
Martin FleischmannandFlavin 79aeefacd7 DOC: documentation improvements (#1750)
* docstring changes

* cx

* notes

* ci fix

* skip check

* updates based on the review

* Update geopandas/base.py

Co-authored-by: Flavin <flavinj@gmail.com>

* typo

Co-authored-by: Flavin <flavinj@gmail.com>
2021-01-30 11:00:00 +00:00
Will Schlitzer cfc732e610 DOC: Update copyright year (#1806) 2021-01-28 20:27:06 +00:00
Brendan Ward 5759f0c4ec ENH: integrate pygeos.get_parts for faster explode() (#1693) 2021-01-28 09:44:56 +01:00
Joris Van den Bossche 6bdb001ed6 Fix compatilibilty with numpy 1.20.0 (#1729) 2021-01-26 21:35:39 +01:00
Joris Van den Bossche 27d07dd15a CI: remove pygeos from builds using defaults channel (not compatible with pygeos 0.9) (#1794) 2021-01-26 08:14:33 +01:00
Joris Van den Bossche 407ed72339 GHA: ensure to upload sdist to GitHub release (#1797) 2021-01-26 08:14:13 +01:00
Martin FleischmannandJoris Van den Bossche b3db3be001 GHA: Automatic release to GitHub and PyPI (#1578)
also create github release (thanks to pysal)

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-01-25 21:15:39 +01:00
Joris Van den Bossche c07ae3c50b DEP: lazily import fiona only when used (to make it possible to not have it installed) (#1775)
* DEP: lazily import fiona only when used (to make it possible to not have it installed)

* fix test
2021-01-24 22:01:37 +00:00
Martin Fleischmann 77f0119c16 TST: skip pandas EA test (pandas #38733) (#1790) 2021-01-24 20:43:12 +01:00
Jacob Hayes eabe4049dd ENH: support for sqlalchemy connections in to_postgis to support external transactions (#1638) 2021-01-14 15:20:03 +01:00
Giacomo Caria 630f13bacb TST: Fix plotting tests (#1766) 2021-01-14 14:34:32 +01:00
Martin Fleischmann 1a6bb4204d TST: skip test_argreduce_series (#1767) 2021-01-10 20:18:03 +01:00
Alan D. Snow f53d77c950 DOC: Update rtree wheel information in installation instructions (#1770) 2021-01-05 09:03:13 +00:00
Adam J. Stewart 36521787c3 DOC: italics can't be nested in links (#1762) 2020-12-31 19:47:46 +00:00
Martin FleischmannandJoris Van den Bossche d1b71c4bfd BUG: implement custom __contains__ for GeometryArray (#1753)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-12-28 22:22:20 +01:00
sangarshanan 8383e17a83 ENH: Overload from_dict to accept crs and geometry (#1619) 2020-12-28 14:57:28 +01:00
Tim Gates 7d3136b834 DOC: fix simple typo, recommenend -> recommend (#1755) 2020-12-28 08:44:14 +01:00
4a84f0b8eb BUG: Expand values as colors only once when plotting MultPoints (#1694)
* Expand values as colors only once. Fixes #1679

* Fix test_multipoints when using values as colors

* Add comment about expansion of values

Co-authored-by: Giacomo Caria <gcaria@loholt1.ipsl.polytechnique.fr>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-12-27 14:30:35 +00:00
7a6fcbbb0b DOC: another batch of docstring examples (#1733)
* docstring examples

* fix buffer

* Apply suggestions from code review

Co-authored-by: Flavin <flavinj@gmail.com>

* Update geopandas/base.py

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

* use matplotlib plot directive

Co-authored-by: Flavin <flavinj@gmail.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-12-27 14:04:18 +00:00
Martin Fleischmann 387e3fd68e REGR: fix pickle issues (#1747)
* fix shapely pickling

* test

* fix 1746

* explain

* fix tests

* try with fixture

* fix tests on windows
2020-12-27 13:54:55 +00:00
Isaac BoatesandMartin Fleischmann bdbca79d91 ENH: fallback to DataFrame.explode() when the specified column is not the geometry column (#1720)
* WIP: Added check to GeoDataFrame.explode() to see if it should fall back to the default pandas method of the same name

* Will geometrically explode if the column dtype is geometry, and defaults to active geometry column if left as None

* changed type check to isinstance

* moved explode() definition from GeoPandasBase to GeoSeries

* Removed ignore_index from explode() args

* cleanup

* black

* skipif

* skipif pandas 024

* added test for epxlode pandas fallback when column param is provided as arg instead of kwarg

* Using assert_geodataframe_equal instead of assert_frame equal and test column param supplied as arg or kwarg in both cases per function (ignore_index=True or False)

* blacken + docs

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-12-27 11:25:04 +00:00