~meshing/meshing/fix-duplicate-points

« back to all changes in this revision

Viewing changes to dev/plugins/rasterise_polygons/rasterisepolygons.py

  • Committer: Adam Candy
  • Date: 2013-07-23 21:11:07 UTC
  • Revision ID: adam.candy@imperial.ac.uk-20130723211107-24rc5bk3ug0sda1r
Final fix.
Licensing formally implemented.  Please update your branches and any derivative works.
Additional tidying and restructure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#  
32
32
##########################################################################
33
33
 
34
 
##########################################################################
35
 
#  
36
 
#  QGIS-meshing plugins.
37
 
#  
38
 
#  Copyright (C) 2012-2013 Imperial College London and others.
39
 
#  
40
 
#  Please see the AUTHORS file in the main source directory for a
41
 
#  full list of copyright holders.
42
 
#  
43
 
#  Dr Adam S. Candy, adam.candy@imperial.ac.uk
44
 
#  Applied Modelling and Computation Group
45
 
#  Department of Earth Science and Engineering
46
 
#  Imperial College London
47
 
#  
48
 
#  This library is free software; you can redistribute it and/or
49
 
#  modify it under the terms of the GNU Lesser General Public
50
 
#  License as published by the Free Software Foundation,
51
 
#  version 2.1 of the License.
52
 
#  
53
 
#  This library is distributed in the hope that it will be useful,
54
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
55
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
56
 
#  Lesser General Public License for more details.
57
 
#  
58
 
#  You should have received a copy of the GNU Lesser General Public
59
 
#  License along with this library; if not, write to the Free Software
60
 
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
61
 
#  USA
62
 
#  
63
 
##########################################################################
64
 
 
65
34
This plugin rasterises a set of polygon shapefiles and the NetCDF created will be of the same dimensions as the user-specified background NetCDF file. The implementation in QGIS for rasterisation only creates a file that is as large as the polygons bounding-box and is therefore not suitable for further raster addition, minimums etc. in other plugins.
66
35
 
67
36
The rasters are automatically imported into QGIS and their display changed to pseudocolour to save manual altering.
82
51
 
83
52
/***************************************************************************
84
53
 *                                                                                                                                               *
85
 
 *   the Free Software Foundation; either version 2 of the License, or   *
86
 
 *   (at your option) any later version.                                                                   *
87
54
 *                                                                                                                                               *
88
55
 ***************************************************************************/
89
56
"""