Commit Graph
181 Commits
Author SHA1 Message Date
Martin Fleischmann 85e066a5c7 DOC: fix jupyter kernel (#1934) 2021-05-05 17:50:36 +01:00
TLouf 0d38f10a95 DOC: document contextily layers functionality (#1922)
* DOC: document contextily layers functionality

* DOC: restructured background map example

- Explain CRS matching better
- Renamed projected df
- Add sections to better reflect that projecting to mercator is not
mandatory
- Change the sections title levels to match other examples of the
gallery

* DOC: reduced line length in md

* DOC: remove last empty cell from basemap example
2021-05-02 16:59:23 +01:00
standakozakandMartin Fleischmann 462e4a0c3e DOC: set_axis_off method in User Guide (#1907)
* DOC: set_axis_off method in user guide

Added tiny section in User Guide - Mapping and plotting tools called Other map customization. This section covers the set_axis_off method. #524

* Update User Guide - Mapping and Plotting Tools

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

* Update mapping.rst

* Update doc/source/docs/user_guide/mapping.rst

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

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-05-02 15:54:37 +01:00
Ray BellandRay Bell 88c173cefc DOC: hyperlink to API in merging section (#1926)
Co-authored-by: Ray Bell <ray.bell@dtn.com>
2021-05-02 15:41:33 +01:00
Ray Bell b436ac21a6 DOC: add cd doc in code block (#1925) 2021-04-30 16:22:54 +01: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
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
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