Skip to content
Snippets Groups Projects
Commit be2fd475 authored by George Ge's avatar George Ge
Browse files

add reprojection option

parent f095ac72
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ import time
import multiprocessing
import itertools
from functools import partial
import os.path
from .config import Config
from .tiles import Tile, ProductsList
......@@ -87,7 +88,14 @@ class TimeSeries:
cld_med_prob: bool = True,
cld_hi_prob: bool = True,
thin_cir: bool = True,
reproject: bool = False
) -> None:
if reproject is True:
data = gpd.read_file(vectors_file)
new_vectorsfile = os.path.join(vectors_file[:-4], "_wgs84.shp")
data.to_crs(epsg=4326).to_file(new_vectorsfile)
vectors_file = new_vectorsfile
self._vectors_file = Path(vectors_file)
self._date_min = date_min
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment