Returns the value when the coordinates of ESPG:4326 given to the input are replaced with those of the Japan Plane Rectangular CS.

st_nearest_jgd2011(geometry)

st_detect_jgd2011(geometry)

Arguments

geometry

geometry (POINT, EPSG:4326)

Value

numeric vector

Details

  • st_nearest_jgd2011(): It returns the coordinate system closest to the given ground object. This is valid even when the coordinates are at sea.

  • st_detect_jgd2011(): Identify the coordinate system in which the given object is located.

See also

Examples

require("sf") p <- st_sfc(sf::st_point(c(140.77, 36.8)), crs = 4326) st_nearest_jgd2011(p)
#> although coordinates are longitude/latitude, st_nearest_points assumes that they are planar
#> [1] 6677
st_detect_jgd2011(p)
#> although coordinates are longitude/latitude, st_within assumes that they are planar
#> [1] NA
st_detect_jgd2011(st_sfc(sf::st_point(c(140.73, 36.8)), crs = 4326))
#> although coordinates are longitude/latitude, st_within assumes that they are planar
#> [1] 6677