![]() Replace 'MZ' with a country code of your choice. Paste these lines of code at the top of your script and make sure this is the only geometry variable in the script. ![]() Var geometry = ee.FeatureCollection('USDOS/LSIB_SIMPLE/2017').filterMetadata('country_co', 'equals', 'MZ') Here is an example for Mozambique ('MZ'): Select a specific country by filtering the collection by FIPS country code. The FeatureCollection can be imported using its ID ('USDOS/LSIB_SIMPLE/2017'). In GEE, search for 'LSIB' or 'International Boundaries'. If one seeks to perform this analysis on country level though, there is a suitable data set provided that contains simplified features. GEE so far provides a very limited amount of shapes, such as major administrative boundaries. 5: Import the uploaded shapefile into the Google Earth Engine script. For the script to recognize this new table, rename it to 'geometry'.įig. Under 'Assets' click the 'Import' button so the table is listed in the imports section. Once the 'Asset ingestion' task is completed (turns blue) you can import the shape to the script. You can observe the progress in the 'Tasks’ tab on the top right. Uploading files usually takes a few minutes. ![]() 4: Upload a shapefile to specify the area of interest. On the 'New' drop-down menu select 'Table upload', then select your file. Careful: Make sure also to include the .dbf and .shx files, as the shapefile relies on them.įig. Start the import via the 'Assets'-tab in the top left corner. This is recommended when researching a very distinct study area (e.g. 3: Draw a polygon of the area of interest (aoi) by hand.ĭefining the spatial processing extent with a Shapefile (.shp) is the most accurate solution. The geometry will be listed under 'Imports' at the top of the script.įig. Press 'Exit' once you are done setting up your study area. A geometry can consist of more than one polygon. Vertices are created with left clicks and the polygon is completed by double-clicking. The polygon tool can be activated in the top-right corner of the map pane. This is the quickest and easiest option, suitable for exploring and testing the script in different regions. Users can draw an area of interest by hand, upload location information from a file or import country boundaries provided as GEE FeatureCollection.īoundaries can be created interactively. This information is necessary to limit the processing extent of the analysis and avoids redundant calculations. In the following section we will present three different ways to specify the location of your study area. Step 10: Area calculation of flood extent Step 2: Time frame and sensor parameters selection
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |