从HTTP文件源解析GeoJSON数据 [英] Parsing GeoJSON data from HTTP file source

查看:164
本文介绍了从HTTP文件源解析GeoJSON数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我想要在Data Factory中摄取的远程资源,其格式为GeoJSON,例如这个[1]。

I have got a remote resource I'd like to ingest in Data Factory which is formatted as GeoJSON, such as this one [1].

我没有管理设置HTTP文件源数据集以成功解析它。无论我放置什么设置,JSON都被认为是无效的。有没有办法告诉Data Factory从"功能"开始解析?节点?如果我手动下载文件编辑它以产生具有"特征"的JSON文档,它的工作量为
。作为根节点。

I did not manage to set up a HTTP file source dataset to parse it successfully. Regardless of the settings I put, the JSON is considered invalid. Is there a way to basically tell Data Factory to start parsing from the "features" node? It works if I manually download the file edit it to produce a JSON document with "features" as the root node.

[1]  https://opendata.arcgis.com/datasets/7623fb830c1941b094cfdee10cd50413_0.geojson

[1] https://opendata.arcgis.com/datasets/7623fb830c1941b094cfdee10cd50413_0.geojson

推荐答案

我可以想到一种方法。

I can think of one way of doing so.


  • 您可以使用查找活动从源中提取数据。(https://docs.microsoft.com/en-us/azure/data- factory / control-flow-lookup-activity)
  • 您可以在自定义活动中使用此查找活动的结果来转换数据。(https://docs.microsoft.com/en-us/ azure / data-factory / transform-data-using-dotnet-custom-activity)
  • 转换后,您可以进行最终的复制活动。

希望这会有所帮助。


这篇关于从HTTP文件源解析GeoJSON数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆