[SPAM] - Re: [Cartoweb-users] Cartoweb 3.4 and new plugins -
Found word(s) free catalog in the Text body
Simon ORTET
simon.ortet at silogic.fr
Tue Jul 31 12:25:51 EDT 2007
Ok, thanks Mathieu.
I totally missed that my wmsBrowserLight.ini defined 2 catalogtypes. And
it works now.
So i'm trying to connect to the Geosignal WMS server
(http://www.geosignal.org/cgi-bin/wmsmap?) but it returns "Can't get
server capabilities.". The thing is i know for sure this adress should
work since i can test it on sandre gis
http://sandre.eaufrance.fr/geoviewer/index.php (I think you're the one
who developed this application right?).
Do you have any idea where i could begin to search?
Simon
Mathieu Coudert a écrit :
> Hi Simon,
>
> Thanks for the javascript error, we will fixed it ASAP.
> Concerning the server list the problem comes from your
> configuration.You can only choose one catalogtype configuration (ini
> or gn).
> In case you choose the ini one, you need to configure the list of
> servers thanks to the array servers.
> In the other case, server list configuration is providing by the
> Sandre service catalog (based on geonetwork).
> Try it and feel free to let me know!
>
> Regards,
> Mathieu
>
>
> Simon ORTET a écrit :
>> I changed the cartoclient.tpl to load the wmsBrowserLight variables
>> and it works but i noticed 2 things:
>>
>> - the showResponse procedure raise a javascript error since it
>> lacks the req parameter. So i modified wmsBrowserLight.tpl (line
>> 4) with
>> /function showResponse (*req*) {/
>>
>> - I don't have the server list, i just have the textbox to type
>> the url. Whereas I filled the client_conf/wmsBrowserLight.ini with
>> these values:
>> /catalogtype = ini/
>> /servers.0.label = Sandre / Ouvrage/
>> /servers.0.url = http://services.sandre.eaufrance.fr/geo/ouvrage/
>> /servers.1.label = Geosignal/
>> /servers.1.url = http://www.geosignal.org/cgi-bin/wmsmap/
>> /catalogtype = gn/
>> /gn = http://sandre.eaufrance.fr/geonetwork/
>> /; unset gnuser and gnpassword if no login has to be made/
>> /gnuser = cartoweb/
>> /gnpassword = cartoweb/
>> /gnlang = en/
>> /; gnQuery is how CartoWeb could get the list of services in the
>> node/
>> /gnQuery = "category=Services"
>> /
>> I guess the {if $servers neq null} in wmsBrowserLight.tpl return
>> false but i can't figure why.
>>
>>
>> Simon.
>>
>>
>>
>> Simon ORTET a écrit :
>>> Hi and thanks for your answer.
>>>
>>> *For bboxhistory:*
>>> on the demoCW3 project (delivered with CW 3.4RC1, ajax enabled) the
>>> plugin is loaded and i can see the 2 arrows. But i had an error on
>>> first zoomin action (i hadn't replaced line 186 yet):
>>> /Requested plugin bboxHistory is not loaded. Check your AJAX call
>>> parameters (currently ajaxActionRequest=BboxHistory.moveTo)/
>>>
>>>
>>> So i jumped on my custom project (ajax enabled) and i replaced line
>>> 186 with the isset function but now the error is on line 112:
>>> message: Error [8, Undefined property: stdClass::$position,
>>> D:\Program
>>> Files\cartoweb-withdemo-3.4.0-RC1\cartoweb3\plugins\bboxHistory\client\ClientBboxHistory.php,
>>> 112]
>>> So i put isset on position property and no error anymore.
>>> / if (isset($this->state->position)) {
>>> $smarty->assign('has_prev',
>>> is_null($this->state->position) &&
>>> count($this->state->history) > 1 ||
>>> $this->state->position > 0);
>>>
>>> $smarty->assign('has_next',
>>> !is_null($this->state->position) &&
>>> $this->state->position < count($this->state->history) - 2);
>>> }/
>>> So now on both projects i have the two arrows, i have no error at
>>> loading or zoom, but nothing happens: the 2 arrows keep disabled
>>> after several zoom operations.
>>> I guess the isset() i added paralysed the plugin.
>>>
>>>
>>> Now I'm going to test wmsBrowserLight.
>>> Thanks again
>>>
>>> Oliver Christen a écrit :
>>>
>>> hi
>>> thank you for testing
>>> I cant seem to be able to reproduce the error with
>>> bboxhistory.
>>> can you try to replace line 186 in ClientBboxHistory.php
>>> if (count($this->state->history) > 0) {
>>> by
>>> if (isset($this->state->history) && count($this->state->history)
>>> > 0) {
>>> and tell me if this solve the problem
>>> by the way, the bboxhistory only work with ajax, so you
>>> need to
>>> enable ajax in your project.
>>> about the wmslayerlight, try to replace the $wmsBrowser
>>> template
>>> variable by $wmsBrowserLight, there should be at least 3
>>> occurences in the default cartoclient.tpl.
>>> this is effectively an error and it will be corrected,
>>> thank you.
>>> regards
>>> Oliver
>>>
>>> ----- Original Message -----
>>> *From:* Simon ORTET <mailto:simon.ortet at silogic.fr>
>>> *To:* cartoweb <mailto:cartoweb-users at lists.maptools.org>
>>> *Sent:* Tuesday, July 31, 2007 3:09 PM
>>> *Subject:* [Cartoweb-users] Cartoweb 3.4 and new plugins
>>>
>>> Hi list,
>>>
>>> I installed Cartoweb 3.4 RC1 and the install process went ok.
>>> So i tried to modify a demo application to load new plugins
>>> and i can't make them work.
>>>
>>> bboxHistory:
>>>
>>> I added 'bboxHistory' to LoadPugins line in my client.ini
>>> and {$bboxHistoryForm} to my cartoclient.tpl but i've got
>>> error at project loading:
>>>
>>> message: Error [8, Trying to get property of
>>> non-object, D:\Program
>>> Files\cartoweb-withdemo-3.4.0-RC1\cartoweb3\plugins\bboxHistory\client\ClientBboxHistory.php,
>>> 186]
>>>
>>>
>>> WmsBrowserLight and ogcLayerLoader
>>>
>>> I added mapOverlay, ogcLayerLoader, wmsBrowserLight in
>>> both client.ini and 'mapid'.ini
>>> I copied ogcLayerLoader.ini and wmsBrowserLight.ini in
>>> client_conf and ogcLayerLoader.ini in server_conf
>>> but nothing happens: no errors but no new tabs or tools.
>>> Did i forgot something to enable plugins loading?
>>>
>>> Thanks
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> 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
>>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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