Skip to content

Commit 938be07

Browse files
authored
Update README.md
1 parent 0470cce commit 938be07

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

Diff for: spatialdata/README.md

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
1. First we need to buffer biomes and gadm layers by 0.0001 to fix geoprocessing errors.
2-
Save output as biomes_buffered, admn_0_buffered, admn_1_buffered, admn_2_buffered
1+
## About BerkeleyMapper Spatial Intersection Features
2+
The method BerkeleyMapper uses for computing point in polygon search results is optimized for speed (see "Procedure for Creating a Vector Grid with Attributes" below), and may provide inaccurate results. The results are useful for estiamtion purposes only. If you want accurate results, you will need to download the result-set in BerkeleyMapper and then perform point in polygon searches directly in QGIS or ArcGIS. You will need to download the Global Administrative Boundary and Biome Shapefiles (see section below where these can be found).
33

4-
2. Next we need to create a 1 degree rectangular grid and a 0.1 degree rectangular grid
4+
### Procedure for Creating a Vector Grid with Attributes
5+
The procedure below is what was used to create the spatial data file BerkeleyMapper uses. This process is aimed at speed over accuracy.
6+
7+
1. Download supporting spatial data
8+
* Global Administrative Boundaries: https://gadm.org/
9+
* Biomes: https://geospatial.tnc.org/datasets/b1636d640ede4d6ca8f5e369f2dc368b/about (This is the TNC modification of Olsen Ecoregions)
10+
11+
2. Buffer biomes and gadm layers by 0.0001 to fix geoprocessing errors.
12+
13+
3. Next we need to create a 1 degree rectangular grid. We can experiment with 0.5 or 0.1 grids... I tried this with a 0.1 degree grid and had memory/speed issues on my Mac laptop.
514
(use Vector -> Research Tools -> Create Grid)
615

7-
3. Next we need to join layers (Vector -> Data Management Tools -> Join Attributes by Location)
8-
base is grid1 and join to admn_0_buffered, etc....
9-
choose intersects
10-
join type mapping is one:one
16+
4. Next we need to join layers to add attributes for each grid cell.
17+
base is the grid file we created in step #3 and then we want to join to each buffered layer from step #2
18+
* (Vector -> Data Management Tools -> Join Attributes by Location)
19+
* choose intersects
20+
* join type mapping is one:one
1121

12-
4. Save using ISO8859-1 charset encoding works better with geotools
22+
5. Optional step: merge(?) grid cells that have the same attributes so we don't create situations with multiple adjoining polygons with the same exact data.
23+
24+
6. Save using ISO8859-1 charset encoding works better with geotools

0 commit comments

Comments
 (0)