* expanded assert messages. Refactor of duplicated code
* black formatted
* fix forgotten if
* fix forgotten ifs
* reformat code, add indeces to error and full first geometries
* fix typo
* expand tests and check for error message
* truncate string
Co-authored-by: ImanolUr <imanol@live-eo.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
* Make the id property in to_json optional
As discussed in #390, the id property in geojson generated with to_json
may not be all that meaningful (frequently just an arbitrary row number
in a dataframe). The option to disable writing ids without meaning is
given here with a new argument `drop_id`, set to `False` by default.
* Add to_json tests when only geometry column
* Fix linting error
* Improved docstring on drop_id option
* Fix merge conflict leftover
* Set id key first in iterfeatures
* Update geopandas/geodataframe.py
* Update geopandas/geodataframe.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
* Add warning if keep_geom_type drops geometries during overlay
* Expand keep_geom_type warning message
* Add test for keep_geom_type dropping geoms
* Set keep_geom_type=None by default
With True, no warning raised. With None, will drop geoms of other types,
but warn the user.
* Update geopandas/tests/test_overlay.py
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net>
* TST: fix tests with matplotlib master
* also fix legend height test + more robust method to get specific axes object
* fix robust helper method for old matplotlib
* typo
* 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>