Commit Graph
13 Commits
Author SHA1 Message Date
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