我想从我的geojson文件中删除所有属性,因此我首先尝试制作一个类似的ndjson文件:
/root/npm/bin/ndjson-split 'd.features' < test.json > test.ndjson
但我得到了这个错误:
stdin:1
{"type":"FeatureCollection","features":[
^
SyntaxError: Unexpected end of JSON input
我的geojson是有效的,它就在这里:https://gist.github.com/2803media/b52c9078c6c7932396ce6b42d7f0073e
感谢
测试后,如果geojson是带换行符的格式,那么这似乎是一个错误,如果使用转换为topojson并返回到geojson