4
ogr2ogr에서 스트리밍 입력에 대한 지원이 약한 것으로 보입니다. 예를 들어, 내가 왜이 수행 할 수ogr2ogr의 VSI File API 지원
curl "http://data.usgin.org/arizona/wfs?service=WFS&version=1.1.0&
request=GetFeature&typeName=azgs:activefaults&maxFeatures=10" |
ogr2ogr -f "KML" /vsistdout/ /vsistdin/
... 그러나 나는이 작업을 수행 할 수 없습니다
curl "http://data.usgin.org/arizona/wfs?service=WFS&version=1.1.0&
request=GetFeature&typeName=azgs:activefaults&maxFeatures=10&
outputformat=application/json" | ogr2ogr -f "KML" /vsistdout/ /vsistdin/
첫 번째 요청이 소스 레이어에 대해 "WFS"드라이버를 사용하고, 두 번째 요청은 소스 계층에 대해 "GeoJSON"드라이버를 사용합니다. 처음에는 제대로 작동하지만 두 번째로 나에게 알려줍니다.
ERROR 1: GeoJSON parsing error: unexpected end of data (at offset 6000)
ERROR 4: Failed to read GeoJSON data
FAILURE:
Unable to open datasource `/vsistdin/' with the following drivers.