Commit Graph
1375 Commits
Author SHA1 Message Date
John Flavin afa49e01bd BUG: Improve NA handling in to/from wkb/t (#1891) 2021-04-09 22:07:44 +02:00
Andreas Eliasson 08cb5909b8 DOC: revise intro to geopandas notebook (#1886)
* DOC: revise intro to geopandas notebook

* DOC: fix typo and use 'spatial relation'

* DOC: remove kernel metadata
2021-04-08 17:26:44 +01:00
Martin Fleischmann 37ffc35f06 TST: skip pandas master fillna test (#1878) 2021-04-04 09:37:36 +01:00
Daniel Mesejo-León ce6101810b ENH: use crs.is_projected and heuristic as fallback (#1713) (#1895)
* ENH: use crs.is_projected and heuristic as fallback (#1713)

* apply PR suggestions

* increase test coverage per PR suggestions
2021-04-02 16:10:47 +01:00
Daniel Mesejo-León 2a5c42f8fc DOC: Add from_wkt, from_wkb, to_wkt, to_wkb to API reference (#1889) (#1890) 2021-04-02 11:26:39 +01:00
Joris Van den Bossche f5c54edfaa DOC: use CSS variables to customize sphinx theme (#1666) 2021-03-18 13:53:36 +01:00
Flavin 910131ec3a BUG: Refactor geopandas.testing._check_equality (GH1863) (#1864)
* Refactor geopandas.testing._check_equality

* Use geom_equals or geom_almost_equals consistently
* Reuse repeated code to generate AssertionError
* Only check equality once instead of three times

* Make mask helper functions private

* Add test case
2021-03-05 18:00:55 +00:00
Adrian Garcia Badaracco b6174f4855 MAINT: use BinaryPredicate Enum for PyGEOS predicates (#1872)
* MAINT: use BinaryPredicate Enum for PyGEOS predicates

* commmit something to make ci rerun
2021-03-04 15:20:14 +00:00
Martin Fleischmann 3aea787c6c CI: use numpy main instead of master branch (#1873) 2021-03-04 09:44:18 +00:00
James A. Bednar 8ddac2f9a4 DOC: Add hvPlot to ecosystem (#1869) 2021-03-03 08:18:31 +01:00
Andreas EliassonandAndreas Eliasson d2323fdada DOC: fix typos in contributing guide (#1862)
* DOC: fix typo in contributing section

* DOC: make minor changes in 'Updating the Doc' section

* DOC: remove whitespace

Co-authored-by: Andreas Eliasson <andreas.eliasson@geodata.no>
2021-03-02 22:48:12 +00:00
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