Commit Graph
1364 Commits
Author SHA1 Message Date
Joris Van den Bossche fdf1fd7390 DOC: fix typo in changelog 2021-02-28 22:24:24 +01:00
Joris Van den Bossche ec4c6805d1 RLS: v0.9.0 2021-02-28 22:09:18 +01:00
Martin Fleischmann e61570e83b DOC: remove df from plot docstring (#1860) 2021-02-28 22:01:39 +01:00
Martin Fleischmann de783b9071 DOC: hide roadmap from docs (#1854) 2021-02-28 21:15:52 +01:00
Joris Van den Bossche 771bb6c387 DOC: fix API reference page for GeoDataFrame.plot accessor (#1858) 2021-02-28 20:25:15 +01:00
Martin Fleischmann d0f73f8d58 DOC: remove faulty geoplot Voronoi example (#1855) 2021-02-28 20:01:51 +01:00
Joris Van den Bossche 408ce089a6 BUG: fixup GeoDataFrame.apply in case there is no geometry column (#1857) 2021-02-28 20:01:33 +01:00
e29b1004a8 ENH: Integrate to/from wkt/wkb functions into public API (#1710)
* Add GeoSeries to_wkt and to_wkb methods

* Add hex=False kwarg to existing from_wkb functions

* Add GeoSeries from_wkt and from_wkb methods

* Add wkt, wkb, and wkb_hex kwargs to GeoDataFrame constructor

* Add GeoDataFrame to_wkt and to_wkb methods

* Remove _export_wkb method from arrow in favor of GeoDataFrame to_wkb

* Shorten line lengths to satisfy linter

* Apply black reformatting

* Remove most references to WKB hex. shapely supports it, pygeos does not.

* Remove docstring examples of GeoSeries.to_wkb and GeoSeries.from_wkb, as docstrings interpreted as source code are not allowed to contain null bytes

* Change GeoSeries from_wkb/t from staticmethod to classmethod and return using cls

* Allow GeoSeries.from_wkb/t to accept Series input, and test that

* Remove GeoDataFrame.__init__ wkt and wkb kwargs

* Use GeoSeries.from_wkt in example

* Keep index of Series passed to GeoSeries.from_wkb/t

* Apply suggestions from code review

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

* Add one-liner docstring to _from_wkb_or_wkt and see also to from_wkb and from_wkt

* Reindex instead of raise ValueError when passing index to from_wkb/t with series

* Expose hex and kwargs in to_wkb/t methods

* update example

* Fix lint error

* preserve index of passed series

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-02-28 17:02:00 +00:00
Joris Van den BosscheandJames McBride 45ca8f241f DOC/RLS: update changelog for the 0.9.0 release (#1839)
Co-authored-by: James McBride <jdmcbr@gmail.com>
2021-02-28 17:54:00 +01:00
Martin Fleischmann d7c42d0828 DOC: set up binder environment (#1850) 2021-02-28 17:53:26 +01:00
Flavin 86ba66be01 ENH: Add groupby kwargs to dissolve (#1845) 2021-02-28 16:39:32 +01:00
Joris Van den Bossche 6e183ff628 ENH: try to preserve CRS in GeoDataFrame.apply (#1848) 2021-02-28 14:46:50 +01:00
Joris Van den Bossche af867de8c5 DOC: only include common spatial index interface in the docs (#1847) 2021-02-28 14:46:12 +01:00
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