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:
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')) |
Bug tracker:https://github.com/paleolimbot/wk/issues
- wk_example_wkt - Create example geometry objects
- wk_proj_crs_json - Common CRS Representations
- wk_proj_crs_view - Common CRS Representations
Last updated 1 months agofrom:96c0132608. Checks:OK: 3 NOTE: 6. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 10 2024 |
R-4.5-win-x86_64 | OK | Nov 10 2024 |
R-4.5-linux-x86_64 | OK | Nov 10 2024 |
R-4.4-win-x86_64 | NOTE | Nov 10 2024 |
R-4.4-mac-x86_64 | NOTE | Nov 10 2024 |
R-4.4-mac-aarch64 | NOTE | Nov 10 2024 |
R-4.3-win-x86_64 | NOTE | Nov 10 2024 |
R-4.3-mac-x86_64 | NOTE | Nov 10 2024 |
R-4.3-mac-aarch64 | NOTE | Nov 10 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 page | Topics |
---|---|
2D Circle Vectors | as_crc as_crc.data.frame as_crc.matrix as_crc.wk_crc crc |
Circle accessors | crc_center crc_r crc_x crc_y |
Raster-like objects | as_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 operators | grd_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 grid | grd_data_extract grd_extract grd_extract_nearest |
Index snap functions | grd_snap_next grd_snap_previous |
Subset grid objects | grd_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 information | grd_summary |
Extract normalized grid tiles | grd_tile grd_tile.wk_grd_rct grd_tile.wk_grd_xy |
Compute overview grid tile | grd_tile_summary grd_tile_template |
Test handlers for handling of unknown size vectors | handle_wkt_without_vector_size |
S3 details for crc objects | new_wk_crc |
S3 details for grid objects | new_wk_grd |
S3 details for rct objects | new_wk_rct |
S3 Details for wk_wkb | is_wk_wkb new_wk_wkb validate_wk_wkb |
S3 Details for wk_wkt | is_wk_wkt new_wk_wkt validate_wk_wkt |
S3 details for xy objects | new_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 objects | plot.wk_grd_rct plot.wk_grd_xy |
2D rectangle vectors | as_rct as_rct.data.frame as_rct.matrix as_rct.wk_rct rct |
Rectangle accessors and operators | rct_contains rct_height rct_intersection rct_intersects rct_width rct_xmax rct_xmin rct_ymax rct_ymin |
Vctrs methods | vctrs-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 rectangles | wk_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 strategies | wk_chunk_strategy_coordinates wk_chunk_strategy_feature wk_chunk_strategy_single |
Count geometry components | wk_count wk_count.default wk_count_handler |
Set and get vector CRS | wk_crs wk_crs.wk_rcrd wk_crs.wk_vctr wk_crs<- wk_crs_output wk_is_geodesic_output wk_set_crs |
Compare CRS objects | wk_crs_equal wk_crs_equal_generic |
Special CRS values | wk_crs_auto wk_crs_auto_value wk_crs_inherit wk_crs_longlat |
CRS object generic methods | wk_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 handlers | wk_debug wk_debug_filter |
Create example geometry objects | wk_example wk_example_wkt |
Extract simple geometries | wk_flatten wk_flatten_filter |
Format well-known geometry for printing | wkt_format_handler wk_format |
Handle specific regions of objects | wk_handle_slice wk_handle_slice.data.frame wk_handle_slice.default |
Use data.frame with wk | wk_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 vectors | as_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 objects | wk_handle.wk_grd_rct wk_handle.wk_grd_xy |
Copy a geometry vector | wk_identity wk_identity_filter wk_restore wk_restore.default |
Set and get vector geodesic edge interpolation | wk_geodesic_inherit wk_is_geodesic wk_is_geodesic<- wk_set_geodesic |
Create lines, polygons, and collections | wk_collection wk_collection_filter wk_linestring wk_linestring_filter wk_polygon wk_polygon_filter |
Extract feature-level meta | wk_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 coordinates | wk_clockwise wk_counterclockwise wk_orient wk_orient_filter |
Plot well-known geometry vectors | plot.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 text | wk_problems wk_problems_handler |
Common CRS Representations | wk_proj_crs_json wk_proj_crs_view |
Set coordinate values | wk_drop_m wk_drop_z wk_set_m wk_set_z wk_trans_set |
Affine transformer | wk_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 values | wk_trans_explicit |
Generic transform class | as_wk_trans as_wk_trans.wk_trans new_wk_trans wk_trans_inverse |
Apply coordinate transformations | wk_transform wk_transform_filter |
Translate geometry vectors | wk_translate wk_translate.default wk_translate.sfc |
Extract vertices | wk_coords wk_coords<- wk_vertex_filter wk_vertices |
Do nothing | wk_void wk_void_handler |
Write geometry vectors | sfc_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 binary | as_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 hex | wkb_to_hex |
Deprecated functions | wkb_translate_wkb wkb_translate_wkt wkt_translate_wkb wkt_translate_wkt |
Mark character vectors as well-known text | as_wkt as_wkt.character as_wkt.default as_wkt.wk_wkt parse_wkt wkt |
Efficient point vectors | as_xy as_xy.data.frame as_xy.default as_xy.matrix as_xy.wk_xy xy xym xyz xyzm xy_dims |
XY vector extractors | xy_m xy_x xy_y xy_z |