Skip to content

Commit

Permalink
Fix bug hardcoded geometry column name (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Nov 17, 2015
1 parent 3975608 commit 50d4e7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Discovery/dbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def get_search_sql(search_text, geom_column, search_column, display_columns, ext

query_text = """ SELECT
ST_AsText("%s") AS geom,
ST_SRID(geom) AS epsg,
""" % geom_column
ST_SRID("%s") AS epsg,
""" % (geom_column, geom_column)
query_text += """"%s"
""" % search_column
if len(display_columns) > 0:
Expand Down
5 changes: 3 additions & 2 deletions Discovery/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name=Discovery
qgisMinimumVersion=2.0
description=Provides search / gazetteer functionality in QGIS using PostGIS-based data
version=1.0
version=1.0.1
author=Lutra Consulting
[email protected]
homepage=http://www.lutraconsulting.co.uk/products/discovery/
Expand All @@ -16,6 +16,7 @@ about=The Discovery plugin adds search capability to QGIS. Its key features are:
- Can use multiple fields to display result context
- Simple GUI-based configuration

changelog=1.0 - Initial release
changelog=1.0.1 - Fixed error with hardcoded geometry column (#1)
<p>1.0 - Initial release

tags=PostGIS, search, gazetteer

0 comments on commit 50d4e7c

Please sign in to comment.