Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed WFS select for srid -1 on PG 8.3

  • Loading branch information...
commit 658ed0c5650e68b86dd67784abddb4a87ce2cbcc 1 parent 983ed48
@pka authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/map_layers.rb
View
2  lib/map_layers.rb
@@ -129,7 +129,7 @@ def wfs
#Columns for select
pkey, text, geom = [model.primary_key, map_layers_config.text, map_layers_config.geometry].collect { |c| model.connection.quote_column_name(c) }
db_srid = model.columns_hash[map_layers_config.geometry.to_s].srid
- if db_srid != -1 && db_srid != @srid
+ if db_srid != @srid && !db_srid.nil? && db_srid != -1
#Transform geometry from db_srid to requested srid (not possible for undefined db_srid)
geom = "Transform(#{geom},#{@srid}) AS #{geom}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.