Package: wk 0.9.3.9000

wk: Lightweight Well-Known Geometry Parsing

Provides a minimal R and C++ API for parsing well-known binary and well-known text representation of geometries to and from R-native formats. Well-known binary is compact and fast to parse; well-known text is human-readable and is useful for writing tests. These formats are useful in R only if the information they contain can be accessed in R, for which high-performance functions are provided here.

Authors:Dewey Dunnington [aut, cre], Edzer Pebesma [aut], Anthony North [ctb]

wk_0.9.3.9000.tar.gz
wk_0.9.3.9000.zip(r-4.5)wk_0.9.3.9000.zip(r-4.4)wk_0.9.3.9000.zip(r-4.3)
wk_0.9.3.9000.tgz(r-4.4-x86_64)wk_0.9.3.9000.tgz(r-4.4-arm64)wk_0.9.3.9000.tgz(r-4.3-x86_64)wk_0.9.3.9000.tgz(r-4.3-arm64)
wk_0.9.3.9000.tar.gz(r-4.5-noble)wk_0.9.3.9000.tar.gz(r-4.4-noble)
wk_0.9.3.9000.tgz(r-4.4-emscripten)wk_0.9.3.9000.tgz(r-4.3-emscripten)
wk.pdf |wk.html
wk/json (API)
NEWS

# Install 'wk' in R:
install.packages('wk', repos = c('https://paleolimbot.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/paleolimbot/wk/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

12.88 score 45 stars 1.1k packages 78 scripts 204k downloads 188 exports 0 dependencies

Last updated 26 days agofrom:96c0132608. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 11 2024
R-4.5-win-x86_64NOTEOct 11 2024
R-4.5-linux-x86_64NOTEOct 11 2024
R-4.4-win-x86_64NOTEOct 11 2024
R-4.4-mac-x86_64NOTEOct 11 2024
R-4.4-mac-aarch64NOTEOct 11 2024
R-4.3-win-x86_64NOTEOct 11 2024
R-4.3-mac-x86_64NOTEOct 11 2024
R-4.3-mac-aarch64NOTEOct 11 2024

Exports:as_crcas_grd_rctas_grd_xyas_rctas_wk_handleras_wk_transas_wkbas_wktas_xycrccrc_centercrc_rcrc_xcrc_ygrdgrd_cellgrd_cell_rangegrd_cell_rctgrd_cell_xygrd_cropgrd_data_extractgrd_data_subsetgrd_extendgrd_extractgrd_extract_nearestgrd_rctgrd_snap_nextgrd_snap_previousgrd_subsetgrd_summarygrd_tilegrd_tile_summarygrd_tile_templategrd_xyhandle_wkt_without_vector_sizeis_handleableis_wk_handleris_wk_wkbis_wk_wktnew_wk_crcnew_wk_grdnew_wk_handlernew_wk_rctnew_wk_transnew_wk_wkbnew_wk_wktnew_wk_xynew_wk_xymnew_wk_xyznew_wk_xyzmparse_wkbparse_wktrctrct_containsrct_heightrct_intersectionrct_intersectsrct_widthrct_xmaxrct_xminrct_ymaxrct_yminsfc_writervalidate_wk_wkbvalidate_wk_wktvalidate_wk_xyvalidate_wk_xymvalidate_wk_xyzvalidate_wk_xyzmvec_cast.wk_crcvec_cast.wk_rctvec_cast.wk_wkbvec_cast.wk_wktvec_cast.wk_xyvec_cast.wk_xymvec_cast.wk_xyzvec_cast.wk_xyzmvec_ptype2.wk_crcvec_ptype2.wk_rctvec_ptype2.wk_wkbvec_ptype2.wk_wktvec_ptype2.wk_xyvec_ptype2.wk_xymvec_ptype2.wk_xyzvec_ptype2.wk_xyzmwk_affine_composewk_affine_fitwk_affine_identitywk_affine_invertwk_affine_rescalewk_affine_rotatewk_affine_scalewk_affine_translatewk_bboxwk_bbox_handlerwk_chunk_strategy_coordinateswk_chunk_strategy_featurewk_chunk_strategy_singlewk_clockwisewk_collectionwk_collection_filterwk_coordswk_coords<-wk_countwk_count_handlerwk_counterclockwisewk_crswk_crs_autowk_crs_auto_valuewk_crs_equalwk_crs_equal_genericwk_crs_inheritwk_crs_longlatwk_crs_outputwk_crs_proj_definitionwk_crs_projjsonwk_crs<-wk_debugwk_debug_filterwk_drop_mwk_drop_zwk_envelopewk_envelope_handlerwk_examplewk_flattenwk_flatten_filterwk_formatwk_geodesic_inheritwk_geometry_typewk_geometry_type_labelwk_handlewk_handle_slicewk_identitywk_identity_filterwk_is_geodesicwk_is_geodesic_outputwk_is_geodesic<-wk_linestringwk_linestring_filterwk_metawk_meta_handlerwk_orientwk_orient_filterwk_platform_endianwk_plotwk_polygonwk_polygon_filterwk_problemswk_problems_handlerwk_restorewk_set_crswk_set_geodesicwk_set_mwk_set_zwk_trans_affinewk_trans_explicitwk_trans_inversewk_trans_setwk_transformwk_transform_filterwk_translatewk_vector_metawk_vector_meta_handlerwk_vertex_filterwk_verticeswk_voidwk_void_handlerwk_writerwkbwkb_to_hexwkb_translate_wkbwkb_translate_wktwkb_writerwktwkt_format_handlerwkt_translate_wkbwkt_translate_wktwkt_writerxyxy_dimsxy_mxy_writerxy_xxy_yxy_zxymxyzxyzm

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
2D Circle Vectorsas_crc as_crc.data.frame as_crc.matrix as_crc.wk_crc crc
Circle accessorscrc_center crc_r crc_x crc_y
Raster-like objectsas_grd_rct as_grd_rct.wk_grd_rct as_grd_rct.wk_grd_xy as_grd_xy as_grd_xy.wk_grd_rct as_grd_xy.wk_grd_xy grd grd_rct grd_xy
Grid cell operatorsgrd_cell grd_cell_range grd_cell_rct grd_cell_rct.wk_grd_rct grd_cell_rct.wk_grd_xy grd_cell_xy grd_cell_xy.wk_grd_rct grd_cell_xy.wk_grd_xy
Extract values from a gridgrd_data_extract grd_extract grd_extract_nearest
Index snap functionsgrd_snap_next grd_snap_previous
Subset grid objectsgrd_crop grd_crop.wk_grd_rct grd_crop.wk_grd_xy grd_data_subset grd_extend grd_extend.wk_grd_rct grd_extend.wk_grd_xy grd_subset
Grid informationgrd_summary
Extract normalized grid tilesgrd_tile grd_tile.wk_grd_rct grd_tile.wk_grd_xy
Compute overview grid tilegrd_tile_summary grd_tile_template
Test handlers for handling of unknown size vectorshandle_wkt_without_vector_size
S3 details for crc objectsnew_wk_crc
S3 details for grid objectsnew_wk_grd
S3 details for rct objectsnew_wk_rct
S3 Details for wk_wkbis_wk_wkb new_wk_wkb validate_wk_wkb
S3 Details for wk_wktis_wk_wkt new_wk_wkt validate_wk_wkt
S3 details for xy objectsnew_wk_xy new_wk_xym new_wk_xyz new_wk_xyzm validate_wk_xy validate_wk_xym validate_wk_xyz validate_wk_xyzm
Plot grid objectsplot.wk_grd_rct plot.wk_grd_xy
2D rectangle vectorsas_rct as_rct.data.frame as_rct.matrix as_rct.wk_rct rct
Rectangle accessors and operatorsrct_contains rct_height rct_intersection rct_intersects rct_width rct_xmax rct_xmin rct_ymax rct_ymin
Vctrs methodsvctrs-methods vec_cast.wk_crc vec_cast.wk_rct vec_cast.wk_wkb vec_cast.wk_wkt vec_cast.wk_xy vec_cast.wk_xym vec_cast.wk_xyz vec_cast.wk_xyzm vec_ptype2.wk_crc vec_ptype2.wk_rct vec_ptype2.wk_wkb vec_ptype2.wk_wkt vec_ptype2.wk_xy vec_ptype2.wk_xym vec_ptype2.wk_xyz vec_ptype2.wk_xyzm
2D bounding rectangleswk_bbox wk_bbox.default wk_bbox_handler wk_envelope wk_envelope.default wk_envelope.wk_crc wk_envelope.wk_rct wk_envelope.wk_xy wk_envelope_handler
Chunking strategieswk_chunk_strategy_coordinates wk_chunk_strategy_feature wk_chunk_strategy_single
Count geometry componentswk_count wk_count.default wk_count_handler
Set and get vector CRSwk_crs wk_crs.wk_rcrd wk_crs.wk_vctr wk_crs<- wk_crs_output wk_is_geodesic_output wk_set_crs
Compare CRS objectswk_crs_equal wk_crs_equal_generic
Special CRS valueswk_crs_auto wk_crs_auto_value wk_crs_inherit wk_crs_longlat
CRS object generic methodswk_crs_projjson wk_crs_proj_definition wk_crs_proj_definition.character wk_crs_proj_definition.double wk_crs_proj_definition.integer wk_crs_proj_definition.NULL wk_crs_proj_definition.wk_crs_inherit
Debug filters and handlerswk_debug wk_debug_filter
Create example geometry objectswk_example wk_example_wkt
Extract simple geometrieswk_flatten wk_flatten_filter
Format well-known geometry for printingwkt_format_handler wk_format
Handle specific regions of objectswk_handle_slice wk_handle_slice.data.frame wk_handle_slice.default
Use data.frame with wkwk_handle.data.frame wk_restore.data.frame wk_restore.sf wk_restore.tbl_df wk_translate.data.frame wk_translate.sf wk_translate.tbl_df
Read geometry vectorsas_wk_handler is_handleable is_wk_handler new_wk_handler wk_handle wk_handle.bbox wk_handle.sf wk_handle.sfc wk_handle.sfg wk_handle.wk_crc wk_handle.wk_rct wk_handle.wk_wkb wk_handle.wk_wkt wk_handle.wk_xy
Handler interface for grid objectswk_handle.wk_grd_rct wk_handle.wk_grd_xy
Copy a geometry vectorwk_identity wk_identity_filter wk_restore wk_restore.default
Set and get vector geodesic edge interpolationwk_geodesic_inherit wk_is_geodesic wk_is_geodesic<- wk_set_geodesic
Create lines, polygons, and collectionswk_collection wk_collection_filter wk_linestring wk_linestring_filter wk_polygon wk_polygon_filter
Extract feature-level metawk_geometry_type wk_geometry_type_label wk_meta wk_meta.default wk_meta_handler wk_vector_meta wk_vector_meta.default wk_vector_meta_handler
Orient polygon coordinateswk_clockwise wk_counterclockwise wk_orient wk_orient_filter
Plot well-known geometry vectorsplot.wk_crc plot.wk_rct plot.wk_wkb plot.wk_wkt plot.wk_xy wk_plot wk_plot.default
Validate well-known binary and well-known textwk_problems wk_problems_handler
Common CRS Representationswk_proj_crs_json wk_proj_crs_view
Set coordinate valueswk_drop_m wk_drop_z wk_set_m wk_set_z wk_trans_set
Affine transformerwk_affine_compose wk_affine_fit wk_affine_identity wk_affine_invert wk_affine_rescale wk_affine_rotate wk_affine_scale wk_affine_translate wk_trans_affine
Transform using explicit coordinate valueswk_trans_explicit
Generic transform classas_wk_trans as_wk_trans.wk_trans new_wk_trans wk_trans_inverse
Apply coordinate transformationswk_transform wk_transform_filter
Translate geometry vectorswk_translate wk_translate.default wk_translate.sfc
Extract verticeswk_coords wk_coords<- wk_vertex_filter wk_vertices
Do nothingwk_void wk_void_handler
Write geometry vectorssfc_writer wkb_writer wkt_writer wk_writer wk_writer.default wk_writer.sf wk_writer.sfc wk_writer.wk_wkb wk_writer.wk_wkt wk_writer.wk_xy xy_writer
Mark lists of raw vectors as well-known binaryas_wkb as_wkb.blob as_wkb.character as_wkb.default as_wkb.WKB as_wkb.wk_wkb parse_wkb wkb wk_platform_endian
Convert well-known binary to hexwkb_to_hex
Deprecated functionswkb_translate_wkb wkb_translate_wkt wkt_translate_wkb wkt_translate_wkt
Mark character vectors as well-known textas_wkt as_wkt.character as_wkt.default as_wkt.wk_wkt parse_wkt wkt
Efficient point vectorsas_xy as_xy.data.frame as_xy.default as_xy.matrix as_xy.wk_xy xy xym xyz xyzm xy_dims
XY vector extractorsxy_m xy_x xy_y xy_z