span8
span4
您好,我需要使用FME Server的REST API使Web服务应用程序转换CAD为KML。工作区使用ESRI Reprojector。现在我发布的参数没有给定的输入和输出坐标系。我如何通过参数请求该FMEserver通过Web完成任务
有没有什么可以指任何类似的案件
你好@jactry,
如果你正在寻找如何最初创建这个发布的参数,我建议通过运行更多信息Chapter 3 Exercise 4我们FME Server的创作培训手册。尤其是第6步演示了如何建立一个坐标系发布的参数与类型=选择用别名。这需要最终用户从定义的列表中选择坐标值可用于此转换使用系统 - 而不是将其作为纯文本键入此,通过选择与别名列出的选项也有用户友好而 than the values used by FME.
一旦如果你正在寻找通过REST API来运行这个工作空间发布到FME服务器,那么你必须使用内容类型application / JSON指定后上传体内任何发布的参数值。看到这是如何格式化的一个例子 review theRest API documentation for this endpointor alternatively the FME Server Rest API courseChapter 4 Exercise 1covers this in more detail.
If you are creating a custom web app where the user will first select the Coordinate System to populate this request then you must first fetch the published parameter values and then submit the job (https://playground.fmeserver.com/using-the-rest-api/jobs/).I’d recommend taking a look atChapter 9 Exercise 16of the Rest API course which demonstrates a step by step example of this.
Lastly if you simply want to provide users who do not have access to FME Server to run this job then I’d recommend taking a look at FME Server Apps (only available in 2019.0+).This allows you to provide a URL with unauthenticated access to run a specific workspace without the need to use the Rest API.It will appear similar to the Run Workspace page where the user can set all published parameter values and then select Run.In 2019.1 we added the ability to customise the appearance of these apps to remove the references to FME.If you think this would be sufficient for your needs you can find more information on this here:https://knowledge.safe.com/articles/94277/fme-server-apps.html
My requirement is to create multiple file conversions, read in to support multi-source format kml \ dwg \ shp \ tif \ mdb, etc.Using an ESRI Reprojector, the output is also multi-source format kml \ dwg \ shp \ tif \ mdb, how When using the rest api to switch between different output formats, different parameter boxes need to be adjusted.
你好@jactry,
我相信你在找什么可能的已发布参数数据模型部分被覆盖FME Server的REST API V3文档。
已发布的参数数据模型是描述在一般工作区公布的参数和参数在FME Server中的通用数据模型。该数据模型在响应体中使用从端点,例如“GET /库/ <库> /项目/的
有包括用于坐标可能是一个很好的参考系统中发布的参数的例子的工作区。
希望帮助。
©2020安全亚搏在线软件公司|法律