Commit Graph
41 Commits
Author SHA1 Message Date
0a7eebf6d1 API: expose sjoin_nearest, clip and overlay as methods (#2150)
Co-authored-by: Brendan Ward <bcward@astutespruce.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-10-03 19:45:07 +02:00
087858c12a EHN: expose sjoin as a GeoDataFrame method (#1984)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Brendan Ward <bcward@astutespruce.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
2021-10-02 08:43:34 +02:00
f5543f55a8 Combine sindex.nearest/nearest_all in single method (#2147)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Brendan Ward <bcward@astutespruce.com>
2021-10-01 18:17:43 +02:00
1c7dc9b9c8 ENH: expose points_from_xy as a GeoSeries method (#1853) (#1936)
Co-authored-by: Jan Šimbera <jan.simbera@vodafone.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-09-30 20:50:42 +02:00
Joris Van den Bossche a05080fa0e ENH: support how="inner" in sjoin_nearest (#2143) 2021-09-30 16:08:33 +02:00
Tom RussellandMartin Fleischmann 64c5813e8b ENH: Expose interface to sindex.nearest (#1977) (#2053)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-09-28 08:53:29 +02:00
29adbaabb3 ENH: sjoin_nearest (#1865)
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Brendan Ward <bcward@astutespruce.com>
2021-09-27 20:30:29 +02:00
Martin Fleischmann 7b109ff10e DOC: minimise warnings from sphinx (#2131) 2021-09-25 15:16:05 +02:00
Martin Fleischmannandsangarshanan b32288824f ENH: native interactive plotting via folium as explore() method (#1953)
Co-authored-by: sangarshanan <sangarshanan1998@gmail.com>
2021-09-23 17:43:30 +02:00
Alan D. Snow 187287b2fa DOC: Add example using Fiona to re-project (#1596) 2021-09-06 21:35:36 +01:00
Adrian Garcia BadaraccoandBrendan Ward 8f08539b3f REF/MAINT: deprecate sjoin op param in favor of predicate (#1626)
* deprecate op param

* remove line

* rename op -> predicate in docs

* Test for collision and unknown kwargs

* Update geopandas/tools/sjoin.py

Co-authored-by: Brendan Ward <bcward@astutespruce.com>

* Update geopandas/tools/sjoin.py

Co-authored-by: Brendan Ward <bcward@astutespruce.com>

* PR feedback

* fix typo

Co-authored-by: Brendan Ward <bcward@astutespruce.com>
2021-09-02 21:27:12 +01:00
Ariel Núñez d006fad416 DOC: postgres/postgresql protocol change in docs (#2082) 2021-08-23 17:36:43 +01:00
Qiusheng Wu 8dd2b9f62c Fixed typos (#2050) 2021-08-06 09:06:01 +01:00
Matthew Law bace23c974 DOC: Fixed link to notebook with more examples in nbviewer (#2042) 2021-07-27 12:12:42 +01:00
Martin Fleischmann 7997837abd REF/TST: replace GeocodeFarm with Photon as a geocoding default (#2007)
* TST: replace GeocodeFarm with Photon

* change default in geocoding and docs
2021-07-15 09:18:17 +01:00
Matthew Law f50e2dd47b DOC: fix misspelling of Plate Carrée (#1981) 2021-06-29 11:53:27 +01:00
Murat Can ÜsteandMartin Fleischmann e2c5b0d978 DOC: Relevant API links for intersphinx mapping (#1931)
* DOC: added API links to intersphinx mapping

* DOC: updated mergingdata.rst links

* DOC: updated aggregation_with_dissolve.rst links

* DOC: updated data_structures.rst links

* DOC: updated geocoding.rst links

* DOC: updated geometric_manipulations.rst links

* DOC: updated indexing.rst links

* DOC: updated io.rst links

* DOC: updated projections.rst links

* DOC: updated set_operations.rst links

* DOC: updated mapping.rst links

* DOC: updated missing_empty.rst links

* DOC: updated geoplot intersphinx links

* DOC: make 'unary_union' attr instead of method

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

* DOC: remove link to GeoDataFrame.geometry

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

* DOC: convert pandas indexers to attrs instead of methods

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

* DOC: convert indexer 'cx' to attr instead of method

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

* DOC: refer GeoSeries.buffer instead of shapely buffer

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

* DOC: make 'unary_union' attr instead of method on missing_empty.rst

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

* DOC: refer to DataFrame.merge instead of pandas.merge

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

* DOC: link pyproj.CRS

* DOC: changed API links to 'stable' from 'latest'

* DOC: fixed separator length

* DOC: uppercase CRS in pyproj.crs

Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
2021-05-28 11:16:54 +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
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 771bb6c387 DOC: fix API reference page for GeoDataFrame.plot accessor (#1858) 2021-02-28 20:25:15 +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
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
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 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
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
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
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 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 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