wip layer-to-pdf
This commit is contained in:
parent
f48909e1bd
commit
2fbbc78233
16
II/Referatas/layer2pdf.py
Executable file
16
II/Referatas/layer2pdf.py
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
# https://gis.stackexchange.com/questions/131716/plot-shapefile-with-matplotlib
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import fiona
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
|
def main():
|
||||||
|
parser = argparse.ArgumentParser(description='Convert layer to a nice PDF')
|
||||||
|
parser.add_argument('infile', type=argparse.FileType('r'))
|
||||||
|
parser.add_argument('layer', type=str)
|
||||||
|
parser.add_argument('-o', metavar='OUTFILE', type=argparse.FileType('w'))
|
||||||
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user