applyTransformation(vec2dtransf)
applyTransformation()所属R语言包:vec2dtransf
Apply the transformation to an sp object
应用转换到SP的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The main functionality of this package. Applies the transformation to an sp object, which can have geometry type point, line or polygon and can have an associated data.frame.
这个软件包的主要功能。应用转换到SP的对象,它可以有几何类型的点,线,多边形,可以有一个相关联的数据框。
用法----------Usage----------
applyTransformation(object, sp.object)
参数----------Arguments----------
参数:object
Object of the class SimilarityTransformation or AffineTransformation
对象之类的SimilarityTransformation的或AffineTransformation
参数:sp.object
An object of type: SpatialPoints, SpatialPointsDataFrame, SpatialLines, SpatialLinesDataFrame, SpatialPolygons or SpatialPolygonsDataFrame
类型的对象:SpatialPoints,SpatialPointsDataFrame,SpatialLines,SpatialLinesDataFrame,SpatialPolygons或SpatialPolygonsDataFrame
Details
详细信息----------Details----------
The transformation only affects sp object geometries. Attributes, IDs and other sp object characteristics are preserved.
转换只影响SP的对象的几何形状。属性ID和其他SP对象的特征被保留。
The transformation can only be applied either on projected spatial data or on spatial data with unknown projection information. Geographic data cannot be transformed due to the nature of the methods (2D Cartesian).
转换只能应用空间数据的预测,或对空间数据与未知的投影信息。GEO数据不能被转化由于性质的方法(2D笛卡尔)。
值----------Value----------
A transformed sp.object
转化的sp.object
(作者)----------Author(s)----------
German Carrillo
参考文献----------References----------
<URL: http://cran.r-project.org/web/packages/sp/index.html>
参见----------See Also----------
sp, calculateParameters, <br> SimilarityTransformation-class, <br> AffineTransformation-class
sp,calculateParameters,参考SimilarityTransformation-class,参考AffineTransformation-class
实例----------Examples----------
# From the sp examples:[从SP例子:]
x <- c(1,1,1,2,2,2,3,3,3)
y <- c(1,2,3,1,2,3,1,2,3)
xy <- cbind(x,y)
S <- SpatialPoints(xy)
st=SimilarityTransformation(parameters=c(1,0,0.2,-0.2))
trS <- applyTransformation(st, S)
trS # Transformed sp object, have a look at the coordinates[转化菌对象,看看在坐标]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|