Commit Graph
5 Commits
Author SHA1 Message Date
Martin Fleischmann d0f73f8d58 DOC: remove faulty geoplot Voronoi example (#1855) 2021-02-28 20:01:51 +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
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
Martin Fleischmann cb49d088f9 DOC: use Jupyter examples via nbsphinx gallery (#1731) 2021-02-18 21:51:28 +01:00