最小X/Y范围,最大X/Y(度):
以十进制度数指定范围。范围应该满足所有这些条件。
- 180<Xmin,xMAX<180
- 90<YMIN,YMAX<90
xmin比xmax西,伊敏比伊玛克斯南
宽度<=0.15,身高<0.15
如果其中一个条件不满足,输入功能将立即从
输出OSM文件路径:
指定用于保存下载的OSM文件的文件路径。
输出OSM文件路径属性:
(可选)指定存储已保存的OSM文件路径的属性名。属性值将与为“output osm file path”参数指定的文件路径相同。
HTTP连接超时长度(秒):
此参数可用于设置HTTP连接请求的超时。如果在给定的秒数内无法创建到服务器的连接,请求将失败,通过故障输出功能 端口。默认连接超时为60秒。如果输入0,不会有超时,变压器将无限期地等待成功连接。
HTTP传输超时长度(秒):
此参数可用于设置HTTP传输的超时。如果数据停止传输的时间超过给定的秒数,请求将失败,通过故障输出功能 端口。默认传输超时为300秒。如果输入0,不会有超时,变压器将无限期地等待数据恢复传输。
“啊!title=“osmdownloader”!fme_document_priorguid=“83b01aac-3f6b-48bd-b9b5-cc01458b8213”!category=“网络”!描述=下载与指定范围对应的OpenStreetmap(OSM)数据文件。您可以使用OpenStreetmap(OSM)XML[OSM]阅读器从下载的文件中读取功能。
笔记:
1。根据范围,数据大小可能变得太大,完成下载可能需要很长时间。为了防止下载过大的数据,此变压器将范围的宽度和高度限制为0.15 x 0.15度 (9 x 9分钟)。如果指定范围的宽度或高度大于限制,输入功能将立即从
2。如果使用此转换器连续向OSM服务器发送多个HTTP请求,它可能会压倒服务器,一些请求可能会失败。在这种情况下,考虑使用减速器延迟每个功能的请求。
三。此转换器创建目标文件夹,如果它不存在。如果文件夹创建失败,将不执行下载,输入特性将通过 失败 端口。
FME 2015.1.3+
“啊!FME工艺组视图“位置=”-2943.03 1350.01“!法律条款版权所有(c)2015 Pragmatica Inc.
允许任何人,免费的,使用,出于任何目的修改和分发此转换器的目标代码表单,受以下限制:
1)不得歪曲本变压器和相关FME(R)软件的来源。
2)该变压器只能与有效许可的FME软件一起使用。
本软件由Pragmatica Inc.提供。“原样”以及任何明示或暗示的保证,包括,但不限于:对适销性的默示保证,不违反和适用于某一特定目的是不允许的。在任何情况下,Pragmatica公司都不得对任何直接责任,间接的,附带的,特殊的,示范性的,或间接损害(包括,但不限于:替代货物或服务的采购;使用损失,数据,或利润;或业务中断),无论是何种原因,根据任何责任理论,无论是在合同中,严格责任,或因使用本软件而引起的侵权行为(包括疏忽或其他);即使被告知有可能发生这种损害。
创建URL(HTTP API)
“啊!位置=“-1203.01 1014.76”!左上角“-1203.01 1014.76”!底部_right=“-1204.01 1015.76”!边界矩形=“-1203.01 1014.76-1-1”!order=“5e+014”!跟随锚=真!info_node=“false”!colour=“1,1,0.784314,0.192157”!size_policy=“8”!comment_type=“Regular”!锚定的_node=“2”!>下载并保存OSM文件。
“啊!位置=“-637.008 1014.76”!左上角“-637.008 1014.76”!右下角“-638.008 1015.76”!边界矩形=“-637.008 1014.76-1-1”!order=“5e+014”!跟随锚=真!info_node=“false”!colour=“1,1,0.784314,0.192157”!size_policy=“8”!comment_type=“Regular”!锚定的_node=“3”!>一编码= 乌斯阿斯契单机= 不? 几何学 维数= 二无效的 几何学 )工厂def$(创建者_经典)创意工厂_name创建者_经典_创建者$(创建者d)$(创建者coords)创造_端无输出特征_类型\\\\uuuuuuuuu\\\\\\\\\\\\\\\\\\\\\\\\\实例“output feature_type creator_created@tcl2(creator_coordSysRemover)@coordSys()fme_feature_type creator----------------------------------------------------------------factory_def*teefactory factory_name”osmdownloader input collector“input feature_type creator_created output feature_type osmdownl”加载器输入宏osmdownloader_工作区名称osmdownloader macro$(osmdownloader_工作区名称)_x曾用名osmdownloader macro$(osmdownloader_工作区名称)_变压器组宏$(osmdownloader_工作区名称)uuuuu复合参数宏$(osmddownloader_工作区名称)_子文件名osmddownloadermacro$(osmddownloader_工作区名称)_bbu xmin-xmin-u-xmin-u-xmin-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-buuuuuu-u-u-一个-478.4985宏$(osmdownloader_workspace_name)_bb_ymin 33.6924宏$(osmdownloader_workspace_name)_bb_xmax-478.0756macro$(osmdownloader_workspace_name)_bb_ymax 34.0709macro$(osmdownloader_workspace_name)_output_filename v:\projects\port of long beach(polb)\as needed gis services(2018-2021)\heavy cargo\osm data\fme extract\20181129.xmlmacro$(osmdownloader-u-workspace_-name)_-file_-path_-attr_-osm_-file_-pathm宏$(osmdownloader-u-workspace_-name)_连接超时_-连接超时_-长度60macro$(osmdownloader-u-workspace_-name)_传输超时_-长度300macro$(osmdownloader-u工作区_-name)_bb_-max_-wid0.15macro$0.15macro(osmdownloader-u-loader-u-osm文件_-pathmmac_-max_-max-高度0.15默认_-macro-osmdownloader-工作区名称clude[输入宏wb_old_context_$(osmdownloader_workspace_name)$(wb_current_context)输入macro wb_current_context$(osmdownloader_workspace_name)]工厂_def*teefactory工厂_name“$(osmdownloader_workspace_name)_input1543541394 input splitter“input feature”_type“$(osmdownloader_workspace_name)_input“output feature”_type“$(osmdownloader_workspace_name)_input”--------------------------------------——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————ST; ;测试$($(osmdownloader_workspace_name)_bb_xmax$encode)<0;测试$($(osmdownloader_workspace_name)_bb_xmin$encode)>0' 评价 360美元以上($(osmdownloader_workspace_name)_bb_xmax$encode) 'fme_num_conditions2_uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuosmdownloader.file_路径 价值 $($(osmdownloader_workspace_name)_file_path_attr$encode) 输出输出功能_type“$(osmdownloader_workspace_name)_attributeCreator_output”-------------------------------------------------------------tcl2 fme_decode proc 创建目录 设置 迪尔 文件 目录名 FME获取属性 _ osmdownloader.file_路径如果 ! 文件 存在 迪尔 文件 麦克迪尔 迪尔 返回 文件 存在 迪尔 macro copier@tcl2(“”)包括[if[string length]==0 puts macro copier 1 factory teefactory factory name$(osmdownloader workspace name)_tcCaller input feature(osmdownloader workspace output“number”_of(copies$(copier)output feature(osmdownloader工作区clcaller_output“”uu osmdownloader.folder_exists“@tcl2(”createddirectory”)35;----------------------------------------------------------------工厂定义*测试工厂名称$(osmdownloader_workspace_name)_测试仪输入功能_type“$(osmdownloader_workspace_name)_tccaller_output“测试-180<=@evaluateexpression(fdiv,string_encoded,$($(osmdownloader_workspace_name)_bb_xmin$encode),$(osmdownloader_workspace_name)_tester)encoded test@evaluateexpression(fdiv,string_encoded,$($(osmdownloader_workspace_name)_bb_xmax$encoded),$(osmdownloader_workspace_name)<=180 encoded test-90<=@evaluateexpression(fdiv,string_encoded,$(osmdownloader_workspace_name)YMin$Encode),$(osmdownloader_workspace_name)_tester)Encodetest@EvaluateExpression(fdiv,string_编码,$($(osmdownloader_works工作区_name)_bb_yMax$Encode,$(osmdownloader_工作区_name)_tester)<=90编码test@EvaluateExpression(fdiv,string_编码,$($(osmdownloader_工作区_name)_bb_xmin$Encode)Encodetest@EvaluateExpression(fdiv,string_编码,$($($(osmdownloader_工作区_name)_name)Evaluevalu测试仪)<@evaluateexpression(fdiv,string_encoded, 价值 _ osmdownloader.x最大 ,$(osmdownloader_workspace_name)_tester)encoded test@evaluateexpression(fdiv,string_encoded,$($(osmdownloader_workspace_name)_bb_ymin$encode),$(osmdownloader_workspace_name)_tester)<@evaluateexpression(fdiv,string_encoded,$($(osmdownloader_workspace_name)_bb_ymax$encoded),$(osmdownloader_workspace_name)_tester)encoded test@evaluateexpression(fdiv,string_编码, 评价 价值 _ osmdownloader.x最大 -$($(osmdownloader_workspace_name)_bb_xmin$encode) ,$(osmdownloader_workspace_name)_tester)<@evaluateexpression(fdiv,string_encoded, 评价 $($(osmdownloader_workspace_name)_bb_max_width$encode)+1.0e-8 ,$(osmdownloader_workspace_name)_tester)encoded test@evaluateexpression(fdiv,string_encoded, 评价 $($(osmdownloader_workspace_name)_bb_ymax$encode)-$($(osmdownloader_workspace_name)_bb_ymin$encode) ,$(osmdownloader_workspace_name)_tester)<@evaluateexpression(fdiv,string_encoded, 评价 $($(osmdownloader_workspace_name)_bb_max_height$encode)+1.0e-8 ,$(osmdownloader_workspace_name)_tester)编码的布尔值_operator和输出传递的特征_type“$(osmdownloader_workspace_name)_tester_passed”输出失败的特征_type“$(osmdownloader_workspace_name)_tester_failed“35;-----------------------------------------------------------------包括[设置宏行”宏$(osmdownloa工作区名称)属性移动器列表foreach attr[split“”]设置attr[fme_decodetext$attr];设置attr[regsub”“$”$attr“.*”];设置attr[regsub-all“”$attr“\123; \[0-9\]+\”];附加宏行“^$attr$”;};卖出$macroline;]工厂定义*teefactory工厂名称$(osmdownloader\u workspace\u name)attributeremover\u 3 input feature\u type“$(osmdownloader\u workspace\u name)测试仪\u failed“output feature\u type”$(osmdownloader\u workspace\u name)attributeremover\u 3\u output“@removeattributes(fme\u encoded,\uosmdownloader.xmax,\uosmdownloader.file\u path,\uu osmdownloader.folder_exists)@removeattributes(fme_pcre_match“$($(osmdownloader_workspace_name)_attributeerMover_3_list_exp)”)\\35----------------------------------------------------------------------TC2 proc$(osmdownloader_工作区_name)_StringConcator \ \\ \\\\\\\\\\\M下载器URL};if[字符串长度$attr]==0返回;};设置attrs[列表[fme_encodetext$attr];}否则设置为ATTRALLL{ };if[字符串长度$attrall]==0返回;};设置属性[拆分]{ }{};};设置parmlist evaluateexpression attr创建expr _propogate _缺少fdivforeach attr$attrs lappend parmlist$attr;lappend parmlist“http: 天桥.osm.rambler.ru CGI XAPIIIMAT?* bbox=$($(osmdownloader_workspace_name)_bb_xmin$encode) $($(osmdownloader_workspace_name)_bb_ymin$encode) $($(osmdownloader_workspace_name)_bb_xmax$encode) $($(osmdownloader_workspace_name)_bb_ymax$编码) “};};lappend parmlist$(osmdownloader_workspace_name)_stringconcatenator_eval fme_执行$parmlist;}工厂定义*teefactory工厂名称$(osmdownloader_workspace_name)_stringconcatenator输入功能_type“$(osmdownloader_workspace_name)_检测仪通过”输出功能_type“$(osmdownloader_workspace_name)_stringconcatenator_output”@tcl2(“$(osmdownloader_workspace_name)_stringconcatenator_evaluator”)\---———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— 价值 _ osmdownloader.url文件 ,$(osmdownloader_workspace_name)_httpcaller)“http_method get save_file yes output_file name”@evaluateexpression(fdiv,string,$($(osmdownloader_workspace_name)_output_file name$encode),$(osmdownloader_workspace_name)_httpcaller)“output_directory” “目标\u attr” “file_path_attr”$($(osmdowloader_workspace_name)_file_path_attr)“上传文件” “上传\正文” “多部分上传 上传“内容类型” “组合的”multipart_table request_header_table additional_url_parameters auth_username“ “身份验证密码” “身份验证方法” “目标属性编码 响应\u header_list_attr“_headers”状态\u code_attr“_http_status_code”错误\u attr“_error”连接超时\u length$($(osmdownloader_workspace_name)连接超时\u length)传输超时\u length$($(osmdownloader_workspace_name)传输超时\u length)遵循重定向是验证ssl_证书是命名的连接“N” “使用cookies无输出输出功能”类型“$(osmdownloader_workspace_name)_httpcaller_output”输出拒绝功能“u type”$(osmdownloader_workspace_name)_httpcaller_ “------------------------------------------------------------------tcl2 fme_decodemacro copier@tcl2(”“)include[if[字符串长度]==0 puts macro copier 1 factory teefactory factory name$(osmdownloader _workspace _name)_tccaller _2 input feature _type”$(osmdownloader _workspace _name)_httpcaller”_ “拷贝数$(复印机)输出功能_type”$(osmdownloader _workspace _name)_tcCaller _2 _output”“uuosmdownloader.file _path”@tcl2(“file delete[fme _getattribute”uuosmdownloader.file _path”])35;-----------------------------------------------------------------包括[set macroline”宏$(osmdownloader _workspace _name)“属性移动器”列表“exp”;foreach attr[split“”]设置attr[fme_decodetext$attr];设置attr[regsub”“$”$attr“.*”];设置attr[regsub-all“”$attr“\123; \[0-9\]+\”];附加宏行“^$attr$”;};卖出$macroline;]工厂定义*teefactory工厂名称$(osmdownloader\u workspace\u name)属性移动器\u 2输入功能\u type“$(osmdownloader\u workspace\u name)调用器\u 2输出”输出功能\u type“$(osmdownloader\u workspace\u name)属性移动器\u 2输出”@removeattributes(fme\u编码,\uu osmdownloader.file\u path,\uu osmdownloader.folder\u exists,\uu osmdownloader.url,uu osmdownloader.xmax)@removeattributes(fme_pcre_match“$($(osmdownloader_workspace_name)_attributeremover_2_list_exp)”)包括[设置宏行“macro$(osmdownloader_workspace_name)_attributeremover_list_exp”;foreach attr[split“”]设置attr[fme_decodetext$attr];设置attr[regsub”“$”$attr“.*”];设置attr[regsub-all“”$attr“\123; \[0-9\]+\”];附加宏行“^$attr$”;};卖出$macroline;]工厂定义*teefactory工厂名称$(osmdownloader\u workspace\u name)属性移动器输入功能\u type“$(osmdownloader\u workspace\u name)\u httpcaller\u output”输出功能\u type“$(osmdownloader\u workspace\u name)属性移动器输出”@removeattributes(fme\u编码,\uu osmdownloader.url,\uu osmdownloader.xmax,\uu osmdownloader.file\u path,uu osmdownloader.folder_exists)@removeattributes(fme_pcre_match“$(osmdownloader_workspace_name)_attributeremover_list_exp)”)Factory_def*teefactory factory_name“$(osmdownloader_workspace_name)_ 1543541394输出收集器“输入功能”类型“$(osmdownloader_workspace_name)_attributeremover_3_output“输出功能”类型“$(osmdownloader_workspace_name)_ “工厂定义*teefactory工厂名称”$(osmdownloader\u workspace\u name)\u成功1543541394输出收集器“输入功能”类型“$(osmdownloader\u workspace\u name)\u attributeremover\u output“输出功能”类型“$(osmdownloader\u workspace\u name)\u success“工厂定义*teefactory工厂名称”$(osmdownloader\u workspace\u name)\u失败1543541394输出collector“input feature_type”$(osmdownloader_workspace_name)_attributeremover_2_output“output feature_type”$(osmdownloader_workspace_name)_failure“包括[puts macro wb_current_context$(wb_old_context_$(osmdownloader_workspace_name))]工厂定义*teefactory工厂_name“osmdownloader successful output renamer/nuker”输入功能键入osmdownloader_success output feature_type osmdownloader_success factory_def*teefactory factory_name“osmdownloader failure output renamer/nuker”input feature_type osmdownloader_failure factory_def*teefactory factory_name“osmdownloader” 输出Renamer/Nuker“输入功能\u型osmdownloader_ #————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————Unity批准的功能类型“build_multipolygon_relationship no 亚搏国际在线官网clip_to_envelope no expose_attrs_group fme_disclosure_open community_feature_types wide close_areas yes values come in encoded and come out decoded.tcl2 proc featurereader_findinlistelesedefault valueencoded defaultvalue if[lsearch[split$(featurereader_output_ports_encd)]$valueencoded]>=0返回FeatureReader[fme _decodeText$valueencoded]其他返回FeatureReader$defaultValue始终提供交互,否则,工厂默认为信封交叉,包括[如果(无=={ })||(($interaction_options)=)puts macro fctquery_interaction_line fctquery_interaction none_}else puts macro fctquery_interaction_line fctquery_interaction“none”}]#将属性合并选项合并到工厂预期的默认值仅限结果=合并放置“宏属性合并属性” “;}否则将“宏特征读取者”与“属性结果仅”组合在一起;};]Factory_def*queryFactory工厂_name featureReader输入功能_type osmdownloader_success$(fctquery_interaction_line)queryfct_table_separator space combine_attributes$(featureReader_combine_attrs)queryfct_attribute_prefix 合并\u几何结果\u仅启用\u缓存无读卡器\u类型OSM读卡器\u数据集\u道路\u OSM文件\u路径“读卡器\u id读卡器\u指令元\u宏,源删除\u节点\u列表 不 sourceosm_公开\u格式\u属性 源使用搜索信封 不 sourceuser_feature_types_组 FME_公开 源自定义\区域 不 sourcescan_-all_-features_for_-schema 不 源架构选项 OSM亚搏国际在线官网 经核准的 特征 类型 sourcebuild_multipolygon_关系 不 源剪辑到信封 不 sourcepose_attrs_组 FME_公开 源社区\功能亚搏国际在线官网\类型 宽的 源关闭区域 是的,metafile,osm queryfct_output“based_on_connections”continue_on_reader_error yes reader_params$(feature reader_directives)-------------------------------------factory_def*routing factory_name“destination feature type routing correlator”input feature_type*output routed featureure_type*@feat ure type(编码,@value(uuwb_out_feat_type_uuuuuuuuuuuuuuuuwb_out_feat_type_uuuuuuu)out out out_路由特征_type uuuu u u u u u u type*@feat ure type(编码,@value(uuuwb_wb_wb_out feat_type(@value,@value(uuuuuuwb_wb_out_uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuF工厂名称“最终输出nuker”输入功能“类型”__