[Cartoweb-users] search plugin?

wochter wochter at seznam.cz
Fri Mar 9 08:36:45 EST 2007


I tried:
dbType = pgsql
dsn = user:pass at localhost:5432/gisdata

but with the same result:

Failure

CartoWeb version: HEAD [$Revision: 1.5 $]
class:   CartocommonException
message:   Either DSN or DB type must be defined
Backtrace:

file: 267 -
/var/www/cartoweb3/projects/wochter/plugins/search/common/Search.php
call: DbResultProvider->getDsn()

file: 269 -
/var/www/cartoweb3/projects/wochter/plugins/search/client/ClientSearch.php
call: DbResultProvider->getResult(Object(SearchRequest))

file: 265 - /var/www/cartoweb3/client/ClientPluginHelper.php
call: ClientSearch->initializeResult(Null)

file: UNKNOWN - UNKNOWN
call: ServerCallerHelper->initializeResultHelper(Object(ClientSearch),
Object(MapResult))

file: 267 - /var/www/cartoweb3/common/PluginManager.php
call: call_user_func_array(Array(2), Array(2))

file: 320 - /var/www/cartoweb3/common/PluginManager.php
call: PluginManager->callPluginImplementing(Object(ClientSearch),
"ServerCaller", "initializeResult", Array(1))

file: 711 - /var/www/cartoweb3/client/Cartoclient.php
call: PluginManager->callEnabledPluginsImplementing(2, "ServerCaller",
"initializeResult", Array(1))

file: 1088 - /var/www/cartoweb3/client/Cartoclient.php
call: Cartoclient->callEnabledPluginsImplementing(2, "ServerCaller",
"initializeResult", Object(MapResult))

file: 1251 - /var/www/cartoweb3/client/Cartoclient.php
call: Cartoclient->doMain()

file: 38 - /var/www/cartoweb3/htdocs/client.php
call: Cartoclient->main()




Oliver Christen  wrote / napísal(a):
> Hello,
> if I understand correctly whats is happening in the getDsn() function,
> it seems the parameters should be:
> 
> dbType = pgsql
> dsn = user:pass at localhost:5432/gisdata
> 
> regards
> Oliver
> 
> hi,
> 
> I use this:
> dbType = db
> dsn = pgsql://user:pass@localhost:5432/gisdata
> 
> and here is the error log:
> 
> Failure
> 
> CartoWeb version: HEAD [$Revision: 1.5 $]
> class:   CartocommonException
> message:   Either DSN or DB type must be defined
> Backtrace:
> 
> file: 267 -
> /var/www/cartoweb3/projects/wochter/plugins/search/common/Search.php
> call: DbResultProvider->getDsn()
> 
> file: 269 -
> /var/www/cartoweb3/projects/wochter/plugins/search/client/ClientSearch.php
> call: DbResultProvider->getResult(Object(SearchRequest))
> 
> file: 265 - /var/www/cartoweb3/client/ClientPluginHelper.php
> call: ClientSearch->initializeResult(Null)
> 
> file: UNKNOWN - UNKNOWN
> call: ServerCallerHelper->initializeResultHelper(Object(ClientSearch),
> Object(MapResult))
> 
> file: 267 - /var/www/cartoweb3/common/PluginManager.php
> call: call_user_func_array(Array(2), Array(2))
> 
> file: 320 - /var/www/cartoweb3/common/PluginManager.php
> call: PluginManager->callPluginImplementing(Object(ClientSearch),
> "ServerCaller", "initializeResult", Array(1))
> 
> file: 711 - /var/www/cartoweb3/client/Cartoclient.php
> call: PluginManager->callEnabledPluginsImplementing(2, "ServerCaller",
> "initializeResult", Array(1))
> 
> file: 1088 - /var/www/cartoweb3/client/Cartoclient.php
> call: Cartoclient->callEnabledPluginsImplementing(2, "ServerCaller",
> "initializeResult", Object(MapResult))
> 
> file: 1251 - /var/www/cartoweb3/client/Cartoclient.php
> call: Cartoclient->doMain()
> 
> file: 38 - /var/www/cartoweb3/htdocs/client.php
> call: Cartoclient->main()
> 
> 
> Oliver Christen  wrote / napísal(a):
>> hello,
>> if you set your project profile to development, you should be able to
>> see the detail of the error received by ajax (the so called malformed
>> response).
>> let me know what the content of the error message, that will help to
>> know what happened.
>>
>> regards
>> Oliver
>>
>> ----- Original Message ----- From: "wochter" <wochter at seznam.cz>
>> To: "Oliver Christen" <oliver.christen at camptocamp.com>
>> Sent: Friday, March 09, 2007 1:26 PM
>> Subject: Re: [Cartoweb-users] search plugin?
>>
>>
>> Ou, thank you, that is what I need.
>> This plugin in cw3demo uses sqlite db.
>>
>> dbType = sqlite
>> dbFile = "projects/demoCW3/server_conf/demoCW3/sql/airports.db"
>> encodingContext = searchDb
>>
>> Can I use postgres/postgis?
>>
>> I tried this:
>> dbType = db
>> dsn = pgsql://user:pass@localhost:5432/gisdata
>>
>>
>> Error: AjaxHandler.actionRequest(): received response is malformed!
>>
>> How to use it please?
>>
>> thanx
>> wochter
>>
>>
>> Oliver Christen  wrote / napísal(a):
>>> Hi,
>>> in the lasted cvs version of Cartoweb there is a new search plugin, but
>>> obviously it is designed for generic search. If you want more specific
>>> interface, you will need to extend the plugin to suit your needs.
>>>
>>> Regards
>>> Oliver
>>>
>>>     ----- Original Message -----
>>>     *From:* Štefan Voskár <mailto:uhabb.voskar at zmail.sk>
>>>     *To:* cartoweb-users at lists.maptools.org
>>>     <mailto:cartoweb-users at lists.maptools.org>
>>>     *Sent:* Thursday, March 08, 2007 8:42 AM
>>>     *Subject:* [Cartoweb-users] search plugin?
>>>
>>>     I would be pleased at this possibility too...
>>>
>>>     My vision is:
>>>     step 1: possibility in "SEARCH TAB" to select from drop-down menu
>>>     layer of interest
>>>
>>>     step 2: Its columns wold be loaded on another drop-down..
>>>
>>>     step 3: possibility to choose =, <, > (for numerics fields) and LIKE
>>>     or IS (for text)
>>>
>>>     step 4: field to enter searched string
>>>
>>>     ...and result should create table of elements matching selected
>>>     criteria. Some attribute (ID or name...) would be active as link to
>>>     recenter it in map window...
>>>
>>>     If somebody likewise do this job, please help with some tips.
>>>     Thaks
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>     _______________________________________________
>>>     Cartoweb-users mailing list
>>>     Cartoweb-users at lists.maptools.org
>>>     http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Cartoweb-users mailing list
>>> Cartoweb-users at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
>>
>>
> 
> 
> 




More information about the Cartoweb-users mailing list