mapbox / supermercado

Supercharger for mercantile
MIT License
127 stars 21 forks source link

Syntex error using supermercado #32

Closed manishsharma28 closed 4 years ago

manishsharma28 commented 4 years ago

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

sgillies commented 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.

manishsharma28 commented 4 years ago

Could you please tell me a way to use this script in python.

pratikyadav commented 4 years ago

@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

manishsharma28 commented 4 years ago

@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