项目作者: acgeospatial

项目描述 :
Python code for a demo in geofencing in QGIS
高级语言: Python
项目地址: git://github.com/acgeospatial/geofencing.git
创建时间: 2016-06-23T10:39:24Z
项目社区:https://github.com/acgeospatial/geofencing

开源协议:

下载


geofencing

Python code for a demo in geofencing in QGIS

Program to model geofences in QGIS!

Written / Complied together by Andrew Cutts www.acgeospatial.co.uk

Python 2.7

Stopwatch method adapted from http://codereview.stackexchange.com/questions/26534/is-there-a-better-way-to-count-seconds-in-python

Createpoint method adapted from http://gis.stackexchange.com/questions/86812/how-to-draw-polygons-from-the-python-console

point_in_poly method apated from http://geospatialpython.com/2011/01/point-in-polygon.html

Many thanks!

Usage

1. Open blank QGIS project

2. Open python console

3. Set projection to British grid, EPSG code 277000

4. Use the map to x = 512915 y = 120728 (first coordinate to be plotted), I use Openstreetmap to zoom out a bit shots will increment 12.5m

5. Run the script (you could add the shapefile boundary if you want)