2

大円の最小境界ボックスを計算するために使用できる R パッケージはどれですか?

例えば:

box <- polycirc( c( longitude, latitude ), distance=35 )

これは、指定された座標 (地球上) の中心点から半径 35 キロメートルの円の境界ボックスを返します。どこ:

box.longitude_min = The longitude of the circle's western-most point.
box.longitude_max = The longitude of the circle's eastern-most point.
box.latitude_min = The latitude of the circle's southern-most point.
box.latitude_max = The latitude of the circle's northern-most point.

このようなものはRに既に存在するはずですが、見つかりません。私が見つけた(SOから)最も近いものは、現在Rに変身させているもので、次のとおりです。

http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates

また、円の最小外接矩形を表す単語 (存在する場合) は何ですか? (外接の反対。)

4

2 に答える 2

1

私に与えられた:

  library( geosphere )
  p <- c( longitude, latitude )
  box <- apply( destPoint( p, c(0, 90, 180, 270), distance ), 2, range )
  print( box )
于 2010-06-25T23:18:24.317 に答える
0

関数を使用しpolycircて円の点を生成し、境界ボックスminmax見つけます:)

require(pgirmess)
circle <- polycirc(20, c(10, 20))
plot(circle, type = "l")
rect(min(circle[,1]), min(circle[,2]), max(circle[,1]), max(circle[,2]))
于 2010-06-25T05:50:11.393 に答える