@@ -357,12 +357,22 @@ def wkb(*, edge_type=None, crs=crs.UNSPECIFIED) -> TypeSpec:
357357def large_wkb (* , edge_type = None , crs = crs .UNSPECIFIED ) -> TypeSpec :
358358 """Large well-known binary encoding
359359
360- Create a :class:`TypeSpec` denoting a well-known binary type with
360+ Create a :class:`TypeSpec` denoting a well-known binary type with
361361 64-bit data offsets. See :func:`type_spec` for parameter definitions.
362362 """
363363 return type_spec (encoding = Encoding .LARGE_WKB , edge_type = edge_type , crs = crs )
364364
365365
366+ def wkb_view (* , edge_type = None , crs = crs .UNSPECIFIED ) -> TypeSpec :
367+ """Well-known binary view encoding
368+
369+ Create a :class:`TypeSpec` denoting a well-known binary type using
370+ binary views as the underlying storage type. See :func:`type_spec`
371+ for parameter definitions.
372+ """
373+ return type_spec (encoding = Encoding .WKB_VIEW , edge_type = edge_type , crs = crs )
374+
375+
366376def wkt (* , edge_type = None , crs = crs .UNSPECIFIED ) -> TypeSpec :
367377 """Well-known text encoding
368378
@@ -381,6 +391,16 @@ def large_wkt(*, edge_type=None, crs=crs.UNSPECIFIED) -> TypeSpec:
381391 return type_spec (encoding = Encoding .LARGE_WKT , edge_type = edge_type , crs = crs )
382392
383393
394+ def wkt_view (* , edge_type = None , crs = crs .UNSPECIFIED ) -> TypeSpec :
395+ """Well-known text encoding
396+
397+ Create a :class:`TypeSpec` denoting a well-known text type using
398+ string views as the underlying storage type. See :func:`type_spec`
399+ for parameter definitions.
400+ """
401+ return type_spec (encoding = Encoding .WKT_VIEW , edge_type = edge_type , crs = crs )
402+
403+
384404def geoarrow (
385405 * ,
386406 geometry_type = None ,
@@ -619,6 +639,8 @@ def type_spec(
619639 Encoding .LARGE_WKB : "geoarrow.wkb" ,
620640 Encoding .WKT : "geoarrow.wkt" ,
621641 Encoding .LARGE_WKT : "geoarrow.wkt" ,
642+ Encoding .WKB_VIEW : "geoarrow.wkb" ,
643+ Encoding .WKT_VIEW : "geoarrow.wkt" ,
622644}
623645
624646_GEOARROW_EXT_NAMES = {
0 commit comments