Skip to content

Releases: geopandas/pyogrio

v0.4.1

25 Jul 20:12
f16009e
Compare
Choose a tag to compare
Update changes for 0.4.1

Version 0.4.0

20 Jun 19:12
0b8758b
Compare
Choose a tag to compare

Major enhancements

  • support for reading from file-like objects and in-memory buffers (#25)
  • index of GeoDataFrame created by read_dataframe can now optionally be set
    to the FID of the features that are read, as int64 dtype. Note that some
    drivers start FID numbering at 0 whereas others start numbering at 1.
  • generalize check for VSI files from /vsizip to /vsi (#29)
  • add dtype for each field to read_info (#30)
  • support writing empty GeoDataFrames (#38)
  • support URI schemes (zip://, s3://) (#43)
  • add keyword to promote mixed singular/multi geometry column to multi geometry type (#56)
  • Python wheels built for Windows, MacOS (x86_64), and Linux (x86_64) (#49, #55, #57, #61, #63)
  • automatically prefix zip files with URI scheme (#68)
  • support use of a sql statement in read_dataframe (#70)
  • correctly write geometry type for layer when dataset has multiple geometry types (#82)
  • support reading bool, int16, float32 into correct dtypes (#83)
  • add geometry_type to write_dataframe to set geometry type for layer (#85)
  • Use certifi to set GDAL_CURL_CA_BUNDLE / PROJ_CURL_CA_BUNDLE defaults (#97)
  • automatically detect driver for .geojson, .geojsonl and .geojsons files (#101)
  • read DateTime fields with millisecond accuracy (#111)
  • support writing object columns with np.nan values (#118)
  • add support to write object columns that contain types different than string (#125)
  • support writing datetime columns (#120)
  • support for writing missing (null) geometries (#59)

Breaking changes

  • read now also returns an optional FIDs ndarray in addition to meta,
    geometries, and fields; this is the 2nd item in the returned tuple.

Potentially breaking changes

  • Consolidated error handling to better use GDAL error messages and specific
    exception classes (#39). Note that this is a breaking change only if you are
    relying on specific error classes to be emitted.
  • by default, writing GeoDataFrames with mixed singular and multi geometry
    types will automatically promote to the multi type if the driver does not
    support mixed geometry types (e.g., FGB, though it can write mixed geometry
    types if geometry_type is set to "Unknown")
  • the geometry type of datasets with multiple geometry types will be set to
    "Unknown" unless overridden using geometry_type. Note:
    "Unknown" may be ignored by some drivers (e.g., shapefile)

Bug fixes

  • use dtype object instead of numpy.object to eliminate deprecation warnings (#34)
  • raise error if layer cannot be opened (#35)
  • fix passing gdal creation parameters in write_dataframe (#62)
  • fix passing kwargs to GDAL in write_dataframe (#67)

v0.4.0b1

19 Jun 15:30
c6b58ca
Compare
Choose a tag to compare
CI: Fix minimal test env and remove deps on pandas / geopandas (#134)

Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>

v0.4.0a1

26 May 19:08
3c8a0b9
Compare
Choose a tag to compare
Allow pip to install prerelease for testing wheels

Version 0.3.0

22 Dec 18:13
596e72b
Compare
Choose a tag to compare

Major enhancements

  • Auto-discovery of GDAL_VERSION on Windows, if gdalinfo.exe is discoverable
    on the PATH.
  • Addition of read_bounds function to read the bounds of each feature.
  • Addition of a fids keyword to read and read_dataframe to selectively
    read features based on a list of the FIDs.

Version 0.2.0

01 Apr 22:23
3c91e59
Compare
Choose a tag to compare

Major enhancements

  • initial support for building on Windows.
  • Windows: enabled search for GDAL dll directory for Python >= 3.8.
  • Addition of where parameter to read and read_dataframe to enable GDAL-compatible
    SQL WHERE queries to filter data sources.
  • Addition of force_2d parameter to read and read_dataframe to force
    coordinates to always be returned as 2 dimensional, dropping the 3rd dimension
    if present.
  • Addition of bbox parameter to read and read_dataframe to select only
    the features in the dataset that intersect the bbox.
  • Addition of set_gdal_config_options to set GDAL configuration options and
    get_gdal_config_option to get a GDAL configuration option.
  • Addition of pyogrio.__gdal_version__ attribute to return GDAL version tuple
    and __gdal_version_string__ to return string version.
  • Addition of list_drivers function to list all available GDAL drivers.
  • Addition of read and write support for FlatGeobuf driver when available in GDAL.

Version 0.1.0

28 Aug 19:37
d7ac3d1
Compare
Choose a tag to compare

Initial release of core functionality, including:

  • listing layers
  • reading basic info for a layer
  • reading from supported file formats (Shapefile, GeoPackage, GeoJSON) into GeoDataFrames
  • writing from GeoDataFrames into supported file formats