diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2011-07-03 21:11:52 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2011-07-03 21:11:52 +0400 |
commit | 93ab68dd131616369dccd0a6a62ff5f1a1a710d2 (patch) | |
tree | aeb70a55ba1a4025a5ab2a7a48e266f7fb2d7512 /gis_data_editor.php | |
parent | cfeb031d1f8d7c31cb3fdf6b376ba7b7ea757a59 (diff) |
A polygon needs to have atleast 4 points - more instances
Diffstat (limited to 'gis_data_editor.php')
-rw-r--r-- | gis_data_editor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gis_data_editor.php b/gis_data_editor.php index 21cafc8cdd..3fd077256d 100644 --- a/gis_data_editor.php +++ b/gis_data_editor.php @@ -228,8 +228,8 @@ if(isset($_REQUEST['generate']) && $_REQUEST['generate'] == true) { } $no_of_points = isset($gis_data[$a][$type][$k][$i]['no_of_points']) ? $gis_data[$a][$type][$k][$i]['no_of_points'] : 3; - if ($no_of_points < 3) { - $no_of_points = 3; + if ($no_of_points < 4) { + $no_of_points = 4; } if (isset($gis_data[$a][$type][$k][$i]['add_point'])) { $no_of_points++; |