Commit Graph
173 Commits
Author SHA1 Message Date
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
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
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 Bossche af867de8c5 DOC: only include common spatial index interface in the docs (#1847) 2021-02-28 14:46:12 +01:00
Martin Fleischmann 369445456b DOC: document sindex API (#1749) 2021-02-27 09:53:37 +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
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 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 cb49d088f9 DOC: use Jupyter examples via nbsphinx gallery (#1731) 2021-02-18 21:51:28 +01:00
Martin Fleischmann 01943827b0 DOC: first pass on the Introduction to GeoPandas (#1757) 2021-02-18 21:33:20 +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
Martin Fleischmann d6e1a34263 DOC: documentation pages, ecosystem (#1759) 2021-02-17 21:46:09 +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
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
Tim Gates 7d3136b834 DOC: fix simple typo, recommenend -> recommend (#1755) 2020-12-28 08:44:14 +01: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
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
Joris Van den Bossche 1ef924270e DEP: No longer rely on descartes, use own version of PolygonPatch (#1677) 2020-12-20 16:48:02 +01:00
Jake Clarke e506de5900 DOC: Fixing a typo in "South America" (#1725) 2020-12-07 09:34:03 +00:00
Martijn Visser 5096498fcd DOC: remove misplaced curly bracket from projection.rst (#1721) 2020-12-03 22:58:38 +00:00
Alan D. SnowandMartin Fleischmann a0edbee7d2 ENH: Add estimate_utm_crs method to GeoSeries and GeoDataFrame (#1646)
* ENH: Add estimate_tum_crs method to GeoSeries and GeoDataFrame

* Add examples & expect release in 0.9

* undo changes in CI

* Update geopandas/geoseries.py

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

* pytest.mark.skipif

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

* Update geopandas/geodataframe.py

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

* more skipif

* use pyproj to transform bounds

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-11-27 10:15:26 +00:00
Adrian Garcia BadaraccoandMartin Fleischmann f33c483a33 ENH: add public has_sindex method (#1627)
* add public sindex_generated method to GeoDataFrame, GeoSeries and GeometryArray

* add docstring

* doc suggestions

* PR feedback

* revert docstring

* geometry -> geom

* edit docstring

* Update geopandas/array.py

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

* formatting

* PR feedback

* Update base.py

* add to api docs

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-11-10 19:11:16 +00:00
Martin Fleischmann 7e595d08a5 DOC/CI: remove Travis from docs and paths (#1632)
* DOC/CI: remove Travis from docs and paths

* use envs

* fix

* typo

* how to trigger check
2020-10-10 20:03:25 +01:00
Martin Fleischmann 330ed11dc1 DOC: Docstring examples (#1617)
* GeoSeries examples

* GeoSeries examples

* GeoDataFrame examples

* missed one

* base examples

* review changes

* toggleprompt

* brendan's comments

* further comments
2020-10-08 18:32:19 +01:00
Ian RoseandMartin Fleischmann 38fd095fa5 ENH: Allow for more general file-like objects to be used when opening files. (#1535)
* Allow for more general file-like objects to be used when opening files.

* Add a zip scheme to a local path if it is missing on a .zip file. This
allows similar zip inference to happen for remote and local files.

* Add tests using file-like objects and for inferring zip file.

* Make fsspec an optional dep for CI.

* Handle case where windows drive names are present.

* Add test using GDAL-style vsi path.

* Try to increase test coverage a bit.

* Handle case where an archive path is included for a zip

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

* Fix fiona-style path handling for zip archives.

* Remove debug log.

* Remove remote fsspec test as mostly-redundant.

* Simplify reading of bytes by using BytesCollection everywhere. At some
point it may be better to move to the more-supported
MemoryFile/ZipMemoryFile.

* Add fsspec example to the io docs.

* Slight reorg of zip scheme logic.

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-09-02 20:56:06 +01:00
Alan D. Snow a17c61f54a DOC: Use the CRS.utm_zone property to identify UTM CRS (#1595) 2020-08-28 20:31:39 -07:00
Martin Fleischmann e53ff09109 DOC: Add logo (#1579)
* DOC: Add logo

* favicon
2020-08-26 19:31:55 +01:00
Joris Van den Bossche ca7c95e5c3 DOC: add redirects for old pages (#1577) 2020-08-21 12:11:18 +01:00
Martin Fleischmann 953753896a DOC: Restructured documentation, use pydata-sphinx-theme (#1564)
* use pydata theme

* structure

* fix links

* adapt colors

* getting started

* buttons

* buttons

* rename, use myst, fill stuff

* myst to env

* cleanup

* covered_by

* review comments

* fix link

* use api
2020-08-20 21:48:19 +01:00
Sergio Rey 1b0f006ba1 DOC: update mapclassify doc links (#1557)
* [DOC] update mapclassify doc link

* Update mapclassify doc link in source
2020-08-03 09:09:11 +01:00
Martin Fleischmann 7a093643fc DEP: drop support for older versions of dependencies (#1492)
* change requirements

* ci

* remove compatibility layers

* ci recipe

* ci versions

* version in setup.py
2020-07-28 18:22:47 +01:00
Rowan MolonyandMartin Fleischmann d96da68c2e DOC: Copy pandas commit message conventions (#1533)
* DOC: Copy pandas commit message conventions

Following on from pull request discussion
in #1425

* Rename geopandas to GeoPandas

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

* Remove triple whitespace

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

* Remove triple whitespace again

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

* Change reference to refer to

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

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-07-28 18:13:52 +01:00
Adrian Garcia Badaracco 89908f8439 REF: refactor sjoin as per #1463 (#1470)
* REF: refactor sjoin as per #1463

* PR comments + variablize OPs

* rename var

* PR feedback

* Note new op values in docs

* doc fixes

* finish line
2020-07-03 18:34:00 +01:00
Sönke Schmachtel b0381e1f4a DOC: Travis doc link fix (#1499)
* Update CONTRIBUTING.md

changed getting started url

* Update contributing.rst

changed getting started with travis link
2020-06-30 10:34:21 +01:00
Joris Van den Bossche 5eb66a2d9f DOC: add sections for PostGIS and Parquet/Feather to io.rst docs (#1485) 2020-06-24 17:19:39 +02:00
Joris Van den BosscheandMartin Fleischmann 0b1e2a1423 DOC/RLS: start changelog for 0.8.0 release (#1468)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-06-24 14:20:50 +02:00
Adrian Garcia Badaracco 3868b44e1a ENH: use query_bulk in sjoin (#1421) 2020-06-12 11:37:04 +02:00
Bhavika Tekwani e9cc2588fc ENH: Add covers() method to GeoSeries (#1460) 2020-06-03 10:51:15 +02:00
harryposnerandJoris Van den Bossche ed612f4400 ENH: Setting the CRS of naive geometries (#747)
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2020-05-27 21:28:37 +02:00
Joris Van den Bossche 7e9868860f ENH: add Feather IO support (#1435) 2020-05-27 19:45:44 +02:00
Christopher Yeh 3cba9b720e DOC: Fix typos in mergingdata.rst (#1441) 2020-05-22 08:57:29 +01:00
d19afa4ece ENH: Add parquet IO support (#1180)
* WIP: initial migration of geofeather into geopandas

* WIP: initial implementation of parquet support for geometries

* Refactored approach to retain same geometry column names

* fix CI errors

* Fix CI errors, improve test coverage

* Py2.7 CI fix for decoding binary strings

* Remove feather support (for now) and address PR comments

* Make primary geometry column more clear

* Address PR comments, allow parameter overrides

* Refactor to_paquet(), read_parquet() per PR feedback

* Migrate to column-level CRS metadata

* Refactored parqut I/O to align with latest parquet metadata spec

* Use GeometryArray in read_parquet to set crs directly

* Updated parquet I/O per PR feedback

* Update parquet I/O per PR feedback

* Fix fstrings in compat

* Undo whitespace autoformatting in .travis.yml

* Add stability warning for parquet metadata spec

* Revert pyarrow version for travis

* Add classmethod from_parquet and fix skips for pyarrow

* TEMP: add test for pandas parquet I/O for appveyor

* Add test for parquet columns parameter repeated column names

* try to fix appveyor

* add to reference

* add pyarrow to show_versins

* skip parquet tests on windows

* try again to skip parquet tests on windows

* remove from_parquet classmethod

* undo space

* Updates per metadata spec PR feedback

* Update parquet metadata to match spec, make io methods private

* Add warning for initial parquet implementation

* Add basic read / write benchmarks for parquet

* Add whitespace to make CI happy

* Ignore parquet warnings in tests except where testing the warnings

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2020-05-20 09:23:26 +01:00
raphacosta27 43523217a3 DOC: Adding geopandas.Series overlaps method in documentation (#1423) 2020-05-14 13:40:27 +01:00