Closed manishsharma28 closed 4 years ago
@manishsharma28 that line of code isn't Python, it's a shell script. If you pass it to python, you must expect a syntax error.
Could you please tell me a way to use this script in python.
@manishsharma28 Supermercado is based on mercantile python module that you can use in your python script. Take a look at the docs here -> https://github.com/mapbox/mercantile
@pratikyadav Thank you. and this cmd is working by using "!type" instead of "cat" in python like: !type file.geojson | supermercado burn 19 | mercantile shapes | fio collect > file_tiles.geojson
cat val_aoi.geojson | supermercado burn 19 | mercantile shapes | fio collect > val_aoi_z19tiles.geojson
File "", line 2
cat val_aoi.geojson | supermercado burn 19 | mercantile shapes | fio collect > val_aoi_z19tiles.geojson
^
SyntaxError: invalid syntax