找回密码
 注册
查看: 295|回复: 0

R语言 sos4R包 sosCreate()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:59:37 | 显示全部楼层 |阅读模式
sosCreate(sos4R)
sosCreate()所属R语言包:sos4R

                                        Convenience Functions for Request Parameter Creations
                                         便利的功能请求参数的创作

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These methods can be seen as convenience functions or shortcuts to regularly used parameters in GetObservation requests to a Sensor Observation Service. The remove some complexity and target the most common cases, but also limit flexibility.
这些方法可以被看作是便利的功能或经常使用的参数的快捷方式GetObservation传感器观测服务的请求。删除一些复杂,针对最常见的情况,但也限制了灵活性。


用法----------Usage----------


sosCreateBBOX(lowLat, lowLon, uppLat, uppLon, srsName, srsDimension = NA_integer_, axisLabels = NA_character_, uomLabels = NA_character_, propertyName = sosDefaultSpatialOpPropertyName)
sosCreateBBoxMatrix(lowLat, lowLon, uppLat, uppLon)
sosCreateFeatureOfInterest(objectIDs = list(NA), spatialOps = NULL, bbox = NULL, srsName = NA_character_)
sosCreateEventTime(time, operator)
sosCreateEventTimeList(time, operator)
sosCreateTimeInstant(sos, time, frame = as.character(NA), calendarEraName = as.character(NA), indeterminatePosition = as.character(NA))
sosCreateTimePeriod(sos, begin, end, frame = as.character(NA), calendarEraName = as.character(NA), indeterminatePosition = as.character(NA), duration = as.character(NA), timeInterval = NULL)
sosCreateTime(sos, time, operator = sosDefaultTemporalOperator)



参数----------Arguments----------

参数:lowLat
Minimum latitude for bounding box and boundinb box matrix.
最低纬度边框和boundinb盒矩阵。


参数:lowLon
Minimum longitude for bounding box and boundinb box matrix.
最小边界框的经度和boundinb盒矩阵。


参数:uppLat
Maximum latitude for bounding box and boundinb box matrix.
边框和boundinb盒矩阵的最大纬度。


参数:uppLon
Maximum longitude for bounding box and boundinb box matrix.
最大的经度边框和boundinb盒矩阵。


参数:srsName
Name of the spatial reference system for bounding box, e.g. "urngc:def:crs:EPSG:4326".
的空间参照系统的边界框的名称,例如"urngc:def:crs:EPSG:4326"。


参数:srsDimension
Dimensions of the spatial reference system, e.g. 2.
尺寸的空间参照系统,例如2。


参数:axisLabels
Labels of the axes of a bounding box as an ordered character vector.
作为一个有序的字符向量的边界框的轴线标签。


参数:uomLabels
Unit of measurement labels as an ordered character vector for the axes in a bounding box, e.g. "deg".
作为一个有序的字符向量坐标轴的边界框,例如单位的测量标签"deg"。


参数:propertyName
The spatial property name for the bounding box, e.g. "urngc:data:location"
空间的边界框的属性名称,例如"urngc:data:location"


参数:objectIDs
Identifiers of a feature of interest list.
标识符的兴趣列表中的一个特点。


参数:spatialOps
An object of class OgcSpatialOps-class which is inserted into the feature of interest element.
一种的类OgcSpatialOps-class的对象插入感兴趣的元件的特征。


参数:bbox
Shortcut to add a feature of interest with a GmlEnvelope-class, object must be a matrix as created by sosCreateBBoxMatrix(...).
快捷方式添加新功能的兴趣与一个GmlEnvelope-class,对象必须是一个matrix创建sosCreateBBoxMatrix(...)。


参数:time
Object of class "GmlTimeGeometricPrimitive" for sosCreateEventTimeList, or an object of class POSIXt for sosCreateTimePeriod,or an object of class character for sosCreateTime.
类的对象"GmlTimeGeometricPrimitive"sosCreateEventTimeList,或一个类的对象POSIXtsosCreateTimePeriod,或一个类的对象charactersosCreateTime。


参数:operator
The operator to be used for the time in sosCreateEventTimeList, e.g. "TM_During".
操作人员可以在sosCreateEventTimeList,例如用于时间"TM_During"。


参数:sos
An object of class SOS-class for which the element is created. The SOS might for example be required for formatting settings.
一个对象的类SOS-class的的元素被创建。 SOS例如所需的格式设置。


参数:frame
Provides a URI reference that identifies a description of the reference system.
提供了一个URI引用标识的参考系统的说明。


参数:calendarEraName
The name of the calendar era.
名称的日历时代。


参数:begin
Object of class POSIXt.
对象类POSIXt。


参数:end
Object of class POSIXt.
对象类POSIXt。


参数:indeterminatePosition
Inexact temporal positions may be expressed using the optional indeterminatePosition parameter. This takes one of the following values: after, before, now, unknown.
可以表示使用可选的indeterminatePosition参数不精确的时间位置。这取下列值之一:之后,之前,现在,未知。


参数:duration
Duration of an interval using ISO 8601 syntax for temporal length.
使用ISO 8601的语法为时间长度的间隔时间。


参数:timeInterval
An object of class "GmlTimeIntervalOrNULL" to be used in a GmlTimePeriod-class.
类的一个对象"GmlTimeIntervalOrNULL"使用在GmlTimePeriod-class。


值----------Value----------

An object of the respective class, or a list in case of sosEventTimeList.
各自的类别,或箱子sosEventTimeList列表中的一个目的。


方法----------Methods----------




signature(time = "GmlTimeGeometricPrimitive") Create sos:time based on the given GmlTimeGeometricPrimitive.
signature(time = "GmlTimeGeometricPrimitive")创建SOS:根据给定的GmlTimeGeometricPrimitive。




signature(sos = "SOS", time = "OSIXt") Create sos:time with time instant based on the given time.
signature(sos = "SOS", time = "OSIXt")创建SOS:根据给定的时间的时间与时刻。




signature(sos = "SOS", begin = "OSIXt", end = "OSIXt") Create sos:time with time interval based on the given begin and end times.
signature(sos = "SOS", begin = "OSIXt", end = "OSIXt")创建SOS:时间,时间间隔根据给定的开始和结束时间。


(作者)----------Author(s)----------


Daniel Nuest <a href="mailto:daniel.nuest@uni-muenster.de">daniel.nuest@uni-muenster.de</a>



参见----------See Also----------

These methods create object of the following classes: GmlTimeInstant-class, GmlTimePeriod-class, SosEventTime-class, SosFeatureOfInterest-class, OgcBBOX-class, matrix-class.
这些方法创建对象的以下类:GmlTimeInstant-class,GmlTimePeriod-class,SosEventTime-class,SosFeatureOfInterest-class,OgcBBOX-class,matrix-class。


实例----------Examples----------



# create a feature of interest based on identifiers[根据标识符创建一个感兴趣的特征]
foiIDs <- list("urngcbject:feature:1", "urngcbject:feature:2")
foiObj <- sosCreateFeatureOfInterest(objectIDs = foiIDs[1:2])
print(foiObj)

# create a bounding box matrix and use it to create a spatial feature of interest[创建一个边界框矩阵,并使用它来创建一个空间特征的兴趣]
bboxMatrix <- sosCreateBBoxMatrix(lowLat = 50.0, lowLon = 7.0, uppLat = 53.0, uppLon = 10.0)
foiBBox <- sosCreateFeatureOfInterest(bbox = bboxMatrix, srsName = "urngc:def:crs:EPSG:6.8:4326")
print(foiBBox)

# create a foi with a bounding box[创建一个古板的边界框]
bbox <- sosCreateBBOX(lowLat = 50.0, lowLon = 7.0, uppLat = 53.0, uppLon = 10.0, srsName = "urngc:def:crs:EPSG:6.8:4326", srsDimension = as.integer(2), axisLabels = "lat,lon", uomLabels = "deg,deg", propertyName = "bboxName")
foiBBox2 <- sosCreateFeatureOfInterest(spatialOps = bbox)
print(foiBBox2)

## Not run: [#不运行:]
last.period <- sosCreateTimePeriod(sos = mySOS,
        begin = (Sys.time() - 3600 * 24 * 7), end = Sys.time())

oneWeek.period <- sosCreateTimePeriod(sos = mySOS,
                begin = as.POSIXct("2010/01/01"), end = as.POSIXct("2010/01/07"))
oneWeek.eventTime <- sosCreateEventTimeList(oneWeek.period)

sosCreateTime(sos = mySOS, time = "2007-07-07 07:00::2008-08-08 08:00")
sosCreateTime(sos = mySOS, time = "2007-07-07 07:00/2010-10-10 10:00")

sosCreateTime(sos = mySOS, time = "::2007-08-05")
sosCreateTime(sos = mySOS, time = "2007-08-05/")

## End(Not run)[#(不执行)]


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-9 13:03 , Processed in 0.033302 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表