issue 1
(geo-search function ignores feature classes and feature code...) reported by dpkatz
- What steps will reproduce the problem?
1. Run a query without a feature class.
2. Run same query with a feature class which ought to reduce the result count
3. Notice that result count is not reduced. See below for mroe details.
What is the expected output? What do you see instead?
> ;; Submit this as http://ws.geonames.org/search?q=Paris&maxRows=10&country=US and
> ;; get 236 hits in a browser.
> (cadr (cl-geonames::geo-search "paris" "" "" :country '("US") :max-rows 10)) (:|totalResultsCount| "236")
> ;; Submit this as http://ws.geonames.org/search?q=Paris&maxRows=10&featureClass=P&country=US
> ;; in a browser and get 50 hits.
> (cadr (cl-geonames::geo-search "paris" "" "" :country '("US") :max-rows 10 :fclass '("P")))
(:|totalResultsCount| "236") ;; TOO MANY
> Use patch attached and get correct number
> (cadr (cl-geonames::geo-search "paris" "" "" :country '("US") :max-rows 10 :fclass '("P")))
(:|totalResultsCount| "50")
What version of the product are you using? On what operating system?
Latest from subversion. Running under Clozure CCL on Mac OS X.
Please provide any additional information below.
Patch attached.
What steps will reproduce the problem?
1. Run a query without a feature class.
2. Run same query with a feature class which ought to reduce the result count
3. Notice that result count is not reduced. See below for mroe details.
What is the expected output? What do you see instead?
> ;; Submit this as http://ws.geonames.org/search?q=Paris&maxRows=10&country=US and
> ;; get 236 hits in a browser.
> (cadr (cl-geonames::geo-search "paris" "" "" :country '("US") :max-rows 10)) (:|totalResultsCount| "236")
> ;; Submit this as http://ws.geonames.org/search?q=Paris&maxRows=10&featureClass=P&country=US
> ;; in a browser and get 50 hits.
> (cadr (cl-geonames::geo-search "paris" "" "" :country '("US") :max-rows 10 :fclass '("P")))
(:|totalResultsCount| "236") ;; TOO MANY
> Use patch attached and get correct number
> (cadr (cl-geonames::geo-search "paris" "" "" :country '("US") :max-rows 10 :fclass '("P")))
(:|totalResultsCount| "50")
What version of the product are you using? On what operating system?
Latest from subversion. Running under Clozure CCL on Mac OS X.
Please provide any additional information below.
Patch attached.