Skip to content
Permalink
Browse files

Fix for creating crs_list

  • Loading branch information
uprel committed Jan 9, 2020
1 parent bb9d6d5 commit 15be8e00fc232ffc10b0a2a6b64bf665e06d6c40
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/class.Helpers.php
@@ -305,7 +305,7 @@ public function getQgsProjectProperties($map)
if($lay->provider == 'postgres' or $lay->provider == 'spatialite') {
$lay->wfs = true;
//layer CRS must be included in crs list for client to load projection file
if(!(in_array($lay->crs,$prop->crs_list))) {
if(($lay->geom_type != 'No geometry') && !(in_array($lay->crs,$prop->crs_list))) {
array_push($prop->crs_list,$lay->crs);
}
if(strpos(strtolower($lay->geom_type), 'polygon') === false) {

0 comments on commit 15be8e0

Please sign in to comment.
You can’t perform that action at this time.