First put all the shapefiles you want merged in one directory than I run this bash script in the folder
#!/bin/bash
file="./final/merge.shp"
for i in $(ls *.shp)
do
First put all the shapefiles you want merged in one directory than I run this bash script in the folder
#!/bin/bash
file="./final/merge.shp"
for i in $(ls *.shp)
do
##Fade to Transparent Inner
In QGIS ensure that the date field is saved as type 'QDate' by looking at properties:Fields on the layer
Open the attribute layer and toggle the show all features selection in the bottom left corner to Advanced Filter to open the expression based filter toolbar. Alternatively you can press CTRL+F to get to the expression based filter toolbar.
Enter an appropriate filter. The one I used to filter the last 90 days of records looks like this:
day(age( $now,"EVENT_DATE" )) <= 90
Return vector of areas from SpatialPolygon object
sapply(slot(SP, "polygons"), slot, "area")
Function to clip SpatialPolygon to bbox (requires package 'raster')
gClip <- function(shp, bb){
if(class(bb) == "matrix") b_poly <- as(extent(as.vector(t(bb))), "SpatialPolygons")
else b_poly <- as(extent(bb), "SpatialPolygons")
media_sources = [ | |
"mintpressnews.com", | |
"washingtonsblog.com", | |
"21stcenturywire.com", | |
"sputniknews.com", | |
"clarityofsignal.com", | |
"rt.com", | |
"alternet.org", | |
"unz.com", | |
"thewallwillfall.org", |
--- | |
# Available `vagrant_box` values include: | |
# - geerlingguy/centos7 | |
# - geerlingguy/centos6 | |
# - geerlingguy/debian9 | |
# - geerlingguy/debian8 | |
# - geerlingguy/ubuntu1604 | |
# - geerlingguy/ubuntu1404 | |
vagrant_box: geerlingguy/ubuntu1604 |