I need help with the following line of code I found in GitHub: Land Use Land Cover
DATA_FOLDER = os.path.join('..', '..', 'example_data')
I don't know what to put between '.', plus I only downloaded svn_buffered.geojson file. and this is its current directory: C:\Users\ASUS\Desktop\PFE-Master\Code I don't get why do I need to concatenate several paths.
This is the full code:
# Folder where data for running the notebook is stored DATA_FOLDER = os.path.join('..', '..', 'example_data') # Load geojson file country = gpd.read_file(os.path.join(DATA_FOLDER, 'svn_buffered.geojson')) # Convert CRS to UTM_33N country_crs = CRS.UTM_33N country = country.to_crs(crs=country_crs.pyproj_crs()) # Get the country's shape in polygon format country_shape = country.geometry.tolist()[-1] # Plot country country.plot() plt.axis('off'); # Print size print('Dimension of the area is {0:.0f} x {1:.0f} m2'.format(country_shape.bounds[2] - country_shape.bounds[0], country_shape.bounds[3] - country_shape.bounds[1]))```
'.'