Refs #23919 -- Updated obsolete buffer() references to memoryview().

Obsolete since 8cdc84726e.
This commit is contained in:
Mariusz Felisiak 2022-10-13 19:49:57 +02:00 committed by GitHub
parent da2621c3df
commit 7c884afe5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -181,7 +181,7 @@ Geometry Objects
.. class:: GEOSGeometry(geo_input, srid=None)
:param geo_input: Geometry input value (string or buffer)
:param geo_input: Geometry input value (string or :class:`memoryview`)
:param srid: spatial reference identifier
:type srid: int
@ -206,14 +206,14 @@ The ``srid`` parameter, if given, is set as the SRID of the created geometry if
The following input formats, along with their corresponding Python types,
are accepted:
======================= ==========
======================= ==============
Format Input Type
======================= ==========
======================= ==============
WKT / EWKT ``str``
HEX / HEXEWKB ``str``
WKB / EWKB ``buffer``
WKB / EWKB ``memoryview``
:rfc:`GeoJSON <7946>` ``str``
======================= ==========
======================= ==============
For the GeoJSON format, the SRID is set based on the ``crs`` member. If ``crs``
isn't provided, the SRID defaults to 4326.